/* --- Variables --- */
:root {
    --green: #2e7d32; /* Primary brand green */
    --gold: #c9a01a;  /* Accent gold for highlights/hover */
    --white: #ffffff;
    --offwhite: #f9f9f9; /* Light background for sections */
    --light-gray: #f0f0f0; /* Borders, subtle backgrounds */
    --mid-gray: #555; /* Secondary text color */
    --dark-gray: #333; /* Primary text color */
    --dark-green-footer: #0b2e0b; /* A darker green for the copyright bar */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle box shadow */
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

/* --- Base Styles & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Universal box-sizing for consistent layout */
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column; /* Allows main content to grow and push footer to bottom */
    font-family: 'Segoe UI', Roboto, Helvetica Neue, Arial, sans-serif; /* Modern font stack */
    background-color: rgb(193, 240, 163);
    color: var(--dark-gray);
    scroll-behavior: smooth; /* Smoother scrolling for AOS animations and nav */
    line-height: 1.6; /* Improved readability */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--green);
    margin-bottom: 0.75rem;
    font-weight: 600; /* Slightly bolder headings */
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid var(--light-gray);
    margin: 2rem 0;
}

/* --- Header Styling --- */
header {
  background: var(--green);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  box-shadow: var(--shadow);
  z-index: 100;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.desktop-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  transition: opacity 0.3s;
}

.desktop-nav a:hover {
  opacity: 0.8;
}

/* Center Links for Desktop */
.center-link-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.center-link-desktop a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.5rem 1.2rem;
  transition: color 0.2s;
}

.center-link-desktop a:hover {
  color: var(--gold);
}

.center-link-desktop .center-divider {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  align-items: center;
  gap: 0.3rem;
  margin-right: 3rem; /* Add space for menu button */
}

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem; /* Reduced from 1rem */
  padding: 0.2rem 0.5rem; /* Reduced padding */
  transition: color 0.3s ease; /* Add smooth transition */
}

.mobile-nav a:hover {
  color: var(--gold); /* Change to gold on hover */
  opacity: 0.9; /* Slight opacity change */
}

.mobile-nav .center-divider {
  color: var(--white);
  font-size: 1rem; /* Reduced from 1.2rem */
  font-weight: 600;
}

/* Menu Button */
#menu-toggle {
  display: none;
  color: var(--white);
  font-size: 1.8rem; /* Reduced from 2rem */
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1.2rem;
  z-index: 1001;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  right: 1rem;
  top: 3.5rem;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 8px;
  min-width: 180px;
  z-index: 1002;
}

.dropdown-menu a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #f0f0f0;
}

.dropdown-menu.show {
  display: block;
}

/* Responsive Design */
@media (max-width: 900px) {
  #menu-toggle {
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .center-link-desktop {
    display: none;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  .logo {
    font-size: 1.1rem; /* Reduced from 1.3rem */
  }
}

@media (min-width: 901px) {
  #menu-toggle {
    display: none;
  }
  
  .desktop-nav {
    display: flex;
  }
  
  .center-link-desktop {
    display: flex;
  }
  
  .mobile-nav {
    display: none;
  }
  
  .logo {
    font-size: 1.8rem;
  }
  
  .dropdown-menu {
    display: none !important;
  }
}

/* --- Main Content Area --- */
main {
    flex: 1; /* Allows main content to grow */
    padding: 2rem 1rem;
    max-width: 960px; /* Constrains content width */
    margin: 0 auto;
    width: 100%; /* Ensures it takes full width on small screens */
}

/* --- NEW Hero Section Wrapper --- */
.hero-section-wrapper {
    background: #ecf7d4;
    border: 2px solid var(--green); /* Unified border for the whole section */
    border-radius: var(--border-radius-lg);
    padding: 2rem; /* Padding for the entire section content */
    margin-bottom: 2rem; /* Space below the hero section */
    box-shadow: var(--shadow);
    text-align: center; 
    position: relative;
    overflow: visible;
}

/* Sticker animation container */
.bonus-sticker {
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: red;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: rotate(-10deg);
  z-index: 10;
  animation: vibrate 0.3s infinite;
}

/* Vibrate animation */
@keyframes vibrate {
  0% { transform: translate(0, 0) rotate(-10deg); }
  25% { transform: translate(1px, -1px) rotate(-10deg); }
  50% { transform: translate(-1px, 1px) rotate(-10deg); }
  75% { transform: translate(1px, 1px) rotate(-10deg); }
  100% { transform: translate(-1px, -1px) rotate(-10deg); }
}

/* Add pulsing ring behind the sticker */
.bonus-sticker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 0, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse 1.5s infinite ease-out;
}

/* Pulse wave animation */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .bonus-sticker {
    top: -15px;
    right: -15px;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* --- Hero Section Elements (Adjusted) --- */
.hero-heading {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 1.5rem; /* Space below heading */
}

.network-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 1rem; /* Space below logos */
}

.network-logos img {
    width: 80px;
    height: auto;
    border-radius: var(--border-radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px;
}


.network-logos img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.offline-paybill {
    /* Removed border, padding, text-align, font-size from here as wrapper handles it */
    font-weight: bolder;
    font-size: 15px; /* Adjusted text size */
    color: var(--dark-gray);
    margin-top: 5px; /* Space above paybill info */
    margin-bottom: 0; /* No margin below if it's the last element in the wrapper */
}

.offline-paybill u {
    font-size: 15px;
    color: var(--green);
}

/* --- Common Section Styling (Form, History, How-To) --- */
/* These remain largely the same, but ensure they have appropriate top margin if needed */
.airtime-form-section,
.history-section,
.how-to-section,
.message-us-section, /* Added for Help page consistency */
.help-content-section { /* For general help page content */
    background: #ecf7d4;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.airtime-form-section h2,
.history-section h2,
.how-to-section h2,
.message-us-section h2,
.help-content-section h1,
.help-content-section h2 {
    color: var(--green);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.75rem;
}

/* Common Horizontal Rule Styles for Sections */
.airtime-form-section hr,
.history-section hr,
.how-to-section hr,
.message-us-section hr,
.help-content-section hr {
    border: 0;
    border-top: 2px solid var(--light-gray);
    margin: 1rem 0 2rem;
}

/* --- Form Styling --- */
form label {
    font-size: 0.95rem;
    margin-bottom: 0;
    display: block;
    color: var(--dark-gray);
    font-weight: bold;
}

form input[type="tel"],
form input[type="number"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 0.8rem;
    padding: 0.85rem 0.5rem;
    border: 1px solid #ccc;
    border-left:3px solid green ;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    outline: none;
}

form button,
.send-button {
    display: block;
    width: 100%;
    background-color: var(--green);
    color: var(--white);
    font-weight: bold;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-align: center;
}

form button:hover,
.send-button:hover {
    background-color: var(--gold);
    transform: translateY(-2px);
}

/* --- Notification Pop-up (for script.js alerts) --- */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 320px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-20px);
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notification.success {
    background-color: var(--green);
}

.notification.error {
    background-color: #c62828;
}

.notification.warning {
    background-color: #f9a825;
    color: var(--dark-gray);
}

.notification i {
    font-style: normal;
    font-weight: bold;
}

/* --- Transaction History List --- */
#historyList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.transaction-card {
    background: var(--offwhite);
    border: 1px solid var(--light-gray);
    border-left: 4px solid var(--green);
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.transaction-card strong {
    color: var(--dark-gray);
}

.transaction-card small {
    display: block;
    margin-top: 0.5rem;
    color: var(--mid-gray);
    font-size: 0.85rem;
}

/* --- How-To Section (Steps) --- */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.step {
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.step img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step h4 {
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.step p {
    font-size: 0.95rem;
    color: var(--mid-gray);
    line-height: 1.5;
}

/* --- Help Page Specific Styles (for help.html) --- */
.help-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}

.help-page h1 {
    color: var(--green);
    margin-bottom: 0.5rem;
}

.help-page p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    color: var(--dark-gray);
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.contact-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    color: var(--green);
    font-size: 1.15rem;
}

.contact-card a {
    color: var(--gold);
    font-weight: bold;
    font-size: 0.95rem;
}

.contact-card a:hover {
    text-decoration: underline;
}

.message-us-section {
    padding: 2.5rem;
}

.message-us-section .section-heading {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form label {
    text-align: left;
    margin-bottom: 0;
    padding-left: 0.25rem;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.send-button {
    width: 60%;
    margin: 1rem auto 0;
}

/* --- Footer Styling --- */
footer {
    text-align: center;
    padding-top: 2rem;
    background-color: var(--green);
    color: var(--white);
    margin-top: auto;
}

.footer-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.certifications, .partners {
    margin-bottom: 1.5rem;
}

.certifications h4, .partners h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--gold);
}

.certification-logos, .partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.certifications figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
}

.certifications figure img, .partners img {
    height: 70px;
    width: auto;
    margin-bottom: 0.5rem;
    vertical-align: middle;
    border-radius: var(--border-radius-md);
    background: var(--white);
    padding: 4px;
    object-fit: contain;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.certifications figcaption {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 70%;
    margin: 2rem auto;
}

.copyright-info {
    background-color: var(--dark-green-footer);
    width: 100%;
    padding: 1rem 1rem;
    margin-top: 0;
}

.copyright-info p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.damaki-solution {
    color: var(--gold);
    font-weight: bold;
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    nav {
        margin-left: auto;
    }

    nav a {
        margin-left: 0.75rem;
        font-size: 0.95rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    /* Hero section wrapper adjustments */
    .hero-section-wrapper {
        padding: 1.5rem; /* Reduced padding for smaller screens */
    }

    .hero-heading {
        font-size: 1.5rem; /* Smaller heading inside wrapper */
        margin-bottom: 1rem; /* Adjust spacing */
    }

    .network-logos {
        gap: 25px;
        margin-bottom: 1.5rem;
    }

    .network-logos img {
        width: 65px;
    }

    .offline-paybill {
        font-size: medium;
        margin-top: 1rem; /* Adjust spacing */
    }

    .airtime-form-section,
    .history-section,
    .how-to-section,
    .message-us-section,
    .help-content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .airtime-form-section h2,
    .history-section h2,
    .how-to-section h2,
    .message-us-section h2,
    .help-content-section h1,
    .help-content-section h2 {
        font-size: 1.5rem;
    }

    form input,
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem 0.9rem;
        margin-bottom: 1rem;
    }

    form button,
    .send-button {
        padding: 0.9rem;
    }

    .send-button {
        width: 70%;
    }

    .notification {
        top: auto;
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 40px);
        max-width: 95%;
        font-size: 15px;
        padding: 14px 18px;
    }

    #historyList {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .step {
        max-width: 90%;
        padding: 1.2rem;
    }

    .contact-options {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .contact-card {
        padding: 1rem;
    }

    footer {
        padding-top: 1.5rem;
    }

    .footer-divider {
        width: 85%;
        margin: 1.5rem auto;
    }

    .certification-logos, .partner-logos {
        gap: 1rem;
    }

    .certifications figure img, .partners img {
        height: 55px;
    }

    .copyright-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 900px) {
  .about-services-flex {
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: stretch !important;
  }
  
  /* Fix header background overlap on mobile */
  .about-section .help-content-section,
  .services-section .help-content-section {
    margin: 0 !important;
  }
  
  .about-section .help-content-section > div:first-child,
  .services-section .help-content-section > div:first-child {
    margin: -1rem -1rem 1rem -1rem !important;
    border-radius: 8px 8px 0 0 !important;
  }
}

@media (max-width: 480px) {
  /* Further adjustments for very small screens */
  .about-section .help-content-section > div:first-child,
  .services-section .help-content-section > div:first-child {
    margin: -0.5rem -0.5rem 1rem -0.5rem !important;
    padding: 1rem 1.5rem 0.8rem 1.5rem !important;
  }
  
  .logo {
    font-size: 1.6rem;
  }

  nav a {
    font-size: 0.85rem;
    margin-left: 0.5rem;
  }

  main {
    padding: 1rem 0.5rem;
  }

  /* Hero section wrapper adjustments */
  .hero-section-wrapper {
    padding: 1rem; /* Further reduced padding */
  }

  .hero-heading {
    font-size: 1.3rem; /* Further reduced heading size */
  }

  .network-logos img {
    width: 50px;
  }

  .offline-paybill {
    font-size: small;
  }

  .airtime-form-section,
  .history-section,
  .how-to-section,
  .message-us-section,
  .help-content-section {
    padding: 1rem;
  }

  .airtime-form-section h2,
  .history-section h2,
  .how-to-section h2,
  .message-us-section h2,
  .help-content-section h1,
  .help-content-section h2 {
    font-size: 1.3rem;
  }

  form label, form input, form button {
    font-size: 0.85rem;
    padding: 0.6rem 0.7rem;
  }

  .send-button {
    width: 80%;
  }

  .notification {
    font-size: 13px;
    padding: 10px 12px;
    width: calc(100% - 20px);
  }

  .transaction-card {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .step img {
    width: 90px;
  }

  .step h4 {
    font-size: 1rem;
  }

  .step p {
    font-size: 0.85rem;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .certifications figure img, .partners img {
    height: 45px;
  }
  .desktop-nav a {
    font-size: 0.92rem;
  }
  .desktop-nav a:last-child {
    margin-right: 2.2rem;
  }
}

#menu-toggle {
  color: #fff !important;
}

.wallet-buttons-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0 2rem 0;
}
.wallet-btn {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2e7d32;
  background: #fff;
  border: 2px solid #2e7d32;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(46,125,50,0.06);
}
.wallet-btn:hover {
  background: #2e7d32;
  color: #fff;
  box-shadow: 0 4px 16px rgba(46,125,50,0.12);
}
@media (max-width: 600px) {
  .wallet-buttons-container {
    flex-direction: column;
    gap: 1.2rem;
    margin: 1.5rem 0 1rem 0;
  }
  .wallet-btn {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    padding: 1rem 0;
  }
}

@media (max-width: 900px) {
  .logo {
    font-size: 1.3rem !important;
  }
}
@media (min-width: 901px) {
  .logo {
    font-size: 1.8rem !important;
  }
}

/* Form Toggle Styles */
.form-toggle {
  display: flex;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 1.5rem;
  gap: 4px;
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  font-weight: 600;
  color: #666;
  position: relative;
}

.toggle-option input[type="radio"] {
  display: none;
}

.toggle-option.active {
  background: var(--green);
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-option:hover:not(.active) {
  background: #e0e0e0;
  color: #333;
}

/* Form Sections */
.form-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.form-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Beautiful Loading Overlay
   ============================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.loading-overlay.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.loading-content {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  animation: slideUp 0.3s ease;
  position: relative;
  z-index: 100000;
}

@media (max-width: 768px) {
  .loading-overlay {
    -webkit-overflow-scrolling: touch;
    touch-action: none;
  }
  
  .loading-content {
    padding: 1.5rem;
    max-width: 90%;
    width: 85%;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.spinner-container {
  margin: 0 auto 1.5rem;
  width: 60px;
  height: 60px;
  position: relative;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e3f2fd;
  border-top: 4px solid var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.loading-subtext {
  font-size: 0.9rem;
  color: var(--mid-gray);
  margin: 0;
}

/* ============================================
   Enhanced Notification System
   ============================================ */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 100000;
  max-width: 90%;
  width: auto;
  min-width: 250px;
  max-height: 20vh;
  overflow-y: auto;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.4s ease forwards;
}

@media (max-width: 480px) {
  .notification {
    min-width: 200px;
    width: 95%;
    max-width: 95%;
    padding: 12px 20px;
    font-size: 14px;
    top: 10px;
  }
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
  }
}

.notification.success {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  border-left: 4px solid #2e7d32;
}

.notification.error {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  border-left: 4px solid #c62828;
}

.notification::before {
  content: '';
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.notification.success::before {
  content: '✓';
  font-size: 20px;
  font-weight: bold;
}

.notification.error::before {
  content: '✕';
  font-size: 20px;
  font-weight: bold;
}