/* ==========================================================================
   ArtiFlex Botánico — Ultra-Fast Android 4G WebView Quiz Pre-Lander Styles
   Zero external fonts/CDNs | Full LTR (CO/MX/UZ) & RTL (MA Darija / OM Gulf Arabic)
   ========================================================================== */

:root {
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-600: #0d9488;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --green-700: #15803d;
  --green-50: #f0fdf4;
  --green-200: #bbf7d0;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #cbd5e1;
  --border-soft: #e2e8f0;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.07);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Helvetica Neue", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  line-height: 1.65;
}

/* Preview / Demo Switcher Bar */
.geo-preview-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  padding: 6px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  direction: ltr;
}

.geo-preview-bar__label {
  color: #94a3b8;
  font-weight: 600;
  margin-right: 4px;
}

.geo-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.geo-btn:hover {
  background: #334155;
  color: #ffffff;
}

.geo-btn.is-active {
  background: var(--teal-600);
  color: #ffffff;
  border-color: #14b8a6;
}

.demo-pill {
  background: #312e81;
  color: #e0e7ff;
  border: 1px solid #4f46e5;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}

.demo-pill.is-active {
  background: #4338ca;
  color: #ffffff;
  border-color: #818cf8;
}

/* Main App Container */
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px 36px;
}

/* Top Editorial Wellness Header */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal-700);
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  line-height: 1.2;
}

.brand-sub {
  font-size: 11.5px;
  color: var(--text-light);
  display: block;
}

.region-badge {
  background: var(--teal-50);
  color: var(--teal-800);
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Quiz Main Card */
.quiz-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  padding: 18px 16px 22px;
  overflow: hidden;
}

/* Hero Intro Banner (shown on Step 1) */
.hero-intro {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 16px;
}

.hero-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--teal-700);
  margin-bottom: 4px;
}

html[dir="rtl"] .hero-kicker {
  letter-spacing: 0;
}

.hero-headline {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
}

.hero-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Progress Header */
.progress-wrap {
  margin-bottom: 16px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--teal-700), #14b8a6);
  border-radius: 999px;
  transition: width 0.28s ease;
}

/* Step Question Headings */
.step-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.32;
  color: var(--text-main);
}

.step-helper {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Touch-Friendly Option Buttons (56px+ height) */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  width: 100%;
  min-height: 56px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: start;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.08s ease;
}

.option-btn:hover,
.option-btn:focus-visible {
  border-color: var(--teal-600);
  background: var(--teal-50);
  outline: none;
}

.option-btn:active {
  transform: scale(0.99);
}

.option-btn--subtle {
  min-height: 46px;
  background: transparent;
  border-style: dashed;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-light);
}

.option-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-emoji {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.option-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 2px;
}

.option-arrow {
  color: var(--teal-700);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

html[dir="rtl"] .option-arrow {
  transform: scaleX(-1);
}

/* Step 4 City Select */
.city-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.select-input,
.text-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px; /* >=16px prevents Android/iOS WebView auto-zoom */
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 15px;
}

.select-input {
  padding-inline-end: 36px;
}

.select-input:focus,
.text-input:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Rural / Extended Zone Warning Alert */
.rural-warning {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.45;
}

/* Back Link Button */
.nav-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 2px;
  cursor: pointer;
}

.back-btn:hover {
  color: var(--text-main);
}

/* Primary Action Button */
.primary-btn {
  width: 100%;
  min-height: 56px;
  background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.26);
  transition: filter 0.15s ease, transform 0.08s ease;
}

.primary-btn:hover {
  filter: brightness(1.04);
}

.primary-btn:active {
  transform: scale(0.99);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Under-30 Polite Filter Notice */
.under30-box {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.under30-box h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text-main);
}

.under30-box p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.secondary-link-btn {
  display: inline-block;
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--text-light);
  text-decoration: underline;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

/* 1.5s Regional Subsidy Stock Checker Animation */
.checker-view {
  padding: 26px 10px;
  text-align: center;
}

.spinner-ring {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border: 4px solid var(--teal-100);
  border-top-color: var(--teal-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.checker-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.checker-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Result & Subsidized Offer Form Screen
   ========================================================================== */

.approved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-200);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.product-illust {
  width: 68px;
  height: 82px;
  border-radius: 10px;
  background: linear-gradient(160deg, #0f766e 0%, #115e59 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.22);
}

.product-illust__tag {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.88;
}

.product-illust__name {
  font-size: 12px;
  font-weight: 800;
  margin: 3px 0;
}

.product-illust__ml {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.18);
  padding: 1px 6px;
  border-radius: 99px;
}

.product-copy h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-main);
}

.product-copy p {
  margin: 0;
  font-size: 12.8px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Mandatory Prominent 50% Price Card ABOVE Form (Never $0/Free!) */
.price-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  text-align: center;
}

.price-discount-badge {
  display: inline-block;
  background: #d97706;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0;
}

.price-old {
  font-size: 15px;
  color: #78716c;
  text-decoration: line-through;
  font-weight: 600;
}

.price-new {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.courier-line {
  margin-top: 6px;
  font-size: 12.8px;
  font-weight: 700;
  color: var(--teal-800);
}

/* Mandatory Call Center Expectation Notice */
.call-notice {
  background: var(--teal-50);
  border: 1.5px solid #5eead4;
  border-radius: var(--radius-md);
  padding: 11px 13px;
  margin-bottom: 16px;
  font-size: 13.2px;
  color: #134e4a;
  line-height: 1.45;
}

/* Order Form Fields */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Phone Input Always LTR Inside Input Row so +57/+52/+212 Never Reverses */
.phone-group {
  display: flex;
  align-items: stretch;
  direction: ltr;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.phone-group:focus-within {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.phone-group.has-error {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.phone-prefix {
  background: #f1f5f9;
  border-right: 1px solid var(--border);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  user-select: none;
}

.phone-input {
  flex: 1;
  min-height: 52px;
  border: none;
  padding: 12px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-main);
  background: transparent;
  width: 100%;
}

.phone-input:focus {
  outline: none;
}

.field-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.field-error {
  background: var(--red-50);
  border: 1px solid var(--red-200);
  color: var(--red-600);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12.8px;
  font-weight: 600;
  margin-top: 5px;
}

/* Off-Screen CSS Honeypot (Invisible to Humans & Screen Readers, Catches Headless Bots) */
.hp-trap-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-light);
}

/* Confirmation Screen */
.success-view {
  text-align: center;
  padding: 8px 4px;
}

.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-50);
  border: 2px solid var(--green-200);
  color: var(--green-700);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.success-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
  text-align: start;
  font-size: 13.5px;
}

.success-card div + div {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-soft);
}

/* 2nd-Tap Active-Phone Confirmation Gate on Thank-You Screen */
.confirm-active-box {
  margin-top: 14px;
  background: var(--teal-50);
  border: 1.5px solid #5eead4;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  text-align: center;
}

.confirm-active-box.is-priority {
  border-width: 2px;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.confirm-active-hint {
  margin: 0 0 10px;
  font-size: 13.2px;
  font-weight: 600;
  color: #134e4a;
  line-height: 1.45;
}

.confirm-active-btn {
  font-size: 15px;
  min-height: 54px;
}

.confirm-active-done {
  background: var(--green-50);
  border: 1.5px solid var(--green-200);
  color: var(--green-700);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  font-size: 13.8px;
  font-weight: 700;
  line-height: 1.4;
}

.demo-inspector {
  margin-top: 14px;
  text-align: left;
  direction: ltr;
  background: #0f172a;
  color: #a5f3fc;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 11.5px;
  overflow-x: auto;
}

.demo-inspector pre {
  margin: 6px 0 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Compliance Footer */
.compliance-footer {
  margin-top: 18px;
  padding: 0 6px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.5;
}

.compliance-footer a {
  color: var(--teal-700);
  text-decoration: underline;
}

.is-hidden {
  display: none !important;
}
