:root {
      --primary: #4ea8de;
      --secondary: #7400b8;
      --dark: #1f1f1f;
      --light: #f9f9f9;
  --brand:#0d6efd;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: var(--light);
      color: var(--dark);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    .header {
      padding: 1.2rem 2rem;
      background: var(--dark);
      color: white;
      font-size: 1.5rem;
      font-weight: bold;
      text-align: center;
    }

    /* Keep Bootstrap container untouched */
    .main .container {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 2rem;
      width: 100%;
      max-width: 520px; /* wider base width */
    }

    @media (min-width: 768px) {
      .main .container { max-width: 640px; }
    }
    @media (min-width: 992px) {
      .main .container { max-width: 720px; }
    }

    .card {
      background: white;
      padding: 2.5rem;
      border-radius: 1.5rem;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
      width: 100%;
      max-width: 500px;
      animation: fadeIn 0.8s ease-in-out;
    }

    h2 {
      text-align: center;
      margin-bottom: 1.5rem;
      font-size: 2rem;
      color: var(--primary);
    }

    label {
      font-weight: 600;
    }

    .form-control {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid #ccc;
      border-radius: 0.6rem;
      margin-bottom: 1rem;
      font-size: 1rem;
    }

    .btn-submit {
      background: var(--primary);
      color: white;
      font-weight: bold;
      padding: 0.75rem;
      border: none;
      border-radius: 999px;
      width: 100%;
      cursor: pointer;
      font-size: 1rem;
      transition: all 0.3s ease;
    }

    .btn-submit:hover {
      background: #3a94c4;
      transform: scale(1.03);
    }

    .alert {
      margin-top: 1rem;
      font-size: 0.9rem;
    }

    footer {
      text-align: center;
      padding: 1.2rem;
      background: var(--dark);
      color: white;
      font-size: 0.9rem;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    html, body {
      height: 100%;
      margin: 0;
      display: flex;
      flex-direction: column;
      font-family: "Segoe UI", sans-serif;
      background: #f7f9fc;
    }

    header {
      background-color: #fff;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    header h1 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 500;
      color: #333;
    }

  .main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
  }
  /* For extra-short viewports, reduce hero padding to prevent clipping */
  @media (max-height: 620px) {
    .main { align-items: flex-start; justify-content: flex-start; }
  }

.container {
  width: 100%;
  max-width: 480px;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Add a bit of breathing room below the hero on small screens */
@media (max-width: 991.98px) {
  .hero-modern { padding-bottom: 36px; }
}



    .container h2 {
      text-align: center;
      margin-bottom: 1.5rem;
      font-size: 1.5rem;
      color: #222;
    }

    .form-control {
      width: 100%;
      padding: 0.75rem;
      margin-bottom: 1rem;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 1rem;
    }

    .btn-submit {
      width: 100%;
      padding: 0.8rem;
      background-color: #007bff;
      color: white;
      font-size: 1rem;
      border: none;
      border-radius: 8px;
      cursor: pointer;
    }

    .btn-submit:hover {
      background-color: #005dcf;
    }

    .alert {
      margin-top: 1rem;
      padding: 1rem;
      border-radius: 8px;
      font-size: 0.95rem;
      display: none;
    }

    .alert-success {
      background-color: #d4edda;
      color: #155724;
    }

    .alert-danger {
      background-color: #f8d7da;
      color: #721c24;
    }

    #confirmationAnimation {
      text-align: center;
      margin-top: 2rem;
      max-width: 480px;
    }

    footer {
      text-align: center;
      padding: 1.2rem;
      background: #1f1f1f;
      color: white;
      font-size: 0.9rem;
    }

    /* Hero styles for parity */
    .hero-modern { position:relative; overflow:visible; padding:60px 16px 40px; background: radial-gradient(1200px 600px at 80% -10%, rgba(13,110,253,0.18), transparent 60%), linear-gradient(180deg,#ffffff, #f7f9fc); }
    .hero-modern .inner { max-width:1080px; margin:0 auto; display:flex; gap:22px; align-items:center; justify-content:space-between; }
    .hero-kicker { display:inline-flex; gap:8px; align-items:center; padding:6px 10px; border-radius:999px; background:#eaf2ff; color:#174ea6; font-weight:600; font-size:0.8rem; }
    .hero-title { font-size: clamp(1.9rem, 4.6vw, 2.6rem); line-height:1.1; color:var(--dark); margin:10px 0 8px; font-weight:800; }
    .hero-sub { font-size:1rem; color:#6b7280; max-width:60ch; }

    /* Create separation between hero and main content */
    .hero-modern + .main { margin-top: 28px; }
    @media (max-width: 991.98px) { .hero-modern + .main { margin-top: 22px; } }
    @media (max-height: 720px) {
      .hero-modern { padding:50px 16px 32px; }
      .hero-modern + .main { margin-top: 18px; }
    }
    @media (max-height: 620px) {
      .hero-modern { padding:44px 16px 26px; }
      .hero-modern + .main { margin-top: 14px; }
    }

    /* Legal checkbox */
    .form-check-legal { display:flex; gap:10px; align-items:flex-start; background:#fbfcfe; border:1px solid #e5e8ec; border-radius:12px; padding:12px; margin:6px 0 6px; }
    .form-check-legal input[type="checkbox"] { margin-top:3px; }
    .form-check-legal a { color:#174ea6; text-decoration: underline; }