/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "DM Sans", sans-serif;
  background: #f9fafb;
  color: #1a1a2e;
}
img {
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select {
  font-family: inherit;
}

/* ── CSS Variables ── */
:root {
  --pink: #ffa794;
  --pink-dark: #e8856e;
  --pink-pale: #fff1ee;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --error: #dc2626;
  --warn: #d97706;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(194, 24, 91, 0.12);
}

/* ── Page Router ── */
.page {
  display: none !important;
  min-height: 100vh;
}
.page.active {
  display: flex !important;
}
#page-login.active,
#page-signup.active {
  flex-direction: row;
}
#page-home.active {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#page-qr.active,
#page-failed.active,
#page-verify.active {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Watermark / Badges ── */
#badges-container {
  position: fixed;
  bottom: 0.5px;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  user-select: none;
}

#watermark {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #dc2626;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 6px;
  width: 13rem;
}
#watermark .wdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: wmpulse 1.4s ease-in-out infinite;
}
#watermark span {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

#powered-by {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(26, 26, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  width: 21rem;
}
#powered-by .pb-label {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
#powered-by .pb-brand {
  font-size: 11px;
  font-weight: 700;
  color: #ffa794;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes wmpulse {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Auth Layout ── */
.auth-root {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.auth-brand {
  position: relative;
  width: 42%;
  min-height: 100vh;
  background: linear-gradient(
    145deg,
    var(--pink-dark) 0%,
    var(--pink) 60%,
    #be6954 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .auth-brand {
    display: none !important;
  }
}
.brand-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}
.metro-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.logo-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.logo-ring img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 4px;
}
.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 900;
  margin: 0 0 0.4rem;
  line-height: 1.1;
}
.brand-tagline {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.5px;
  margin: 0 0 2rem;
}
.brand-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.brand-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}
.brand-dots span:nth-child(2) {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}
.brand-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.deco-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -80px;
}
.deco-2 {
  width: 200px;
  height: 200px;
  bottom: 60px;
  left: -50px;
  background: rgba(255, 255, 255, 0.05);
}
.deco-3 {
  width: 100px;
  height: 100px;
  bottom: -30px;
  right: 40px;
}
.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  animation: slideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-header {
  margin-bottom: 1.75rem;
}
.auth-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.3rem;
}
.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input-wrap input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 167, 148, 0.18);
  background: var(--white);
}
.no-icon input {
  padding-left: 14px;
}
.toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
}
.btn-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(194, 24, 91, 0.35);
}
.btn-primary:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(194, 24, 91, 0.45);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-ghost {
  width: 100%;
  padding: 10px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
}
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}
.alert-error {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}
.alert-warn {
  background: #fffbeb;
  color: var(--warn);
  border: 1px solid #fde68a;
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
}
.auth-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.auth-link {
  color: var(--pink);
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover {
  text-decoration: underline;
}

/* ── Step Bar (Signup) ── */
.step-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.step-bubble {
    width: 28px;
  height: 28px;
  font-size: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.step-item.active .step-bubble {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--white);
}
.step-item.done .step-bubble {
  border-color: var(--pink-dark);
  background: var(--pink-dark);
  color: var(--white);
}
.step-label {
   font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}
.step-item.active .step-label {
  color: var(--pink);
}
.step-item.done .step-label {
  color: var(--pink-dark);
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 14px;
  transition: background 0.3s;
}
.step-line.done {
  background: var(--pink);
}
.otp-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 0.5rem 0;
}
.otp-box {
  width: 56px;
  height: 60px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.otp-box:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 167, 148, 0.2);
  background: var(--white);
}
.step-intro {
  margin-bottom: 0.25rem;
}
.step-intro h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.step-intro p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Home Page ── */
#page-home {
  background: #ffa794;
  padding: 2rem 1rem;
}
.home-grid {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.booking-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 1.75rem;
}
.booking-card .logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.booking-card .logo-wrap img {
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.booking-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.booking-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}
.booking-card select,
.booking-card input[type="number"] {
  width: 100%;
  margin-bottom: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.booking-card select:focus,
.booking-card input[type="number"]:focus {
  border-color: var(--pink);
}
.fare-box {
  margin-bottom: 1rem;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 10px;
  text-align: center;
}
.fare-box p:first-child {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.fare-box .fare-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: #15803d;
}
.pay-btn {
  width: 100%;
  padding: 13px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.pay-btn:hover:not(:disabled) {
  background: #15803d;
}
.pay-btn:disabled {
  background: #86efac;
  cursor: not-allowed;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.875rem;
}
.profile-row .lbl {
  color: var(--text-muted);
}
.profile-row .val {
  font-weight: 500;
}
.logout-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 10px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.logout-btn:hover {
  background: #dc2626;
}


.input-wrap select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #374151;
  padding: 14px 16px;
  appearance: none;
  cursor: pointer;
}

.input-wrap select:invalid {
  color: #9ca3af;
}

/* ── QR Page ── */
#page-qr {
  background: #fdf2f6;
  padding: 2.5rem 1rem;
}
.ticket-card {
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid #f4c0d1;
  width: 100%;
  max-width: 390px;
  overflow: hidden;
}
.ticket-header {
  padding: 20px 24px;
  background: #993556;
}
.ticket-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.ticket-dots .d1 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ed93b1;
}
.ticket-dots .d2 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4c0d1;
  opacity: 0.5;
}
.ticket-dots .tlb {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f4c0d1;
  margin-left: 4px;
}
.ticket-route {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.ticket-route .station {
  flex: 1;
}
.ticket-route .station .lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ed93b1;
  margin-bottom: 4px;
}
.ticket-route .station .name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}
.ticket-route .station.right {
  text-align: right;
}
.ticket-route .arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 4px;
}
.ticket-route .arrow-col .adot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ed93b1;
}
.ticket-route .arrow-col .aline {
  width: 1px;
  height: 20px;
  background: #72243e;
}
.ticket-route .arrow-col .arr {
  color: #ed93b1;
  font-size: 15px;
}
.ticket-meta {
  padding: 20px 24px 0;
}
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.meta-cell {
  background: #fdf2f6;
  border: 1px solid #f4c0d1;
  border-radius: 12px;
  padding: 10px 12px;
}
.meta-cell .mlbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #993556;
  margin-bottom: 4px;
}
.meta-cell .mval {
  font-weight: 500;
  color: #4b1528;
}
.meta-cell .mval.big {
  font-size: 1.1rem;
}
.meta-cell .mval.sm {
  font-size: 0.875rem;
}
.paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
  background: #eaf3de;
  color: #27500a;
  border: 1px solid #c0dd97;
}
.paid-badge .pdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b6d11;
}
.tear-line {
  display: flex;
  align-items: center;
}
.tear-notch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fdf2f6;
}
.tear-dash {
  flex: 1;
  border-top: 1.5px dashed #f4c0d1;
}
.qr-section {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.qr-status-box {
  width: 100%;
  border-radius: 16px;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #f4c0d1;
  background: #fff9fb;
}
.qr-spin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #f4c0d1;
  border-top-color: #993556;
  animation: spin 0.7s linear infinite;
}
.qr-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.qr-actions button {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px solid #f4c0d1;
  background: #fbeaf0;
  color: #993556;
  cursor: pointer;
  transition: opacity 0.2s;
}
.qr-actions button:hover {
  opacity: 0.8;
}
.ticket-footer {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #fbeaf0;
  background: #fffafc;
}
.ticket-footer .fnote {
  font-size: 0.75rem;
  color: #d4537e;
}
.ticket-footer .fbadge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 99px;
  color: #72243e;
  background: #fbeaf0;
  border: 1px solid #f4c0d1;
}

/* ── Payment Failed ── */
#page-failed {
  background: #fef2f2;
  padding: 1rem;
}
.failed-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.failed-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.failed-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.failed-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.failed-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.btn-danger {
  padding: 13px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-danger:hover {
  background: #dc2626;
}
.btn-neutral {
  padding: 12px;
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-neutral:hover {
  background: #e5e7eb;
}

/* ── Verify Page ── */
#page-verify {
  background: var(--bg);
}
.verify-inner {
  text-align: center;
}
.verify-spin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #f4c0d1;
  border-top-color: #993556;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}

/* ── Pay Overlay ── */
#pay-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}
#pay-overlay.show {
  display: flex;
}
.pay-overlay-inner {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  max-width: 320px;
  width: 90%;
}
.pay-overlay-inner .pay-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #f4c0d1;
  border-top-color: #993556;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
.pay-overlay-inner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── SDK Error Banner ── */
#sdk-error-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background: #7c3aed;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── FAQ FAB Button ── */
#faq-fab {
  margin-top: 0.2rem;
  bottom: 20px;
  z-index: 1000;
  display: none;
  align-items: center;
  padding: 12px 20px;
  background: #993556;
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(153, 53, 86, 0.4);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
#faq-fab:hover {
  background: #72243e;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(153, 53, 86, 0.5);
}
#faq-fab.visible {
  display: flex;
}

/* ── FAQ Modal ── */
#faq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
#faq-overlay.open {
  display: flex;
}
.faq-modal {
  width: 100%;
  max-width: 860px;
  height: 88vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: faqPopIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes faqPopIn {
  from { transform: scale(0.94) translateY(16px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.faq-header {
  background: linear-gradient(135deg, #993556 0%, #72243e 100%);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.faq-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}
.faq-header-title {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.faq-header-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  margin: 3px 0 0;
}
.faq-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.faq-close-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #993556;
}
.faq-search {
  padding: 14px 20px;
  border-bottom: 1px solid #f4c0d1;
  background: #fff;
  flex-shrink: 0;
}
.faq-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 14px;
  background: #fdf2f6;
  transition: border-color 0.2s;
}
.faq-search-inner:focus-within {
  border-color: #993556;
}
.faq-search-inner i {
  font-size: 14px;
  color: #d4537e;
}
.faq-search-inner input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #1a1a2e;
  width: 100%;
  font-family: "DM Sans", sans-serif;
}
.faq-search-inner input::placeholder {
  color: #d4537e;
  opacity: 0.7;
}
.faq-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 20px;
  background: #fdf2f6;
}
.faq-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
}
.faq-section-label:first-child {
  margin-top: 4px;
}
.faq-section-label span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #993556;
  white-space: nowrap;
}
.faq-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #f4c0d1;
}
.faq-card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 10px;
  border-left: 5px solid #993556;
  box-shadow: 0 2px 8px rgba(153, 53, 86, 0.07);
  overflow: hidden;
}
.faq-q-btn {
  width: 100%;
  border: none;
  background: none;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
  font-family: "DM Sans", sans-serif;
}
.faq-q-btn:hover {
  background: #fff5f7;
}
.faq-q-btn.active {
  background: #fbeaf0;
}
.faq-q-text {
  font-size: 14px;
  font-weight: 600;
  color: #4b1528;
  line-height: 1.5;
}
.faq-q-btn.active .faq-q-text {
  color: #993556;
}
.faq-chevron {
  font-size: 13px;
  color: #d4537e;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-q-btn.active .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding: 0 18px 15px 18px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.75;
  white-space: pre-line;
  border-top: 1px solid #fbeaf0;
  font-family: "DM Sans", sans-serif;
}
.faq-answer.open {
  display: block;
}
.faq-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #d4537e;
}
.faq-no-results i {
  font-size: 40px;
  display: block;
  margin-bottom: 14px;
  opacity: 0.5;
}
.faq-no-results p {
  font-size: 14px;
}
.faq-footer {
  padding: 14px 24px;
  border-top: 1px solid #f4c0d1;
  background: #fffafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.faq-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #993556;
  flex-wrap: wrap;
}
.faq-footer-left span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.faq-footer-left i {
  font-size: 13px;
}
.faq-footer-close {
  padding: 9px 20px;
  background: #993556;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: background 0.2s;
}
.faq-footer-close:hover {
  background: #72243e;
}



#forgot-phone[readonly] {
  background: #f5f5f5;
  cursor: not-allowed;
}

/* Forgot Password */

.forgot-card {
max-width: 420px;
padding: 24px;
}

.forgot-header {
text-align: end;
margin-bottom: 18px;
}

.forgot-header h2 {
margin: 8px 0 6px;
color: #993556;
font-size: 1.4rem;
font-weight: 600;
}

.forgot-subtitle {
color: #6b7280;
font-size: 0.85rem;
margin-bottom: 6px;
}

.back-btn {
border: none;
background: transparent;
color: #993556;
cursor: pointer;
font-weight: 500;
font-size: 0.85rem;


}

.back-btn {
text-decoration: underline;
}

/* Input Styling */

/* Forgot Password Only */

.forgot-page .field-group {
margin-bottom: 14px;
}

.forgot-page .field-group label {
font-size: 0.85rem;
color: #374151;
margin-bottom: 4px;
display: block;
}

.forgot-page .field-group input {
width: 100%;
padding: 10px 12px;
font-size: 0.9rem;
border: 1px solid #d1d5db;
border-radius: 6px;
outline: none;
transition: border 0.2s ease, box-shadow 0.2s ease;
}

.forgot-page .field-group input:focus {
border-color: #993556;
box-shadow: 0 0 0 2px rgba(153, 53, 86, 0.1);
}

.forgot-page .btn-primary {
width: 100%;
padding: 10px;
font-size: 0.9rem;
border-radius: 6px;
}


/* Button */

.btn-primary {
width: 100%;
padding: 10px;
font-size: 0.9rem;
border-radius: 6px;
}

.send-otp-btn{
  width: 8rem  !important;
 
}


/* Step Animation */

#forgot-step-1,
#forgot-step-2,
#forgot-step-3 {
animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.auth-actions {
display: flex;
justify-content: flex-end;
margin-top: 12px;
}

.forgot-password-link {
background: transparent;
border: none;
color: #993556;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
padding: 0;
transition: all 0.2s ease;
}

.forgot-password-link:hover {
color: #7a2a45;
text-decoration: underline;
}

.forgot-password-link:focus {
outline: none;
color: #7a2a45;
}

.forgot-password-link:active {
transform: translateY(1px);
}


/* css for the toggle of gmail and phone */
/* .login-toggle{
    display:flex;
    justify-content:end;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
}

.switch{
    position:relative;
    display:inline-block;
    width:50px;
    height:26px;
}

.switch input{
    display:none;
}

.slider{
    position:absolute;
    inset:0;
    cursor:pointer;
    background:#ccc;
    border-radius:26px;
    transition:.3s;
}

.slider:before{
    content:"";
    position:absolute;
    width:20px;
    height:20px;
    left:3px;
    bottom:3px;
    background:#fff;
    border-radius:50%;
    transition:.3s;
}

.switch input:checked + .slider{
    background:#993556;
}

.switch input:checked + .slider:before{
    transform:translateX(24px);
}

.login-mode{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:12px;
    margin:12px 0 20px;
}

.mode-label{
    font-size:14px;
    font-weight:600;
    color:#555;
} */


.login-mode{
    display:flex;
    justify-content:flex-end;
    margin-top:12px;
    margin-bottom:20px;
}

.login-checkbox{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    color:#555;
    cursor:pointer;
    user-select:none;
}

.login-checkbox input{
    width:18px;
    height:18px;
    cursor:pointer;
    accent-color:#993556;
}