:root {
  --saudi-green: #006c35;
  --saudi-green-dark: #004d25;
  --saudi-green-deep: #002e17;
  --saudi-green-light: #0b8846;
  --saudi-green-soft: #eef7f2;
  --saudi-green-line: #c8e4d3;
  --saudi-gold: #c5a059;
  --saudi-gold-light: #e4c98e;
  --saudi-gold-dark: #9a7736;
  --saudi-gold-soft: #fcf9ee;
  --saudi-gold-line: #edd9a6;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --text: #14231b;
  --text-secondary: #35473d;
  --muted: #5e7367;
  --line: #dfebe3;
  --danger: #c92a2a;
  --danger-soft: #fff5f5;
  --danger-line: #ffc9c9;
  --success: #0b8846;
  --success-soft: #eefbf3;
  --footer: #032112;
  --shadow: 0 16px 36px rgba(0, 60, 30, 0.08);
  --shadow-soft: 0 8px 20px rgba(0, 60, 30, 0.05);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --container: 480px;
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Cairo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(0, 108, 53, 0.06), transparent 30%),
    linear-gradient(180deg, #f7faf8 0%, #edf3ef 100%);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

.mobile-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 46, 23, 0.04);
}

.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--saudi-green) 0%, var(--saudi-gold) 50%, var(--saudi-green) 100%);
}

.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup__image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 108, 53, 0.15);
  border: 1.5px solid var(--saudi-gold-light);
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--saudi-green-dark);
  line-height: 1.2;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--saudi-green-soft);
  border: 1px solid var(--saudi-green-line);
  color: var(--saudi-green-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saudi-green);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

/* Page Main */
.page-main {
  flex: 1 0 auto;
  padding: var(--space-3) 0 var(--space-4);
}

.page-shell {
  display: grid;
  gap: var(--space-3);
}

.page-shell > * {
  min-width: 0;
}

/* Promo Card & Hero */
.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(197, 160, 89, 0.3);
}

.promo-hero {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Grant Highlight Section */
.grant-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #024823 0%, #006c35 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 108, 53, 0.22);
  border: 1px solid var(--saudi-gold);
}

.grant-highlight__box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.grant-highlight__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--saudi-gold-light);
  flex-shrink: 0;
}

.grant-highlight__text {
  display: flex;
  flex-direction: column;
}

.grant-highlight__text strong {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.grant-amount {
  font-size: 20px;
  font-weight: 900;
  color: #fff9e6;
  letter-spacing: -0.02em;
}

.grant-amount span {
  font-size: 13px;
  font-weight: 700;
  color: var(--saudi-gold-light);
  margin-right: 4px;
}

.grant-highlight__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.22);
  border: 1px solid var(--saudi-gold-light);
  color: #fff8e8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Notices */
.notice-stack {
  display: grid;
  gap: 10px;
}

.notice-card {
  min-height: 54px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  border: 1px solid;
  box-shadow: var(--shadow-soft);
}

.notice-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
}

.notice-card__icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.notice-card--royal {
  background: var(--saudi-gold-soft);
  border-color: var(--saudi-gold-line);
  color: #574116;
}

.notice-card--royal .notice-card__icon {
  color: var(--saudi-gold-dark);
  background: rgba(197, 160, 89, 0.25);
}

.notice-card--info {
  background: var(--saudi-green-soft);
  border-color: var(--saudi-green-line);
  color: var(--saudi-green-deep);
}

.notice-card--info .notice-card__icon {
  color: var(--saudi-green);
  background: rgba(0, 108, 53, 0.15);
}

/* Form Shell & Card */
.form-shell {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.form-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 22px 18px;
}

.form-copy {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.form-copy__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--saudi-green-soft);
  color: var(--saudi-green-dark);
  border: 1px solid var(--saudi-green-line);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.form-copy__badge--error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger-line);
}

.form-copy__badge--success {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--saudi-green-line);
}

.form-copy h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.form-copy__lead,
.hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.hint strong {
  color: var(--text);
}

.alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.alert--error {
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  color: var(--danger);
}

/* Form Fields */
.field-stack {
  display: grid;
  gap: 7px;
}

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: all 160ms ease;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23006c35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 38px;
  cursor: pointer;
}

select:disabled {
  background-color: var(--surface-soft);
  cursor: not-allowed;
}

input::placeholder {
  color: #9cb0a4;
  font-size: 13.5px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--saudi-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.12);
}

.input-decor {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  transition: all 160ms ease;
}

.input-decor:focus-within {
  border-color: var(--saudi-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.12);
}

.input-decor__flag {
  font-size: 14px;
  font-weight: 700;
  color: var(--saudi-green-dark);
  background: var(--saudi-green-soft);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--saudi-green-line);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.input-decor input {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-decor input:focus {
  box-shadow: none;
}

.input-invalid,
.input-invalid:focus,
.input-decor.input-invalid,
.input-decor.input-invalid:focus-within {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(201, 42, 42, 0.12);
}

.error-message {
  margin: 0;
  font-size: 12px;
  color: var(--danger);
  font-weight: 700;
}

.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Buttons */
button,
.btn-royal,
.button-link {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saudi-green) 0%, var(--saudi-green-light) 100%);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 108, 53, 0.28);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

button:hover,
.btn-royal:hover,
.button-link:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 14px 28px rgba(0, 108, 53, 0.35);
}

button:disabled,
.btn-royal:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-link--secondary {
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  color: var(--text-secondary);
  box-shadow: none;
}

.button-link--secondary:hover {
  background: var(--line);
  color: var(--text);
  box-shadow: none;
}

/* OTP Grid */
.otp-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.otp-fieldset legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.otp-box {
  min-height: 64px;
  padding: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #ffffff;
  color: var(--saudi-green-dark);
}

.otp-box:focus {
  border-color: var(--saudi-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.16);
}

/* Summary Card (Confirm View) */
.summary-card {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.summary-block {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  display: grid;
  gap: 4px;
}

.summary-block label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  word-break: break-word;
}

.summary-block--highlight {
  background: var(--saudi-green-soft);
  border-color: var(--saudi-green-line);
  box-shadow: 0 4px 12px rgba(0, 108, 53, 0.06);
}

.grant-value {
  color: var(--saudi-green-dark);
  font-size: 18px;
  font-weight: 900;
}

.confirm-actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  position: relative;
}

/* Password Input & Toggler */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0 6px 0 14px;
  transition: all 160ms ease;
}

.password-input-wrap:focus-within {
  border-color: var(--saudi-green);
  box-shadow: 0 0 0 4px rgba(0, 108, 53, 0.12);
}

.password-input-wrap input {
  border: none;
  background: transparent;
  padding: 12px 0;
  min-height: 48px;
  font-size: 15px;
  flex: 1;
  box-shadow: none !important;
}

.password-input-wrap input:focus {
  outline: none;
  box-shadow: none !important;
}

.password-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: auto;
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: color 150ms ease, background-color 150ms ease;
}

.password-toggle-btn:hover {
  color: var(--saudi-green-dark);
  background-color: var(--saudi-green-soft);
  transform: none;
}

/* OTP Meta & Helpers */
.otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-soft);
  border: 1px dashed var(--saudi-green-line);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}

.otp-meta__phone {
  font-weight: 800;
  color: var(--saudi-green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.otp-meta__change {
  color: var(--saudi-gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  font-size: 11.5px;
  transition: color 150ms ease;
}

.otp-meta__change:hover {
  color: var(--saudi-green-dark);
}

.otp-attempts-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid var(--danger-line);
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 4px;
}

/* Success Card & Official Receipt */
.success-card {
  text-align: center;
  padding: 24px 18px;
  display: grid;
  place-items: center;
  gap: 16px;
  position: relative;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saudi-green-soft) 0%, #d4ede0 100%);
  border: 2px solid var(--saudi-green-line);
  color: var(--saudi-green);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 108, 53, 0.16);
  animation: pulseDot 2.4s ease-in-out infinite;
}

.receipt-box {
  width: 100%;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: right;
  position: relative;
  overflow: hidden;
}

.receipt-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saudi-green) 0%, var(--saudi-gold) 50%, var(--saudi-green) 100%);
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.receipt-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.receipt-row__label {
  color: var(--muted);
  font-weight: 600;
}

.receipt-row__val {
  color: var(--text);
  font-weight: 800;
}

.receipt-row__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--saudi-green-line);
  font-size: 11.5px;
  font-weight: 800;
}

.success-notice {
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--saudi-gold-soft);
  border: 1px solid var(--saudi-gold-line);
  font-size: 12px;
  color: #574116;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Error Card Enhancements */
.error-card {
  padding: 24px 20px;
  display: grid;
  gap: 14px;
  text-align: center;
  position: relative;
}

.error-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--danger-soft);
  border: 2px solid var(--danger-line);
  color: var(--danger);
  display: grid;
  place-items: center;
}

.error-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--danger);
  font-weight: 700;
  margin: 0;
}

/* Trust Bar */
.trust-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--saudi-green-dark);
  font-size: 11.5px;
  font-weight: 700;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--saudi-green);
}

/* Toast Notifications */
.toast-layer {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  pointer-events: none;
}

.toast-card {
  width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--saudi-green-line);
  border-right: 5px solid var(--saudi-green);
  box-shadow: 0 16px 36px rgba(0, 46, 23, 0.16);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
  pointer-events: none;
  direction: rtl;
}

.toast-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--saudi-green-soft);
  color: var(--saudi-green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-card__body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--saudi-green-dark);
  line-height: 1.3;
}

.toast-card__body p {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-card__body small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}

.toast-card__close {
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #9cb0a4;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.toast-card__close:hover {
  color: var(--text);
  transform: none;
}

/* Loading Splash Overlay */
.form-splash {
  position: absolute;
  inset: 0;
  padding: 24px 20px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.form-splash strong {
  font-size: 17px;
  color: var(--saudi-green-dark);
}

.form-splash p {
  margin: 0;
  max-width: 26ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.form-splash__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3.5px solid rgba(0, 108, 53, 0.15);
  border-top-color: var(--saudi-green);
  animation: spin 0.8s linear infinite;
}

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

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 28px 0 32px;
  background: var(--footer);
  color: rgba(255, 255, 255, 0.9);
  border-top: 2px solid var(--saudi-gold);
}

.site-footer__inner {
  display: grid;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--saudi-gold);
  object-fit: cover;
}

.footer-brand h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--saudi-gold-light);
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

/* Accessibility & polish */
:focus-visible {
  outline: 3px solid rgba(197, 160, 89, 0.7);
  outline-offset: 2px;
}

.promo-card,
.form-shell,
.grant-highlight,
.trust-item {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.promo-card:hover,
.form-shell:hover {
  box-shadow: 0 20px 44px rgba(0, 60, 30, 0.12);
}

.form-card {
  animation: fadeUp 360ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-copy h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--saudi-gold), var(--saudi-gold-light));
}

.btn-royal {
  width: 100%;
}

.footer-links {
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 768px) {
  :root {
    --container: 520px;
  }

  .page-main {
    padding-top: var(--space-4);
  }

  .form-card {
    padding: 28px 26px;
  }
}

/* Responsive */
@media (max-width: 420px) {
  .brand-sub,
  .gov-badge span:last-child {
    font-size: 10px;
  }

  .grant-highlight {
    flex-wrap: wrap;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: calc(100% - 16px);
  }

  .grant-amount {
    font-size: 17px;
  }

  .otp-box {
    min-height: 56px;
    font-size: 22px;
    border-radius: 12px;
  }

  .toast-layer {
    left: 8px;
    right: 8px;
    bottom: 12px;
  }

  .toast-card {
    width: 100%;
  }
}
