        /* =========================================
           1. SCROLLBAR REMOVAL (From Homepage)
           ========================================= */
        /* This hides the scrollbar visually but keeps scrolling enabled */
        html {
            scrollbar-width: none; /* For Firefox */
            -ms-overflow-style: none; /* For Internet Explorer and Edge */
        }
        
        body::-webkit-scrollbar {
            display: none; /* For Chrome, Safari, and Opera */
        }
* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(rgba(14,14,14,0.2), rgba(14,14,14,0.2)), url("assets/images/bg4.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 6vw;
  padding-top: 80px; 
}

/* --- FULL RESPONSIVE NAVBAR --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px 15px 35px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 50, 50, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2000;
    transition: all 0.3s ease;
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Hover Animation Logic */
.nav-links a:hover {
    color: #ff3333;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff3333;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* HAMBURGER STYLING */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 2001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* --- MOBILE RESPONSIVE LOGIC --- */
@media (max-width: 968px) {
    nav { 
        padding: 0 20px; 
        height: 72px; /* Reduced from 80px (80% of original) */
    }

            /* Adjust logo size to fit the smaller nav height */
    .logo img {
        height: 37px; /* Reduced from 45px */
    }

    .hamburger { display: flex; }

            /* Mobile Menu Styling - Contact Page Style */
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: linear-gradient(to left, #000000 0%, #000000 55%, rgba(0,0,0,0.1) 100%);
        backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        flex-direction: column; align-items: flex-end; justify-content: flex-start;
        padding-top: 90px;
        padding-right: 50px;
        transform: translateX(100%); opacity: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        z-index: 2000; pointer-events: none;
        will-change: transform, opacity;
    }
    .nav-links.active { transform: translateX(0); opacity: 1; pointer-events: all; }
            
    .nav-links a { 
        font-size: 1.1rem; 
        margin: 12px 0;    
        width: auto; 
        text-align: right; 
        display: block; 
        font-weight: 500; 
    }
    .nav-links a::after { left: auto; right: 0; }

    .hamburger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* CONTAINER & CARD */
.container {
  width: 500px;
  height: 620px;
  position: relative;
  /* Match this border-radius to the card + the inset */
  border-radius: 36px; 
  overflow: hidden;
  box-shadow: 0 0 80px rgba(255,255,255,0.08), 0 50px 100px rgba(0,0,0,0.9);
  /* Add a background color to act as a mask */
  background: #1f1f1f; 
}

.container::before {
  content: "";
  position: absolute;
  /* Use a larger negative inset to ensure the light covers the corners */
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 45deg, 
    transparent 75%, 
    rgba(255,255,255,0.9), 
    transparent 100%
  );
  animation: spin 4s linear infinite;
  pointer-events: none;
  /* Round the light layer so it doesn't have sharp 'tearing' edges */
  border-radius: 50%; 
}

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

.card {
  position: absolute;
  /* This creates the 2px border where the light shines through */
  inset: 2px; 
  border-radius: 34px;
  padding: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.45)), #1f1f1f;
  backdrop-filter: blur(14px);
  /* The inset shadow helps blend the edge */
  box-shadow: inset 0 70px 90px rgba(255,255,255,0.08), inset 0 -50px 80px rgba(0,0,0,0.9);
  overflow: hidden;
  z-index: 1; /* Ensure it stays above the light */
}

.matrix-title {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 3px;
  color: white;
  margin-bottom: 16px;
  text-align: center;
}

.day-title {
  font-size: 32px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  text-align: center;
  margin-bottom: 36px;
}

.scroll-area {
  height: 100%;
  overflow-y: auto;
  padding-right: 10px;
}

.scroll-area::-webkit-scrollbar { width: 8px; }
.scroll-area::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 10px; }

/* INPUTS & DROPDOWN */
.dropdown { position: relative; margin-bottom: 18px; }

.dropdown-selected {
  padding: 20px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 10px 10px 18px rgba(0,0,0,0.8), inset -10px -10px 18px rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  color: white;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 100%;
  padding: 12px;
  border-radius: 28px;
  background: #1b1b1b;
  display: none;
  z-index: 10;
}

.dropdown.open .dropdown-menu { display: block; }
.option { padding: 16px; border-radius: 18px; color: white; cursor: pointer; }
.option:hover { background: rgba(255,255,255,0.08); }

.input {
  width: 100%;
  padding: 20px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  box-shadow: inset 10px 10px 18px rgba(0,0,0,0.8), inset -10px -10px 18px rgba(255,255,255,0.06);
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 22px;
  -webkit-appearance: none; /* Correctly placed here */
  appearance: none;
}

.input::placeholder { color: rgba(255,255,255,0.35); }

/* NEW BUTTON GROUP STYLING */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  width: 100%;
}

.button {
  flex: 1; 
  height: 56px;
  border-radius: 30px;
  border: none;
  background: rgba(255,255,255,0.08);
  box-shadow: 12px 12px 24px rgba(0,0,0,0.9), -12px -12px 24px rgba(255,255,255,0.05);
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.button:active {
  box-shadow: inset 8px 8px 16px rgba(0,0,0,0.85), inset -8px -8px 16px rgba(255,255,255,0.06);
}

/* ERROR STYLING */
.error-msg {
  color: #ff4d4d;
  font-size: 16px;
  font-weight: 600;
  display: block;
  margin-top: -18px; 
  margin-bottom: 15px;
  padding-left: 22px;
}

.section-title { font-size: 26px; font-weight: 700; color: white; margin: 30px 0 20px; }



@media (max-width: 768px) {
  nav { 
    padding: 0 20px; 
    height: 72px; /* Reduced from 80px (80% of original) */
  }

            /* Adjust logo size to fit the smaller nav height */
  .logo img {
    height: 37px; /* Reduced from 45px */
  }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(to left, #000000 0%, #000000 55%, rgba(0,0,0,0.1) 100%);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    flex-direction: column; align-items: flex-end; justify-content: flex-start;
    padding-top: 90px;
    padding-right: 50px;
    transform: translateX(100%); opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    z-index: 2000; pointer-events: none;
    will-change: transform, opacity;
  }
  .nav-links.active { transform: translateX(0); opacity: 1; pointer-events: all; }
            
  .nav-links a { 
    font-size: 1.1rem; 
    margin: 12px 0;    
    width: auto; 
    text-align: right; 
    display: block; 
    font-weight: 500; 
  }
  .nav-links a::after { left: auto; right: 0; }

  .hamburger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.toggle span:nth-child(2) { opacity: 0; }
  .hamburger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  
  body { justify-content: center; padding-left: 0; }
  .container { transform: scale(0.92); transform-origin: center; }
}

/* MATCHING UI/UX CHECKBOXES */
.check-group {
  margin-top: 10px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.check-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.check-item input {
  display: none; 
}

.check-box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 5px 5px 10px rgba(0,0,0,0.8), inset -5px -5px 10px rgba(255,255,255,0.06);
  margin-right: 15px;
  position: relative;
  flex-shrink: 0;
  transition: 0.3s ease;
}

.check-box::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 14px;
  transition: 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.check-item input:checked + .check-box {
  background: rgba(255, 255, 255, 0.1);
}

.check-item input:checked + .check-box::after {
  transform: translate(-50%, -50%) scale(1);
}

.check-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Loader Styles --- */
.loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    display: none !important; /* Force hidden unless active */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5000; /* High z-index to cover everything inside card */
    border-radius: 34px;
}

.loader-overlay.active {
    display: flex !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 16px;
}

/* --- FIX FOR AUTOFILL WHITE BACKGROUND --- */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    /* Match your card's background color (#1f1f1f) */
    -webkit-box-shadow: 0 0 0px 1000px #1f1f1f inset !important;
    
    /* Re-apply your neumorphic inset shadows on top of the solid color */
    box-shadow: inset 10px 10px 18px rgba(0,0,0,0.8), 
                inset -10px -10px 18px rgba(255,255,255,0.06) !important;
    
    /* Force the text to stay white */
    -webkit-text-fill-color: white !important;
    
    /* Smooth transition to prevent the white flash */
    transition: background-color 5000s ease-in-out 0s;
}

/* Fix for the dropdown/input caret and general text rendering */
input:-internal-autofill-selected {
    background-color: transparent !important;
}

/* Remove the blue tap highlight on mobile/tablets */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Remove the default focus outline that some mobile browsers add */
.input:focus, 
.dropdown-selected:focus, 
.button:focus,
.check-item:focus {
    outline: none !important;
    -webkit-appearance: none;
}