:root {
      --fk-blue: #2874f0;
      --navy-footer: #14223b;
      --app-bg: #f1f3f6;
      --text-main: #1e293b;
      --text-sub: #475569;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, sans-serif;
    }

    body {
      background: #dce1e7;
      color: var(--text-main);
      line-height: 1.45;
      -webkit-font-smoothing: antialiased;
    }

    .app-shell {
      max-width: 460px;
      margin: 0 auto;
      background: var(--app-bg);
      min-height: 100vh;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
      padding-bottom: 32px;
    }

    .app-header {
      background: var(--fk-blue);
      color: #ffffff;
      padding: 12px 14px 14px;
      position: sticky;
      top: 0;
      z-index: 50;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    }

    .header-top,
    .brand-left {
      display: flex;
      align-items: center;
    }

    .header-top {
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
    }

    .brand-left {
      gap: 10px;
      min-width: 0;
    }

    .menu-icon {
      font-size: 20px;
      cursor: pointer;
    }

    .app-logo {
      width: 44px;
      height: 44px;
      padding: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 44px;
      overflow: hidden;
      border-radius: 10px;
      background: #ffffff;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .app-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .brand-info h1 {
      font-size: 18px;
      font-weight: 800;
      line-height: 1.15;
    }

    .brand-info .sub {
      color: #ffe500;
      font-size: 11.5px;
      font-weight: 600;
    }

    .lang-toggle {
      display: inline-flex;
      flex: 0 0 auto;
      padding: 2px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.25);
    }

    .lang-btn {
      padding: 3px 8px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: #ffffff;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
    }

    .lang-btn.active {
      background: #ffe500;
      color: #111827;
    }

    .search-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 9px 12px;
      border-radius: 8px;
      background: #ffffff;
      color: #64748b;
      font-size: 13px;
      text-decoration: none;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .form-subheader {
      display: grid;
      grid-template-columns: 40px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      margin: 16px 14px 12px;
    }

    .back-button {
      width: 40px;
      height: 40px;
      border: 1px solid #dbe3ee;
      border-radius: 12px;
      background: #ffffff;
      color: var(--text-main);
      font-size: 23px;
      line-height: 1;
      cursor: pointer;
    }

    .form-title {
      min-width: 0;
    }

    .form-title h2 {
      font-size: 17px;
      font-weight: 800;
      line-height: 1.4;
    }

    .form-title p {
      color: var(--text-sub);
      font-size: 12px;
    }

    .step-badge {
      padding: 5px 9px;
      border-radius: 999px;
      background: #dbeafe;
      color: #1d4ed8;
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
    }

    .registration-card {
      margin: 0 10px;
      padding: 18px 16px;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      background: #ffffff;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }

    .form-intro {
      margin-bottom: 16px;
      color: var(--text-sub);
      font-size: 13px;
    }

    .form-field {
      margin-bottom: 14px;
    }

    .form-field label {
      display: block;
      margin-bottom: 6px;
      color: var(--text-main);
      font-size: 13px;
      font-weight: 700;
    }

    .form-field input,
    .form-field select {
      width: 100%;
      min-height: 46px;
      padding: 10px 12px;
      border: 1px solid transparent;
      border-radius: 9px;
      outline: none;
      background: #f1f3f5;
      color: var(--text-main);
      font-size: 14px;
    }

    .form-field input:focus,
    .form-field select:focus {
      border-color: var(--fk-blue);
      box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.14);
    }

    .declaration-field {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin: 4px 0 16px;
    }

    .declaration-field input {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
      margin-top: 2px;
      accent-color: var(--fk-blue);
    }

    .declaration-field label {
      color: var(--text-sub);
      font-size: 12px;
      font-weight: 600;
      line-height: 1.65;
    }

    .submit-button {
      display: flex;
      width: 100%;
      min-height: 50px;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 12px 16px;
      border: 0;
      border-radius: 10px;
      background: #1877f2;
      color: #ffffff;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: opacity 0.15s ease, transform 0.15s ease;
    }

    .submit-button:active:not(:disabled) {
      transform: scale(0.99);
    }

    .submit-button:disabled {
      cursor: wait;
      opacity: 0.72;
    }

    .submit-button svg {
      width: 19px;
      height: 19px;
    }

    .spinner {
      display: none;
      width: 18px;
      height: 18px;
      border: 2px solid rgba(255, 255, 255, 0.45);
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }

    .submit-button.is-loading .submit-icon {
      display: none;
    }

    .submit-button.is-loading .spinner {
      display: inline-block;
    }

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

    .form-message {
      display: none;
      margin-top: 14px;
      padding: 11px 12px;
      border-radius: 9px;
      font-size: 13px;
      line-height: 1.55;
    }

    .form-message.visible {
      display: block;
    }

    .form-message.success {
      background: #ecfdf5;
      color: #166534;
    }

    .form-message.error {
      background: #fef2f2;
      color: #b91c1c;
    }

    .receipt-link {
      display: inline-block;
      margin-top: 5px;
      color: #166534;
      font-weight: 700;
    }

    .app-footer {
      margin-top: 20px;
      padding: 20px 16px 16px;
      background: var(--navy-footer);
      color: #cbd5e1;
      text-align: center;
      font-size: 12px;
    }

    .footer-brand {
      color: #ffffff;
      font-size: 14px;
      font-weight: 800;
    }

    .footer-addr {
      margin-top: 4px;
      color: #94a3b8;
      font-size: 11.5px;
    }

    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin: 12px 0;
    }

    .footer-nav button {
      border: 0;
      background: none;
      color: #ffe500;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: underline;
    }

    .copyright-line {
      margin-top: 8px;
      padding-top: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      color: #94a3b8;
      font-size: 11px;
    }

    .modal-bg {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      background: rgba(0, 0, 0, 0.65);
    }

    .modal-bg.open {
      display: flex;
    }

    .modal-card {
      width: 100%;
      max-width: 420px;
      max-height: 80vh;
      overflow-y: auto;
      padding: 18px;
      border-radius: 10px;
      background: #ffffff;
      text-align: left;
    }

    .modal-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      padding-bottom: 8px;
      border-bottom: 1px solid #e2e8f0;
    }

    .modal-top h3 {
      color: var(--fk-blue);
      font-size: 16px;
      font-weight: 800;
    }

    .modal-x {
      width: 28px;
      height: 28px;
      border: 0;
      border-radius: 50%;
      background: #f1f3f6;
      font-weight: 800;
      cursor: pointer;
    }

    .modal-card p {
      margin-bottom: 10px;
      color: #334155;
      font-size: 13px;
    }

    @media (max-width: 360px) {
      .form-subheader {
        grid-template-columns: 36px minmax(0, 1fr);
      }

      .back-button {
        width: 36px;
        height: 36px;
      }

      .step-badge {
        grid-column: 2;
        justify-self: start;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }
