/* ============================================================
   Guardio Support — Cancellation & Refund
   Premium theme: navy + emerald, inspired by guard.io
   ============================================================ */

:root {
  --navy-950: #071427;
  --navy-900: #0b1f3a;
  --navy-800: #10294d;
  --navy-700: #1a3765;
  --navy-100: #eaf1fb;

  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-50: #ecfdf5;

  --ink: #0b1f3a;
  --ink-2: #334966;
  --ink-3: #6b7f99;

  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e3e9f2;
  --border-strong: #cfd8e6;

  --danger: #dc2626;
  --danger-50: #fef2f2;

  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(11, 31, 58, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(11, 31, 58, 0.35);
  --shadow-emerald: 0 12px 30px -10px rgba(16, 185, 129, 0.5);

  --gradient-hero: radial-gradient(1200px 500px at 15% 10%, #143562 0%, transparent 60%),
    radial-gradient(1000px 500px at 90% 20%, #0f7a5a 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 700; margin: 0; color: var(--ink); }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ==================== TOPBAR ==================== */
.topbar {
  background: var(--navy-950);
  color: #b7c6de;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px;
}
.topbar-right { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 3px rgba(52,211,153,.2);
}

/* ==================== NAV ==================== */
.nav {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #fff;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400));
  color: #fff; box-shadow: var(--shadow-emerald);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark.small { width: 28px; height: 28px; border-radius: 7px; }
.brand-mark.small svg { width: 16px; height: 16px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: #9ec4f5; margin-top: 4px; }
.nav-links { display: inline-flex; gap: 28px; align-items: center; font-size: 14px; color: #d1dbeb; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff !important;
  padding: 8px 14px; border-radius: 8px;
  transition: background .2s;
}
.nav-cta:hover { background: rgba(255,255,255,.16); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #fff;
  padding: 56px 0 90px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 -1px 0; height: 60px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.crumbs {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 13px; color: #a9c2e6; margin-bottom: 20px;
}
.crumbs a:hover { color: #fff; }

.hero-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(52,211,153,.14);
  border: 1px solid rgba(52,211,153,.35);
  color: #a7f3d0;
  font-size: 12.5px; font-weight: 500;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-400); box-shadow: 0 0 10px var(--emerald-400); }

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05; color: #fff;
  margin: 18px 0 14px;
}
.lede { color: #cfe0f5; font-size: 17px; max-width: 560px; }
.lede strong { color: #fff; }

.hero-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.hero-list li { display: flex; align-items: center; gap: 10px; color: #dbe8f8; font-size: 14.5px; }
.check { width: 20px; height: 20px; color: var(--emerald-400); flex: none; }

/* Hero card (agent) */
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  padding: 22px; border-radius: 18px;
  color: #eaf1fb;
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #a7f3d0; }
.badge-live span { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-400); box-shadow: 0 0 8px var(--emerald-400); }
.hero-card-sub { font-size: 12px; color: #a9c2e6; }
.agent { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.agent-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400));
  color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.agent-name { font-weight: 600; color: #fff; }
.agent-role { font-size: 12px; color: #a9c2e6; }
.hero-quote {
  margin: 14px 2px;
  font-size: 14px; color: #cbd8ea; font-style: italic;
  border-left: 3px solid var(--emerald-400);
  padding: 6px 12px;
}
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 8px; }
.hero-stats > div { padding: 12px 8px; border-radius: 12px; background: rgba(255,255,255,.05); text-align: center; }
.stat-num { font-weight: 700; color: #fff; font-size: 18px; }
.stat-lbl { font-size: 11px; color: #a9c2e6; margin-top: 2px; }

/* ==================== MAIN ==================== */
.main { position: relative; margin-top: -60px; padding-bottom: 80px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form { padding: 32px; }
@media (min-width: 720px) { .form { padding: 40px 44px; } }

.form-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 26px;
}
.form-head h2 { font-size: 24px; }
.form-head p { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.secure-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: 8px 12px; border-radius: 999px; border: 1px solid #a7f3d0;
  white-space: nowrap;
}
.secure-badge svg { width: 14px; height: 14px; }

.section + .divider,
.section-head { }

.section-head { display: flex; gap: 14px; margin-bottom: 20px; }
.section-head h3 { font-size: 17px; }
.section-head p { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.step {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}

.divider { height: 1px; background: var(--border); margin: 30px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.col-2 { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-2); font-weight: 600;
}
.req { color: var(--danger); }
.opt { color: var(--ink-3); text-transform: none; letter-spacing: 0; font-weight: 400; }

.field input,
.field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%236b7f99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input::placeholder { color: #94a3b8; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
  background: #fff;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220,38,38,.12);
}

.input-prefix { position: relative; }
.input-prefix > span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-weight: 600;
}
.input-prefix input { padding-left: 28px; }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px; padding: 14px 16px;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 12px; font-size: 13.5px; color: var(--ink-2);
}
.consent input {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--emerald-500);
  flex: none;
}

.form-error {
  margin-top: 22px;
  background: var(--danger-50); color: var(--danger);
  border: 1px solid #fecaca; padding: 12px 14px;
  border-radius: 10px; font-size: 14px;
}

.form-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 32px; flex-wrap: wrap;
}
.foot-note { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; }
.foot-note svg { width: 14px; height: 14px; }

.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 600; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500));
  box-shadow: var(--shadow-emerald);
  cursor: pointer;
  transition: transform .1s, filter .2s, box-shadow .2s;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-arrow { width: 16px; height: 16px; transition: transform .2s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-spinner { width: 18px; height: 18px; display: none; animation: spin 1s linear infinite; }
.btn-primary.is-loading .btn-label,
.btn-primary.is-loading .btn-arrow { display: none; }
.btn-primary.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px;
  background: #fff; border: 1.5px solid var(--border-strong);
  color: var(--ink); font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background .15s;
}
.btn-secondary:hover { background: #f1f5f9; }

/* ==================== TRUST ==================== */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 28px;
}
@media (max-width: 720px) { .trust { grid-template-columns: 1fr; } }
.trust-item {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.trust-ico {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: var(--emerald-50); color: var(--emerald-600);
  display: grid; place-items: center; font-size: 18px;
}
.trust-t { font-weight: 600; font-size: 14.5px; }
.trust-s { font-size: 12.5px; color: var(--ink-3); }

/* ==================== FAQ ==================== */
.faq { margin-top: 56px; }
.faq h2 { font-size: 22px; margin-bottom: 16px; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--emerald-600); font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }

/* ==================== FOOTER ==================== */
.footer {
  background: var(--navy-950); color: #a9c2e6;
  padding: 28px 0; font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-links { display: inline-flex; gap: 22px; }
.footer-links a:hover { color: #fff; }

/* ==================== SUCCESS ==================== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(7,20,39,.55);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px; z-index: 50;
  animation: fadeIn .25s ease-out;
}
.overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.success-card {
  background: #fff; max-width: 480px; width: 100%;
  border-radius: 22px; padding: 36px 32px;
  text-align: center; box-shadow: var(--shadow-lg);
  animation: pop .35s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-ico {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400));
  color: #fff; margin: 0 auto 20px;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(16,185,129,.55);
}
.success-ico svg { width: 34px; height: 34px; }
.success-card h2 { font-size: 24px; margin-bottom: 10px; }
.success-card p { color: var(--ink-2); font-size: 14.5px; }
.ticket {
  margin: 22px 0 18px;
  background: #f1f5f9; border: 1px dashed var(--border-strong);
  border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; align-items: center;
}
.ticket span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.ticket strong { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 17px; color: var(--navy-900); margin-top: 4px; }
.success-note { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }

/* ==================== READONLY FIELD ==================== */
.field input[readonly] {
  background: #f1f5f9;
  color: var(--ink-2);
  cursor: not-allowed;
}
.field input[readonly]:focus {
  border-color: var(--border-strong);
  box-shadow: none;
}

/* ==================== CONFIRMATION PAGE ==================== */
body.locked { overflow-x: hidden; }
.confirm-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(16,185,129,.08), transparent 60%),
    radial-gradient(900px 400px at 90% 10%, rgba(20,53,98,.08), transparent 60%),
    var(--bg);
  padding: 48px 0 80px;
}
.confirm-page[hidden] { display: none; }
.confirm-wrap { max-width: 780px; margin: 0 auto; padding: 0 20px; }

.confirm-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}
@media (max-width: 640px) {
  .confirm-card { padding: 28px 20px; border-radius: 18px; }
}

.confirm-header { text-align: center; margin-bottom: 28px; }
.confirm-header h1 {
  font-size: clamp(22px, 3.4vw, 30px);
  margin: 18px 0 10px;
  color: var(--ink);
}
.confirm-sub {
  color: var(--ink-2); font-size: 15px; max-width: 560px;
  margin: 0 auto;
}

.confirm-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 28px 0 8px;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}
@media (max-width: 640px) {
  .confirm-meta { grid-template-columns: 1fr; }
}
.confirm-meta > div { display: flex; flex-direction: column; gap: 4px; }
.mlbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); font-weight: 600;
}
.confirm-meta strong {
  font-size: 15px; color: var(--ink);
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  word-break: break-all;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--emerald-50); color: var(--emerald-600);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid #a7f3d0;
  font-family: inherit !important;
  font-size: 13px !important;
  width: fit-content;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(16,185,129,.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Timeline */
.timeline {
  margin: 28px 0;
  padding: 22px 22px 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  position: relative;
}
.tl-item {
  display: grid; grid-template-columns: 34px 1fr;
  gap: 14px; padding-bottom: 22px;
  position: relative;
}
.tl-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px; top: 30px; bottom: -2px;
  width: 2px; background: var(--border);
}
.tl-item.done:not(:last-child)::before { background: var(--emerald-400); }
.tl-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border-strong);
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 700;
  position: relative; z-index: 1;
}
.tl-item.done .tl-dot {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-400));
  border-color: transparent;
}
.tl-item.current .tl-dot {
  background: #fff; border-color: var(--emerald-500);
}
.mini-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--emerald-500);
  animation: pulse 1.6s infinite;
}
.tl-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.tl-sub   { color: var(--ink-3); font-size: 13.5px; margin-top: 2px; }
.tl-item:not(.done):not(.current) .tl-title { color: var(--ink-3); }

/* Notice */
.confirm-notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fffaeb; border: 1px solid #fde68a;
  color: #78350f;
  padding: 14px 16px; border-radius: 12px;
  font-size: 14px; line-height: 1.55;
}
.cn-ico {
  width: 32px; height: 32px; flex: none; border-radius: 8px;
  background: #fef3c7; color: #b45309;
  display: grid; place-items: center;
}
.cn-ico svg { width: 18px; height: 18px; }
.confirm-notice strong { color: #78350f; display: block; margin-bottom: 2px; }

.confirm-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--ink-3); font-size: 13px;
}
.cf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; }
.cf-secure {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--emerald-600); font-weight: 600;
}
.cf-secure svg { width: 14px; height: 14px; }
