/* Elegant Typography and Design System */
:root {
  --primary-navy: #4a5d8a;
  --primary-gold: #c19b2e;
  --secondary-gold: #d4b15a;
  --text-dark: #1a202c;
  --text-light: #2d3748;
  --white: #ffffff;
  --gray-light: #f7fafc;
  --gray-medium: #e2e8f0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --border-radius: 0px;
  --border-radius-large: 0px;
}

/* Utility classes to replace inline styles */
.hidden {
  display: none !important;
}

.show-block {
  display: block !important;
}

.show-inline {
  display: inline !important;
}

.error-card {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

.error-card.show-block {
  display: block !important;
}

* {
  box-sizing: border-box;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(74, 93, 138, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  position: relative;
}

.nav-logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo a:hover {
  color: var(--primary-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

.nav-link:hover {
  color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.1);
}



.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 0;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile menu active state */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-light);
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 70px; /* Account for fixed navbar */
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #6b7c93 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-mikvah.jpg') center center/cover no-repeat;
  opacity: 0.3;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-title {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 0;
  /*text-shadow: 0 2px 8px rgba(0,0,0,0.3);*/
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  margin-top: 0;
  /*text-shadow: 0 1px 4px rgba(0,0,0,0.3);*/
  letter-spacing: 0.02em;
  width: fit-content;
  margin: 12px auto 50px auto;
  background: white;
  padding: 0 10px;
}

.cta-btn {
  background: var(--primary-gold);
  color: var(--text-dark);
  border: 2px solid var(--primary-gold);
  border-radius: var(--border-radius);
  padding: 1rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.02em;
  text-transform: none;
}

.cta-btn:hover {
  background: var(--secondary-gold);
  border-color: var(--secondary-gold);
  box-shadow: var(--shadow-hover);
}

.cta-btn:active {
  background: var(--secondary-gold);
  border-color: var(--secondary-gold);
  box-shadow: var(--shadow);
}

/* Sponsor Sections - Full Width */
.sponsor-section {
  background: var(--white);
  padding: 4rem 2rem;
  margin: 0;
  width: 100%;
  position: relative;
  border-bottom: 1px solid var(--gray-medium);
}

.sponsor-section:nth-child(even) {
  background: var(--gray-light);
}

.sponsor-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.sponsor-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--primary-navy);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sponsor-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--primary-gold);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sponsor-header h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
  color: var(--text-dark);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sponsor-dedication {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 500;
  font-style: italic;
}

.sponsor-label {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sponsor-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.nav-arrow {
  background: var(--primary-navy);
  color: var(--white);
  border: 2px solid var(--primary-navy);
  border-radius: var(--border-radius);
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.nav-arrow:hover {
  background: #5a6c8f;
  border-color: #5a6c8f;
  box-shadow: var(--shadow-hover);
}

.nav-arrow:active {
  background: #5a6c8f;
  border-color: #5a6c8f;
  box-shadow: var(--shadow);
}

.nav-arrow:disabled {
  background: var(--gray-medium);
  border-color: var(--gray-medium);
  color: var(--text-light);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.expand-btn {
  background: var(--primary-gold);
  color: var(--primary-navy);
  border: 2px solid var(--primary-gold);
  border-radius: var(--border-radius);
  height: 48px;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  min-width: 120px;
}

.grid-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--white);
}

.expand-btn:hover {
  background: var(--secondary-gold);
  border-color: var(--secondary-gold);
  box-shadow: var(--shadow-hover);
}

.expand-btn:hover .grid-icon {
  color: var(--white);
}

.expand-btn:active {
  background: var(--secondary-gold);
  border-color: var(--secondary-gold);
  box-shadow: var(--shadow);
}

.expand-btn:active .grid-icon {
  color: var(--white);
}

.expand-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.expand-btn.expanded {
  background: var(--primary-navy);
  border: 2px solid var(--primary-navy);
  color: var(--white);
}

.expand-btn.expanded .grid-icon {
  color: var(--white);
}

.expand-btn.expanded:hover {
  background: #5a6c8f;
  border-color: #5a6c8f;
}

.expand-btn.expanded:hover .grid-icon {
  color: var(--white);
}

.expand-btn.expanded:active {
  background: #5a6c8f;
  border-color: #5a6c8f;
}

.expand-btn.expanded:active .grid-icon {
  color: var(--white);
}

.sponsor-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(-10px);
}

.sponsor-list.expanded {
  max-height: 800px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.5s ease, opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
  
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) var(--gray-light);
}

/* Webkit scrollbar styling for Chrome/Safari */
.sponsor-list.expanded::-webkit-scrollbar {
  width: 8px;
}

.sponsor-list.expanded::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 0px;
}

.sponsor-list.expanded::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 0px;
}

.sponsor-list.expanded::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gold);
}

.sponsor-item {
  background: var(--white);
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: fit-content;
  text-align: center;
  align-items: center;
}

.sponsor-item-period {
  font-family: 'Playfair Display', serif;
  color: var(--primary-gold);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 0.5rem;
}

.sponsor-item-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

.sponsor-item-dedication {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
}

/* Sponsored items styling - no visual difference from available items */
.sponsor-item.sponsored {
  /* No special styling - same as available items */
}

/* Current period styling - gold background only */
.sponsor-item.current-period {
  background: var(--primary-gold);
}

/* Current period text styling */
.sponsor-item.current-period .sponsor-item-period {
  color: white;
  font-weight: 700;
}

.sponsor-item.current-period .sponsor-item-name {
  color: var(--text-dark);
  font-weight: 700;
}

.sponsor-item.current-period .sponsor-item-dedication {
  color: var(--text-dark);
  font-weight: 500;
}

/* Remove old sponsor styles */
.sponsor {
  display: none;
}

.scroll-btn {
  background: var(--primary-navy);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.scroll-btn:hover {
  background: #5a6c8f;
  box-shadow: var(--shadow-hover);
}

.scroll-btn:active {
  background: #5a6c8f;
  box-shadow: var(--shadow);
}

.donation {
  background: var(--gray-light);
  padding: 4rem 2rem;
  margin: 0;
  width: 100%;
  position: relative;
  border-bottom: 1px solid var(--gray-medium);
  text-align: center;
}

.donation h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 2rem;
  color: var(--primary-navy);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
}

#donation-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 500px;
  margin: 0 auto;
}

#donation-form .form-field {
  margin-bottom: 1rem;
}

#donation-form label {
  font-weight: 600;
  text-align: left;
  color: var(--text-dark);
  margin-top: 1rem;
  display: block;
}

#donation-form input {
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--gray-medium);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
  background: var(--white);
}

#donation-form input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
}

#donation-form button[type="submit"] {
  background: var(--primary-gold);
  color: white;
  border: 2px solid var(--primary-gold);
  border-radius: var(--border-radius);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  letter-spacing: 0.02em;
}

#donation-form button[type="submit"]:hover {
  background: var(--secondary-gold);
  border-color: var(--secondary-gold);
  box-shadow: var(--shadow-hover);
}

#donation-form button[type="submit"]:active {
  background: var(--secondary-gold);
  border-color: var(--secondary-gold);
  box-shadow: var(--shadow);
}

/* New form elements styling */
#donation-form select {
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--gray-medium);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
  background: var(--white);
  width: 100%;
}

#donation-form select:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
}

#donation-form textarea {
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--gray-medium);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
  background: var(--white);
  width: 100%;
  resize: vertical;
  min-height: 100px;
}

#donation-form textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
}

#donation-form input[readonly] {
  background: var(--gray-light);
  color: var(--text-dark);
  cursor: not-allowed;
}

#donation-form select option:disabled {
  color: var(--text-light);
  font-style: italic;
  background: var(--gray-light);
}

#donation-form select option:disabled:hover {
  background: var(--gray-light);
}

.dedication-instruction {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0.5rem 0 1rem 0;
}

/* Payment Details */
#payment-details {
  margin: 1rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-medium);
}

.payment-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.card-details > div {
  display: flex;
  flex-direction: column;
}

.card-details label {
  margin: 0 0 0.5rem 0;
}

.card-details input {
  margin: 0;
}

.payment-info {
  color: var(--text-dark);
}

.payment-info h4 {
  margin: 0 0 1rem 0;
  color: var(--primary-navy);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
}

.payment-info p {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.payment-info .note {
  margin-top: 1rem;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: var(--border-radius);
  color: #856404;
  font-size: 0.9rem;
  text-align: center;
}

.note-header {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #856404;
}

.note-text {
  margin-bottom: 0.5rem;
  font-style: italic;
  color: #856404;
}

.reference-text {
  background: white;
  color: black;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 0.5rem 0;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-style: normal;
  font-size: 0.9rem;
}

.copy-btn-inline {
  display: block;
  margin: 0.75rem auto 0.5rem auto;
  padding: 6px 12px;
  background: var(--primary-gold);
  color: var(--text-dark);
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.copy-btn-inline:hover {
  background: #c5932a;
}

.copy-message-inline {
  margin-top: 0.5rem;
  padding: 6px 12px;
  background: var(--primary-navy);
  color: white;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: inline-block;
}

.copy-message-inline.show {
  opacity: 1;
  transform: translateY(0);
}

/* Square Payment Form Styling */
#card-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#card-container label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

#card-number {
  min-height: 48px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius);
  background: var(--white);
  transition: border-color 0.3s ease;
}

/* Fallback form fields styling */
#card-number-fallback,
#expiry-fallback, 
#cvv-fallback,
#cardholder-name-fallback {
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius);
  background: var(--white);
  transition: border-color 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

/* CVV field should be smaller and constrained */
#cvv-fallback {
  max-width: 80px;
  width: 100%;
  box-sizing: border-box;
}

#card-number-fallback:focus,
#expiry-fallback:focus,
#cvv-fallback:focus,
#cardholder-name-fallback:focus {
  border-color: var(--primary-navy);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(74, 93, 138, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: var(--border-radius);
}

/* Button with spinner */
#donate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#donate-btn:disabled {
  background: var(--gray-medium);
  border-color: var(--gray-medium);
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sponsor clickable styling */
.sponsor-header.clickable {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.sponsor-header.clickable:hover {
  opacity: 0.8;
}

.sponsor-item.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.sponsor-item.clickable:hover {
  box-shadow: var(--shadow-hover);
}

/* Yom Tov Section Styling */
.yomtov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.yomtov-item {
  background: var(--white);
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.yomtov-item:hover {
  box-shadow: var(--shadow-hover);
}

.yomtov-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.yomtov-description {
  font-family: 'Inter', sans-serif;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.yomtov-date {
  font-family: 'Inter', sans-serif;
  color: var(--primary-gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.yomtov-btn {
  background: var(--primary-gold);
  color: white;
  border: 2px solid var(--primary-gold);
  border-radius: var(--border-radius);
  padding: 0.8rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.yomtov-btn:hover {
  background: var(--secondary-gold);
  border-color: var(--secondary-gold);
  box-shadow: var(--shadow-hover);
}

.yomtov-btn:active {
  background: var(--secondary-gold);
  border-color: var(--secondary-gold);
  box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(74, 93, 138, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1rem;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .sponsor-section {
    padding: 3rem 1rem;
  }
  
  .sponsor-header h2 {
    font-size: 2.8rem;
  }
  
  .sponsor-header h3 {
    font-size: 1.75rem;
  }
  
  .sponsor-header h4 {
    font-size: 1.4rem;
  }
  
  .sponsor-dedication {
    font-size: 1rem;
  }
  
  .nav-arrow, .expand-btn {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
  
  .expand-btn {
    font-size: 0.8rem;
    padding: 0 1.2rem;
    min-width: 100px;
    height: 42px;
  }
  
  .expand-label {
    font-size: 0.75rem;
  }
  
  .sponsor-navigation {
    gap: 0.8rem;
  }
  
  .donation {
    padding: 3rem 1rem;
  }
  
  .donation h2 {
    font-size: 2.2rem;
  }
  
  .sponsor-list.expanded {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1.5rem 2rem;
  }
  
  .yomtov-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .yomtov-item {
    padding: 1.5rem;
  }
  
  .yomtov-item h3 {
    font-size: 1.3rem;
  }
  
  .yomtov-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card-details {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  #donation-form {
    max-width: 100%;
    margin: 0;
  }
  
  #payment-details {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.5rem;
  }
  
  .nav-logo a {
    font-size: 1.3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-btn, .scroll-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .sponsor-section {
    padding: 2rem 1rem;
  }
  
  .sponsor-header h2 {
    font-size: 2.2rem;
  }
  
  .sponsor-header h3 {
    font-size: 1.75rem;
  }
  
  .sponsor-header h4 {
    font-size: 1.2rem;
  }
  
  .sponsor-dedication {
    font-size: 0.9rem;
  }
  
  .nav-arrow, .expand-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .expand-btn {
    font-size: 0.75rem;
    padding: 0 1rem;
    min-width: 90px;
    height: 38px;
  }
  
  .expand-label {
    font-size: 0.7rem;
  }
  
  .sponsor-navigation {
    gap: 0.6rem;
  }
  
  .donation {
    padding: 2rem 1rem;
  }
  
  .sponsor-list.expanded {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 1.5rem;
  }
  
  .sponsor-item {
    padding: 1.5rem;
    gap: 0.75rem;
  }
  
  .sponsor-item-period {
    font-size: 1.5rem;
  }
  
  .sponsor-item-name {
    font-size: 1rem;
  }
  
  .yomtov-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .yomtov-item {
    padding: 1.25rem;
  }
  
  .yomtov-item h3 {
    font-size: 1.2rem;
  }
  
  .yomtov-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Supporting Members Section */
.members-section {
  padding: 4rem 2rem;
  background: var(--white);
  text-align: center;
}

.members-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3rem;
  text-align: center;
}

.supporters-subheader {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 2rem 0 1.5rem 0;
  text-align: center;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.member-item {
  background: var(--gray-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.gold-supporter {
  background: #fefbf0;
  border: 3px solid var(--primary-gold);
}

.valued-supporter {
  background: var(--gray-light);
  border: 1px solid var(--gray-medium);
}

.member-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.gold-supporter .member-name {
  color: var(--text-dark);
  font-weight: 600;
}

.valued-supporter .member-name {
  color: var(--text-dark);
}

.members-message {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Mobile responsive for members section */
@media (max-width: 768px) {
  .members-section {
    padding: 3rem 1.5rem;
  }
  
  .members-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .supporters-subheader {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
  }
  
  .members-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .member-item {
    padding: 1.25rem;
    min-height: 70px;
  }
  
  .member-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .members-section {
    padding: 2rem 1rem;
  }
  
  .members-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .supporters-subheader {
    font-size: 1.3rem;
    margin: 1.25rem 0 0.75rem 0;
  }
  
  .members-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .member-item {
    padding: 1rem;
    min-height: 60px;
  }
  
  .member-name {
    font-size: 0.95rem;
  }
}

/* Field note styling for form helper text */
.field-note {
  font-size: 0.85rem;
  color: #666;
  font-weight: 400;
  font-style: italic;
}

/* Form error styling */
.form-field {
  position: relative;
  margin-bottom: 1rem;
  width: 100%;
}

.form-field input,
.form-field select {
  width: 100%;
  box-sizing: border-box;
}

.form-field input.error,
.form-field select.error {
  border: 2px solid #dc3545;
  background-color: #fdf2f2;
}

.form-field input.error:focus,
.form-field select.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  padding: 0.25rem 0;
  font-weight: 500;
}

.error-message.show {
  display: block;
}

/* Error state for submit button */
.btn-error {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: white !important;
}

.btn-error:hover {
  background-color: #c82333 !important;
  border-color: #bd2130 !important;
}

/* Success message overlay styling */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 20px;
}

.success-overlay.show {
  opacity: 1;
}

.success-message {
  background: #dff0d8;
  border: 1px solid #d6e9c6;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  color: #3c763d;
  font-size: 0.9rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.success-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #3c763d;
}

.success-close {
  background: none;
  border: none;
  color: #3c763d;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.success-close:hover {
  background-color: rgba(60, 118, 61, 0.1);
  color: #2b542c;
}

.success-text {
  margin-bottom: 0.5rem;
  color: #3c763d;
  line-height: 1.5;
}

 