    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Inter', system-ui, -apple-system, sans-serif;
    }

    body {
      background-color: #f3f0f7;
      color: #1e1b4b;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-bottom: 50px;
    }

    /* Header Banner Container */
    .header-banner-wrapper {
      width: 100%;
      max-width: 1340px;
      margin: 0 auto;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      border-bottom-left-radius: 12px;
      border-bottom-right-radius: 12px;
      overflow: hidden;
      background: #ffffff;
    }

    .banner-image {
      width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
    }

    /* Main Container */
    .app-container {
      width: 100%;
      max-width: 1340px;
      margin-top: 24px;
      padding: 0 16px;
    }

    /* UNIFIED SINGLE CARD */
    .unified-card {
      background: #ffffff;
      border-radius: 20px;
      padding: 32px;
      box-shadow: 0 10px 30px rgba(59, 24, 89, 0.08);
      border: 1px solid #e9d5ff;
    }

    /* Two-Column Grid Inside Unified Box */
    .unified-grid {
      display: grid;
      grid-template-columns: 360px 1fr;
      gap: 32px;
    }

    @media (max-width: 1024px) {
      .unified-grid {
        grid-template-columns: 1fr;
      }
      
      .form-control-wa::placeholder{
          font-size: 8px;
      }
    }

    /* Section Titles */
    .section-title {
      font-size: 18px;
      font-weight: 800;
      color: #2b1c6d;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    /* LEFT FORM PANEL */
    .tab-header {
      display: flex;
      background: #f3e8ff;
      border-radius: 10px;
      padding: 4px;
      margin-bottom: 20px;
    }

    .tab-btn {
      flex: 1;
      padding: 10px;
      text-align: center;
      border: none;
      background: transparent;
      color: #6b21a8;
      font-weight: 700;
      font-size: 14px;
      border-radius: 8px;
      cursor: pointer;
    }

    .tab-btn.active {
      background: #581c87;
      color: #ffffff;
    }

    .form-group {
      margin-bottom: 14px;
    }

    .form-control {
      width: 100%;
      padding: 12px 14px;
      background: #faf5ff;
      border: 1px solid #d8b4fe;
      border-radius: 8px;
      color: #1e1b4b;
      font-size: 14px;
      outline: none;
    }

    .form-control::placeholder {
      color: #9333ea;
      opacity: 0.6;
    }
    
    .form-control-wa::placeholder{
        font-size: 11px;
    }
    
    .iti__selected-dial-code{
        font-size: 14px;
    }

    .form-control:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

.field-hint { font-size: 11px; color: #6b21a8; margin: -8px 0 10px; line-height: 1.4; }

    /* Validation state — red border + inline message, consistent
       across every field type (text input, select, segmented group). */
    .has-error {
      border-color: #dc2626 !important;
    }

    .error-text {
      display: none;
      color: #dc2626;
      font-size: 11px;
      margin-top: 4px;
      line-height: 1.4;
    }

    .mobile-group {
      display: flex;
      gap: 8px;
    }

    .country-code {
      width: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f3e8ff;
      border: 1px solid #d8b4fe;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      color: #581c87;
      flex-shrink: 0;
    }

    .btn-send-otp {
      background: #6b21a8;
      border: none;
      color: #ffffff;
      padding: 0 14px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      font-size: 12px;
      white-space: nowrap;
      min-width: 92px;
    }

    .btn-send-otp:disabled {
      background: #d8b4fe;
      color: #faf5ff;
      cursor: not-allowed;
    }

    .checkbox-row {
      display: flex;
      gap: 16px;
      align-items: center;
      margin-top: 6px;
      margin-bottom: 14px;
      font-size: 12px;
      color: #581c87;
      font-weight: 500;
    }

    .checkbox-row label {
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }

    .checkbox-row input[type="checkbox"],
    .consent-row input[type="checkbox"] {
      width: 15px;
      height: 15px;
      accent-color: #7e22ce;
      flex-shrink: 0;
      cursor: pointer;
    }

    /* Terms & conditions row — longer text, so align checkbox to the
       top line rather than vertically centering against the whole block. */
    .consent-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-top: 12px;
      margin-bottom: 4px;
    }

    .consent-row label {
      font-size: 11.5px;
      color: #4c1d95;
      line-height: 1.45;
      cursor: pointer;
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .toggle-section {
      margin-top: 14px;
    }

    .toggle-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #6b21a8;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .segmented-control {
      display: flex;
      background: #f3e8ff;
      border-radius: 8px;
      padding: 3px;
      border: 1px solid #e9d5ff;
    }

    .segmented-control.has-error {
      border-color: #dc2626 !important;
    }

    .segmented-btn {
      flex: 1;
      padding: 8px;
      text-align: center;
      border: none;
      background: transparent;
      color: #6b21a8;
      font-weight: 700;
      font-size: 13px;
      border-radius: 6px;
      cursor: pointer;
    }

    .segmented-btn.active {
      background: #7e22ce;
      color: #ffffff;
    }

    /* Upload / Camera buttons for the 10th Marksheet field */
    .upload-row {
      display: flex;
      gap: 8px;
    }

    .btn-upload {
      flex: 1;
      background: #faf5ff;
      border: 1px solid #d8b4fe;
      color: #581c87;
      padding: 10px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 12.5px;
      cursor: pointer;
    }

    .btn-upload:hover {
      background: #f3e8ff;
    }

    .file-name-label {
      font-size: 11px;
      color: #6b21a8;
      margin-top: 6px;
      display: none;
      word-break: break-word;
    }

    /* Visually hidden but still "present" — keeps file/camera inputs
       reliably clickable via a proxy button on mobile (notably iOS). */
    .visually-hidden-file {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    /* Smooth expand/collapse for the OTP field — animates open instead
       of snapping in, so it doesn't jolt the layout. */
    .smooth-collapse {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      visibility: hidden;
      transition: grid-template-rows .3s ease, opacity .25s ease, visibility 0s linear .3s;
    }

    .smooth-collapse.open {
      grid-template-rows: 1fr;
      opacity: 1;
      visibility: visible;
      transition: grid-template-rows .3s ease, opacity .25s ease .05s, visibility 0s;
    }

    .smooth-collapse > .smooth-collapse-inner {
      overflow: hidden;
      min-height: 0;
    }

    @media (prefers-reduced-motion: reduce) {
      .smooth-collapse, .smooth-collapse.open { transition: none; }
    }

    /* RIGHT PROGRAM SELECTION PANEL */
    .panel-header-sub {
      font-size: 13px;
      color: #6b21a8;
      margin-top: 2px;
      font-weight: 500;
      margin-bottom: 16px;
    }

    .selection-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .selected-count {
      color: #7e22ce;
      font-weight: 700;
      font-size: 13px;
      background: #f3e8ff;
      padding: 4px 10px;
      border-radius: 20px;
    }

    .btn-clear {
      color: #94a3b8;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
    }

    /* Program Column Cards Grid */
    .columns-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    @media (max-width: 1200px) {
      .columns-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      }
      .form-control-wa::placeholder{
          font-size: 9px;
      }
    }

    .program-column {
      background: #faf5ff;
      border-radius: 12px;
      border: 1px solid #e9d5ff;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .program-column.has-error {
      border-color: #dc2626;
    }

    .column-header {
      padding: 10px 8px;
      color: #ffffff;
      text-align: center;
      font-weight: 700;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .column-header .badge {
      background: rgba(255, 255, 255, 0.3);
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
    }

    .col-1 { background: #8b5cf6; }
    .col-2 { background: #f59e0b; }
    .col-3 { background: #10b981; }
    .col-4 { background: #06b6d4; }
    .col-5 { background: #ec4899; }
    .col-6 { background: #3b82f6; }


    .column-body {
      padding: 12px 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .degree-subhead {
      font-size: 11px;
      font-weight: 800;
      color: #7e22ce;
      text-transform: uppercase;
      margin-bottom: 2px;
      display: block;
    }

    .program-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 12px;
      color: #334155;
      cursor: pointer;
      line-height: 1.3;
    }

    .program-item input[type="checkbox"] {
      margin-top: 2px;
      accent-color: #7e22ce;
      cursor: pointer;
    }

    /* COMMON BOTTOM APPLY BUTTON */
    .common-apply-footer {
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid #e9d5ff;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .submit-error-banner {
      display: none;
      width: 100%;
      max-width: 480px;
      background: #fdecea;
      border: 1px solid #f5c6cb;
      color: #611a15;
      font-size: 12.5px;
      padding: 10px 12px;
      margin-bottom: 14px;
      border-radius: 8px;
      text-align: center;
    }

    .btn-apply-now-common {
      width: 100%;
      max-width: 480px;
      background: linear-gradient(135deg, #581c87 0%, #3b0764 100%);
      color: #ffffff;
      border: none;
      padding: 16px;
      border-radius: 12px;
      font-weight: 800;
      font-size: 16px;
      letter-spacing: 0.5px;
      cursor: pointer;
      box-shadow: 0 6px 16px rgba(88, 28, 135, 0.3);
      transition: transform 0.1s, box-shadow 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .btn-apply-now-common:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(88, 28, 135, 0.4);
    }

    .btn-apply-now-common:disabled {
      opacity: 0.75;
      cursor: not-allowed;
      transform: none;
    }

    .spinner {
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255, 255, 255, 0.45);
      border-top-color: #fff;
      border-radius: 50%;
      display: inline-block;
      animation: spin .7s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Full-screen blocking overlay while a submission is in flight */
    #submitOverlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(43, 15, 74, 0.78);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;
      padding: 20px;
      color: #fff;
    }

    #submitOverlay .spinner {
      width: 42px;
      height: 42px;
      border-width: 4px;
      margin-bottom: 14px;
    }

    #submitOverlay .overlay-title {
      font-size: 16px;
      font-weight: 800;
    }

    #submitOverlay .overlay-sub {
      font-size: 12.5px;
      opacity: 0.85;
      margin-top: 4px;
    }

    /* Phase 2 / Thank-you Layout */
    .phase-2-container {
      display: none;
      background: #ffffff;
      border-radius: 16px;
      padding: 40px 24px;
      box-shadow: 0 10px 25px rgba(59, 24, 89, 0.08);
      border: 1px solid #e9d5ff;
      text-align: center;
    }

    .phase-2-container h2 {
      font-size: 26px;
      color: #10b981;
      margin-bottom: 8px;
    }

    .summary-card {
      background: #faf5ff;
      border: 1px solid #e9d5ff;
      border-radius: 12px;
      padding: 24px;
      text-align: left;
      max-width: 600px;
      margin: 24px auto;
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid #e9d5ff;
    }

    .summary-row:last-child {
      border-bottom: none;
    }

    .btn-back {
      background: #581c87;
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 600;
    }

    /* Login pane */
    #loginFields {
      display: none;
    }

    .plain-link {
      color: #581c87;
      font-size: 12px;
      text-decoration: none;
      font-weight: 600;
    }

    .login-hint {
      font-size: 11px;
      color: #8a8a8a;
      text-align: center;
      margin-top: 10px;
    }
    
    /* Sub-line + search row */
.panel-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.panel-sub-row .panel-header-sub { margin-bottom: 0; }
.right-program-section .toggle-section { margin-bottom: 16px; }

/* Programme search + dropdown */
.program-search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search-results { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid #d8b4fe; border-radius: 10px;
  box-shadow: 0 10px 25px rgba(59, 24, 89, 0.15); padding: 6px; }
.search-results.open { display: block; }
.search-results .program-item { padding: 7px 6px; border-radius: 6px; }
.search-results .program-item:hover { background: #f3e8ff; }
.result-area { display: block; font-size: 10.5px; color: #9333ea; margin-top: 1px; }
.search-empty { font-size: 12px; color: #94a3b8; padding: 8px 6px; }

/* Small label for the WhatsApp number on phones */
.wa-label { display: none; font-size: 11px; font-weight: 700; color: #6b21a8; margin-bottom: 4px; }
@media (max-width: 600px) { .wa-label { display: block; } }