/* TaxiSafe — Freedom Cover 2026 | Mobile-first | Brand: #1353F0 #F5A623 */

/* PROTOTYPE DEMO DISCLAIMER */
.demo-disclaimer-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  background: #EF4444;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 6px 12px;
  line-height: 1.4;
}
body { padding-top: 34px; }

.demo-notice-block {
  background: #EF4444;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #1a1a2e;
  background: #F5F7FA;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 700; line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: #1353F0; text-decoration: none; }

/* App container */
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 56px; }

/* Loader */
.loader-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #0A1628;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}
.loader-overlay.hidden { opacity: 0; pointer-events: none; }
.loader-spinner {
  width: 40px; height: 40px;
  border: 4px solid rgba(245,166,35,0.25);
  border-top-color: #F5A623;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-text { margin-top: 16px; color: rgba(255,255,255,0.7); font-family: 'Open Sans', sans-serif; font-size: 0.875rem; }

/* Screens */
.screen { display: none; opacity: 0; animation: none; }
.screen.active { display: block; animation: fadeIn 0.35s ease forwards; }
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* Back button */
.back-button {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: #fff; font-size: 1.5rem; line-height: 1;
  border-radius: 50%; transition: background 0.2s;
}
.back-button:active { background: rgba(255,255,255,0.12); }
.back-button--dark { color: #1a1a2e; }
.back-button--dark:active { background: rgba(0,0,0,0.06); }
.back-button::before { content: '\2190'; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border: none; border-radius: 12px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: background 0.2s, transform 0.1s, opacity 0.2s;
  text-align: center; line-height: 1.3; -webkit-appearance: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { width: 100%; background: #F5A623; color: #0A1628; }
.btn-primary:active:not(:disabled) { background: #e0950e; }
.btn-secondary { width: 100%; background: transparent; color: #1353F0; border: 2px solid #1353F0; }
.btn-secondary:active:not(:disabled) { background: rgba(19,83,240,0.06); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; border-radius: 8px; }

/* Card */
.card { background: #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 12px 16px; }
.card + .card { margin-top: 12px; }

/* Badge */
.badge {
  display: inline-block; padding: 4px 12px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.625rem;
  text-transform: uppercase; letter-spacing: 0.5px; border-radius: 999px; line-height: 1.4;
}
.badge-free { background: #10B981; color: #fff; }
.badge-recommended { background: #F5A623; color: #0A1628; }
.badge-paid { background: #1353F0; color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(165deg, #0A1628 0%, #112244 50%, #1353F0 100%);
  padding: 60px 24px 40px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; background: rgba(245,166,35,0.08); border-radius: 50%;
}
.hero-eyebrow {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #F5A623; margin-bottom: 12px;
}
.hero h1 { font-size: 2rem; margin-bottom: 8px; }
.hero-accent { color: #F5A623; }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.75); margin-bottom: 28px; line-height: 1.5; }
.hero-cta { margin-top: 8px; }
.landing-body { padding: 24px 20px; }
.landing-body h2 { font-size: 1.125rem; margin-bottom: 12px; color: #0A1628; }

/* Benefit table */
.benefit-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-bottom: 20px; }
.benefit-table th, .benefit-table td { text-align: left; padding: 10px 12px; }
.benefit-table thead th {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px; color: #6B7280; border-bottom: 2px solid #e5e7eb;
}
.benefit-table tbody tr:nth-child(odd) { background: #F5F7FA; }
.benefit-table tbody tr:nth-child(even) { background: #fff; }
.benefit-table tbody td { color: #1a1a2e; }
.benefit-table tbody td:last-child { font-weight: 600; color: #0A1628; }

/* Medical qualifier */
.medical-qualifier {
  border-left: 4px solid #F5A623; background: rgba(245,166,35,0.08);
  border-radius: 0 12px 12px 0; padding: 16px; margin-bottom: 20px;
  font-size: 0.875rem; line-height: 1.6; color: #1a1a2e;
}
.medical-qualifier strong { display: block; margin-bottom: 4px; color: #0A1628; font-family: 'Montserrat', sans-serif; font-weight: 600; }

/* Product select */
.product-select-header { padding: 56px 20px 20px; text-align: center; }
.product-select-header h2 { font-size: 1.25rem; color: #0A1628; }
.product-select-header p { color: #6B7280; font-size: 0.875rem; margin-top: 4px; }
.product-list { padding: 0 20px 24px; }
.product-card {
  position: relative; background: #fff; border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 24px 20px 20px;
  cursor: pointer; transition: box-shadow 0.2s, transform 0.15s; border: 2px solid transparent;
}
.product-card:active { transform: scale(0.98); }
.product-card.selected { border-color: #1353F0; box-shadow: 0 4px 16px rgba(19,83,240,0.15); }
.product-card + .product-card { margin-top: 12px; }
.product-card .badge { position: absolute; top: -10px; right: 16px; }
.product-card-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.0625rem; color: #0A1628; margin-bottom: 4px; }
.product-card-desc { font-size: 0.8125rem; color: #6B7280; line-height: 1.4; margin-bottom: 12px; }
.product-price { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.5rem; color: #0A1628; }
.product-price-period { font-size: 0.8125rem; font-weight: 400; color: #6B7280; }
.product-card ul { list-style: none; margin: 12px 0; }
.product-card ul li { font-size: 0.8125rem; color: #1a1a2e; padding: 4px 0 4px 20px; position: relative; }
.product-card ul li::before { content: '\2713'; position: absolute; left: 0; color: #10B981; font-weight: 700; }
.product-select-action { padding: 0 20px 24px; }

/* Registration form */
.form-screen-header { padding: 56px 20px 16px; }
.form-screen-header h2 { font-size: 1.25rem; color: #0A1628; }
.form-screen-header p { color: #6B7280; font-size: 0.875rem; margin-top: 4px; }
.registration-form { padding: 0 20px 24px; }
.form-section-title {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.5px; color: #6B7280;
  margin: 24px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb;
}
.form-section-title:first-child { margin-top: 0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.8125rem; color: #1a1a2e; margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid #d1d5db; border-radius: 10px;
  font-family: 'Open Sans', sans-serif; font-size: 1rem; color: #1a1a2e; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: #1353F0; box-shadow: 0 0 0 3px rgba(19,83,240,0.12);
}
.form-group input::placeholder { color: #9ca3af; }
.form-group.error input, .form-group.error select { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.form-group .error-message { display: none; color: #EF4444; font-size: 0.75rem; margin-top: 4px; line-height: 1.4; }
.form-group.error .error-message { display: block; }

/* Checkbox */
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 4px 0; margin-bottom: 12px; }
.checkbox-group input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; margin-top: 2px; accent-color: #1353F0; cursor: pointer; }
.checkbox-group label { font-size: 0.8125rem; color: #1a1a2e; line-height: 1.5; cursor: pointer; }
.checkbox-group label a { text-decoration: underline; }
.beneficiary-separator { border: none; height: 1px; background: linear-gradient(to right, transparent, #d1d5db, transparent); margin: 28px 0 8px; }

/* Payment */
.payment-screen-content { padding: 56px 20px 24px; text-align: center; min-height: calc(100vh - 56px); display: flex; flex-direction: column; align-items: center; }
.payment-summary { width: 100%; margin-bottom: 24px; }
.payment-summary h2 { font-size: 1.25rem; color: #0A1628; margin-bottom: 4px; }
.payment-summary p { color: #6B7280; font-size: 0.875rem; }
.payment-amount { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 2.5rem; color: #0A1628; margin: 24px 0; }
.payment-amount-label { font-size: 0.875rem; color: #6B7280; margin-top: -16px; margin-bottom: 24px; }
.payment-detail-list { text-align: left; width: 100%; margin-bottom: 16px; }
.payment-detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.875rem; border-bottom: 1px solid #f0f0f0; }
.payment-detail-row:last-child { border-bottom: none; }
.payment-detail-label { color: #6B7280; }
.payment-detail-value { font-weight: 600; color: #0A1628; }
.pay-button-wrapper { width: 100%; margin-top: auto; padding-bottom: 24px; }

/* Processing / success states */
.payment-processing { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; }
.payment-processing.active { display: flex; }
.payment-processing .spinner { margin-bottom: 20px; }
.payment-processing p { color: #6B7280; font-size: 0.9375rem; }
.payment-success { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; }
.payment-success.active { display: flex; }

/* Spinner */
.spinner { width: 48px; height: 48px; border: 4px solid rgba(19,83,240,0.15); border-top-color: #1353F0; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Checkmark animation */
.checkmark-circle {
  width: 72px; height: 72px; border-radius: 50%; background: #10B981;
  display: flex; align-items: center; justify-content: center;
  animation: scaleIn 0.4s ease forwards; margin-bottom: 20px;
}
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } 60% { transform: scale(1.15); } to { transform: scale(1); opacity: 1; } }
.checkmark-circle svg { width: 36px; height: 36px; }
.checkmark-circle svg polyline {
  fill: none; stroke: #fff; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: drawCheck 0.5s ease 0.35s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* Confirmation */
.confirmation-content { padding: 24px 20px 24px; }
.confirmation-content h2 { text-align: center; font-size: 1.25rem; color: #0A1628; margin-bottom: 4px; }
.confirmation-subtitle { text-align: center; color: #6B7280; font-size: 0.875rem; margin-bottom: 24px; }
.policy-number-display { text-align: center; margin-bottom: 12px; }
.policy-number-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #6B7280; margin-bottom: 4px; }
.policy-number-value { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.75rem; color: #1353F0; letter-spacing: 1px; }
.confirmation-benefit-summary { margin-bottom: 16px; }
.confirmation-benefit-summary h3 { font-size: 0.9375rem; margin-bottom: 8px; color: #0A1628; }

/* Upsell */
.upsell-card { border: 2px dashed #F5A623; background: rgba(245,166,35,0.04); border-radius: 16px; padding: 20px; margin-top: 16px; text-align: center; }
.upsell-card h3 { font-size: 1rem; color: #0A1628; margin-bottom: 6px; }
.upsell-card p { font-size: 0.8125rem; color: #6B7280; line-height: 1.5; margin-bottom: 16px; }
.upsell-card .btn { width: 100%; }

/* Beneficiary notification */
.beneficiary-notification { background: rgba(16,185,129,0.06); border: 1.5px solid rgba(16,185,129,0.25); border-radius: 16px; padding: 16px; margin-top: 16px; }
.beneficiary-notification h4 { font-size: 0.875rem; color: #0A1628; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.beneficiary-notification-icon { display: inline-flex; width: 20px; height: 20px; background: #10B981; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-size: 0.625rem; font-weight: 700; }
.beneficiary-notification p { font-size: 0.8125rem; color: #6B7280; line-height: 1.5; }
.beneficiary-notification .message-preview { background: #fff; border-radius: 10px; padding: 12px; margin-top: 10px; font-size: 0.8125rem; color: #1a1a2e; line-height: 1.5; border-left: 3px solid #10B981; }

/* Platform branding footer */
.platform-branding { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: #fff; border-top: 1px solid #e5e7eb; padding: 10px 20px; text-align: center; }
.platform-branding-text { font-size: 0.6875rem; color: #9ca3af; letter-spacing: 0.3px; }
.platform-branding-text strong { color: #6B7280; font-weight: 600; }
.hide-platform-branding .platform-branding { display: none; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: #6B7280; }
.text-sm { font-size: 0.875rem; }
.mt-16 { margin-top: 16px; }
.w-full { width: 100%; }
