/* Eva Go styles: Eva Travel magenta (Pantone 2415 C) and charcoal */
:root {
  --magenta: #A6509A;
  --magenta-dark: #8A2F7E;
  --magenta-soft: #F2E3EF;
  --pink-on-dark: #D77ACB;
  --ink: #2B2B2B;
  --ink-2: #4A4A4A;
  --muted: #5F5F5F;
  --line: #E6DCE3;
  --bg: #FBF8FA;
  --white: #FFFFFF;
  --ok: #1F6B45;
  --ok-soft: #E2F2E9;
  --warn: #8A5A00;
  --warn-soft: #FBF0D9;
  --bad: #A12A2A;
  --bad-soft: #F8E1E1;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--magenta-dark); }
a:hover { color: #6E2464; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .18em; line-height: 1; white-space: nowrap; }
.logo-eva { font-weight: 200; letter-spacing: .06em; color: var(--ink); }
.logo-go { font-weight: 900; font-style: italic; letter-spacing: -.03em; color: var(--magenta); }
.logo-arrow { width: .62em; height: .54em; stroke: var(--magenta); }
.logo-sm { font-size: 26px; }
.logo-lg { font-size: clamp(56px, 16vw, 96px); }
.topbar .logo-eva { color: #fff; }
.topbar .logo-go { color: var(--pink-on-dark); }
.topbar .logo-arrow { stroke: var(--pink-on-dark); }

/* Top bar */
.topbar { background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; position: sticky; top: 0; z-index: 10; }
.brand { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.topnav { display: flex; flex-wrap: wrap; gap: 4px; }
.topnav a { color: #F1E9EF; text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 10px; border-radius: 10px; }
.topnav a:hover { background: #3C3C3C; color: #fff; }
.topnav .nav-cta { background: var(--magenta); color: #fff; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.area-client .wrap { max-width: 760px; }

/* Messages */
.flash { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--bad-soft); color: var(--bad); }
.note { background: var(--magenta-soft); padding: 14px 16px; border-radius: 12px; margin: 0 0 16px; }

/* Hero */
.hero { text-align: center; padding: 28px 8px 8px; display: flex; flex-direction: column; align-items: center; }
.swoosh { width: min(360px, 80%); height: 22px; fill: var(--magenta); margin-top: 6px; }
.tagline { margin: 12px 0 0; letter-spacing: .32em; text-transform: uppercase; font-size: 13px; color: var(--ink-2); }
.hero-intro { max-width: 540px; color: var(--ink-2); font-size: 18px; margin: 18px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

.block { margin-top: 32px; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 28px 0 12px; }
.kicker-sm { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta-dark); font-weight: 700; margin: 0 0 8px; }
.page-title { font-weight: 300; font-size: 30px; margin: 8px 0 6px; display: flex; align-items: center; gap: 12px; }
.lead { color: var(--ink-2); font-size: 17px; margin: 0 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; display: block; }
.req { color: var(--magenta-dark); }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; min-height: 44px; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.title-row h3 { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--magenta); color: #fff; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--magenta-dark); color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid #D4C5CF; }
.btn-ghost:hover { background: var(--magenta-soft); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; color: var(--bad); font: inherit; cursor: pointer; padding: 8px 4px; min-height: 44px; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.actions form { margin: 0; }

/* Section cards */
.sections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.section-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; min-height: 84px; }
.section-card:hover { border-color: var(--magenta); color: var(--ink); }
.section-card > svg { color: var(--magenta); flex-shrink: 0; }
.section-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--magenta-soft); color: var(--magenta-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-text { display: flex; flex-direction: column; flex-grow: 1; }
.section-text strong { font-size: 17px; }
.section-text span { color: var(--ink-2); font-size: 14px; }
.inline-icon { color: var(--magenta-dark); vertical-align: middle; }

/* Specials */
.specials { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.specials-compact { margin-bottom: 18px; }
.special { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.special img, .special-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.special-noimg { background: var(--magenta); color: #fff; display: flex; align-items: center; justify-content: center; }
.special-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.special-body h3 { margin: 0; font-size: 18px; }
.special-body p { margin: 0; color: var(--ink-2); }
.special-body .btn { margin-top: auto; align-self: flex-start; }
.special-body .price { color: var(--magenta-dark); font-weight: 700; }

/* Cards and forms */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card h3 { margin-top: 0; }
.empty { text-align: center; }
.narrow { max-width: 440px; }
.form .field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #CDBFC9; border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(166, 80, 154, .45); outline-offset: 2px; }
.field-error { color: var(--bad); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; min-height: 44px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--magenta); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid #CDBFC9; border-radius: 12px; background: var(--white); font-weight: 600; font-size: 15px; cursor: pointer; }
.chip input:checked + span { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid rgba(166, 80, 154, .45); outline-offset: 2px; }
.airline-guide { background: var(--magenta-soft); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.airlines { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.airlines span { background: var(--white); border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { position: relative; margin: 0; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick span { width: 44px; height: 44px; border: 1px solid #CDBFC9; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.icon-pick input:checked + span { background: var(--magenta); color: #fff; border-color: var(--magenta); }
.preview { display: block; width: 100%; border-radius: 10px; margin: 10px 0 6px; }

/* Lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--ink); text-decoration: none; }
a.list-item:hover { border-color: var(--magenta); color: var(--ink); }
.list-main { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.row-actions { display: flex; align-items: center; gap: 8px; }
.row-actions form { margin: 0; }
.plain { list-style: none; padding: 0; margin: 0 0 14px; }
.plain li { padding: 4px 0; }

/* Status badges */
.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 20px; padding: 4px 10px; white-space: nowrap; }
.badge-new { background: var(--magenta); color: #fff; }
.badge-quoting { background: var(--warn-soft); color: var(--warn); }
.badge-quote_sent, .badge-q-sent { background: var(--magenta-soft); color: #6E2464; }
.badge-accepted, .badge-q-accepted { background: var(--ok-soft); color: var(--ok); }
.badge-booked { background: var(--ok); color: #fff; }
.badge-declined, .badge-cancelled, .badge-q-declined { background: #ECECEC; color: #4A4A4A; }

/* Quotes */
.qtable { width: 100%; border-collapse: collapse; margin: 12px 0 6px; }
.qtable td { padding: 8px 0; border-top: 1px solid #F0E7ED; vertical-align: top; }
.qtable .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.qtable .total td { border-top: 2px solid var(--ink); font-weight: 700; font-size: 17px; }
.quote-declined { opacity: .7; }
.profit { color: var(--magenta-dark); margin: 6px 0 10px; }
.qb-head, .qb-line { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) 44px; gap: 8px; align-items: center; }
.qb-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.qb-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.btn-x { width: 44px; height: 44px; border: 0; border-radius: 12px; background: #F3EEF1; font-size: 22px; cursor: pointer; color: var(--ink); }
.qb-totals { display: flex; flex-wrap: wrap; gap: 8px 20px; background: var(--magenta-soft); border-radius: 12px; padding: 12px 14px; margin: 6px 0 14px; }
@media (max-width: 640px) {
  .qb-head { display: none; }
  .qb-line { grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; padding-bottom: 8px; border-bottom: 1px solid #F0E7ED; }
  .qb-line input:first-child { grid-column: 1 / -1; }
}

/* Messages thread */
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; }
.msg p { margin: 0 0 4px; }
.msg-me { align-self: flex-end; background: var(--magenta-soft); }
.msg-them { align-self: flex-start; background: #F1F1F1; }
.msg-form { display: flex; flex-direction: column; gap: 8px; }
.msg-form .btn { align-self: flex-end; }

/* Details list */
.details { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--muted); font-size: 14px; }
.details dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .details { grid-template-columns: 1fr; gap: 2px; } .details dd { margin-bottom: 10px; } }

/* Admin */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 10px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid #F3ECF1; vertical-align: top; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 300px; min-width: 0; }
.col-side .kicker:first-child { margin-top: 0; }

.prose p { margin: 0 0 12px; }

/* Footer */
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }

.quote-builder #add-line { margin-bottom: 18px; }

/* Setup page */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0; border-top: 1px solid #F0E7ED; }
.checks li:first-child { border-top: 0; }
.checks .ok strong { color: var(--ok); }
.checks .bad strong, .checks .bad .small { color: var(--bad); }
