/* And Again Advisory, cost estimator styles (andagain-tools v1.0.0)
   Mounts inside <div data-aaa-estimator></div> on the Webflow page.
   Every class is prefixed aaa-est- so nothing collides with Webflow.
   Type is inherited from the page (TASA Explorer). Design system rules:
   indigo accents, gold only as 1px rules, no radius, no shadows, no
   gradients, labels always visible, 2px indigo focus ring, 44px targets. */

.aaa-est {
  --aaa-est-indigo: #06037A;
  --aaa-est-indigo-hover: #0A06A3;
  --aaa-est-gold: #D2AA24;
  --aaa-est-ink: #15132B;
  --aaa-est-body: #3B394F;
  --aaa-est-slate: #6B6980;
  --aaa-est-hair: #E6E1D2;
  --aaa-est-hair-strong: #D6CFB9;
  --aaa-est-paper: #FAF8F2;
  --aaa-est-white: #FFFFFF;
  --aaa-est-on-indigo: rgba(255, 255, 255, .80);
  --aaa-est-error: #A1261B;
  --aaa-est-ease: cubic-bezier(.2, .7, .2, 1);

  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--aaa-est-body);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
.aaa-est *, .aaa-est *::before, .aaa-est *::after { box-sizing: border-box; }
.aaa-est :where(h2, h3, h4, p, ul, ol, dl, dd, table, caption, figure) { margin: 0; padding: 0; }
.aaa-est :where(ul, ol) { list-style: none; }
.aaa-est :where(button, input, select) { font-family: inherit; font-size: inherit; color: inherit; border-radius: 0; box-shadow: none; }
.aaa-est :where(h2, h3, h4) { color: var(--aaa-est-ink); font-weight: 600; line-height: 1.12; letter-spacing: 0; }
.aaa-est b, .aaa-est strong { color: var(--aaa-est-ink); font-weight: 600; }

.aaa-est :focus { outline: none; }
.aaa-est :focus-visible { outline: 2px solid var(--aaa-est-indigo); outline-offset: 3px; }
.aaa-est-title:focus, .aaa-est-status:focus, .aaa-est-err:focus { outline: none; }

.aaa-est-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- frame ---------------- */
.aaa-est-wizard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 992px) {
  .aaa-est-wizard { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
}
.aaa-est-stage { min-width: 0; }

/* progress rail */
.aaa-est-rail ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--aaa-est-hair); }
@media (min-width: 992px) {
  .aaa-est-rail ol { grid-template-columns: 1fr; border-top: 0; position: sticky; top: 100px; }
}
.aaa-est-rail-i {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px;
  padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--aaa-est-hair);
  color: var(--aaa-est-slate); font-size: 14px; text-align: left; cursor: pointer;
}
.aaa-est-rail-i[disabled] { cursor: default; color: var(--aaa-est-slate); }
.aaa-est-rail-n { font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; min-width: 22px; }
.aaa-est-rail-i.aaa-est-is-on { color: var(--aaa-est-indigo); font-weight: 600; border-bottom-color: var(--aaa-est-indigo); }
.aaa-est-rail-i.aaa-est-is-done { color: var(--aaa-est-ink); }
.aaa-est-rail-i.aaa-est-is-done:hover .aaa-est-rail-l { color: var(--aaa-est-indigo); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 991px) {
  .aaa-est-rail-i { justify-content: center; padding: 8px 0; }
  .aaa-est-rail-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .aaa-est-rail-n { min-width: 0; }
}

/* step head */
.aaa-est-stephead { margin-bottom: 32px; }
.aaa-est-stepno, .aaa-est-eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--aaa-est-slate); margin-bottom: 12px;
}
.aaa-est-title { font-size: clamp(28px, 3vw, 40px); }
.aaa-est-stepsub { margin-top: 12px; font-size: 19px; color: var(--aaa-est-body); max-width: 60ch; }
.aaa-est-stepbody { max-width: 760px; }
.aaa-est-stepbody-wide { max-width: none; }

/* ---------------- fields ---------------- */
.aaa-est-field { margin-bottom: 28px; }
.aaa-est-label, .aaa-est-group-h, .aaa-est-gf label {
  display: block; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--aaa-est-ink);
}
.aaa-est-hint { margin-top: 10px; font-size: 14px; color: var(--aaa-est-slate); max-width: 62ch; }
.aaa-est-err { margin: -8px 0 24px; font-size: 15px; font-weight: 600; color: var(--aaa-est-error); }

.aaa-est-input, .aaa-est-select {
  display: block; width: 100%; max-width: 480px; min-height: 48px; padding: 10px 14px;
  background: var(--aaa-est-white); border: 1px solid var(--aaa-est-hair-strong);
  color: var(--aaa-est-ink); font-size: 17px; line-height: 1.4;
  -webkit-appearance: none; appearance: none;
}
.aaa-est-input-num { max-width: 200px; }
.aaa-est-select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2306037A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.aaa-est-input:hover, .aaa-est-select:hover { border-color: var(--aaa-est-slate); }
.aaa-est-input:focus-visible, .aaa-est-select:focus-visible { border-color: var(--aaa-est-indigo); }
.aaa-est-input.aaa-est-is-bad { border-color: var(--aaa-est-error); }

/* option buttons */
.aaa-est-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.aaa-est-opt {
  min-height: 48px; padding: 11px 16px; text-align: left; cursor: pointer;
  background: var(--aaa-est-white); border: 1px solid var(--aaa-est-hair-strong);
  color: var(--aaa-est-ink); font-size: 15px; font-weight: 500; line-height: 1.35;
}
.aaa-est-opt:hover { border-color: var(--aaa-est-indigo); color: var(--aaa-est-indigo); }
.aaa-est-opt.aaa-est-is-on { background: var(--aaa-est-indigo); border-color: var(--aaa-est-indigo); color: var(--aaa-est-white); }

/* emirate cards */
.aaa-est-emirates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.aaa-est-emirate {
  display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 18px 20px; text-align: left; cursor: pointer;
  background: var(--aaa-est-white); border: 1px solid var(--aaa-est-hair-strong); color: var(--aaa-est-body);
}
.aaa-est-emirate-wide { grid-column: 1 / -1; }
.aaa-est-em-name { font-size: 19px; font-weight: 600; color: var(--aaa-est-ink); line-height: 1.2; }
.aaa-est-em-blurb { font-size: 14px; line-height: 1.5; }
.aaa-est-em-zones { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--aaa-est-indigo); margin-top: 4px; }
.aaa-est-emirate:hover { border-color: var(--aaa-est-indigo); }
.aaa-est-emirate.aaa-est-is-on { background: var(--aaa-est-indigo); border-color: var(--aaa-est-indigo); color: var(--aaa-est-on-indigo); }
.aaa-est-emirate.aaa-est-is-on .aaa-est-em-name { color: var(--aaa-est-white); }
.aaa-est-emirate.aaa-est-is-on .aaa-est-em-zones { color: var(--aaa-est-white); }
.aaa-est-subchoice { margin-top: 28px; }
.aaa-est-confirm { padding: 20px 0 0; border-top: 1px solid var(--aaa-est-gold); }
.aaa-est-confirm h3 { font-size: 22px; margin-bottom: 8px; }

/* stepper */
.aaa-est-step { display: inline-flex; align-items: stretch; border: 1px solid var(--aaa-est-hair-strong); background: var(--aaa-est-white); }
.aaa-est-step button {
  width: 48px; min-height: 48px; background: none; border: 0; cursor: pointer;
  color: var(--aaa-est-indigo); font-size: 22px; line-height: 1;
}
.aaa-est-step button:hover { background: var(--aaa-est-paper); }
.aaa-est-step button[disabled] { color: var(--aaa-est-hair-strong); cursor: default; background: none; }
.aaa-est-step-v {
  display: flex; align-items: center; justify-content: center; min-width: 56px;
  border-left: 1px solid var(--aaa-est-hair); border-right: 1px solid var(--aaa-est-hair);
  font-size: 19px; font-weight: 600; color: var(--aaa-est-ink); font-variant-numeric: tabular-nums;
}

/* check boxes */
.aaa-est-check { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 16px; color: var(--aaa-est-ink); font-weight: 500; }
.aaa-est-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--aaa-est-indigo); cursor: pointer; flex: none; }

/* ---------------- buttons ---------------- */
.aaa-est-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  background: var(--aaa-est-white); border: 1px solid var(--aaa-est-indigo); color: var(--aaa-est-indigo);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.aaa-est-btn:hover { background: var(--aaa-est-paper); color: var(--aaa-est-indigo-hover); border-color: var(--aaa-est-indigo-hover); }
.aaa-est-btn-primary { background: var(--aaa-est-indigo); color: var(--aaa-est-white); }
.aaa-est-btn-primary:hover { background: var(--aaa-est-indigo-hover); color: var(--aaa-est-white); }
.aaa-est-btn[disabled] { opacity: .55; cursor: progress; }
.aaa-est-btn[hidden] { display: none; }
.aaa-est-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--aaa-est-indigo); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}
.aaa-est-link:hover { color: var(--aaa-est-indigo-hover); }
.aaa-est-link[disabled] { opacity: .55; cursor: progress; }

.aaa-est-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--aaa-est-hair); }
.aaa-est-nav .aaa-est-next { margin-left: auto; min-width: 160px; }
.aaa-est-foot { margin-top: 32px; font-size: 13px; line-height: 1.6; color: var(--aaa-est-slate); max-width: 80ch; }

/* ---------------- results ---------------- */
.aaa-est-issued {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px;
  padding: 0 0 20px; border-bottom: 1px solid var(--aaa-est-hair); margin-bottom: 40px;
}
.aaa-est-issued dt, .aaa-est-kpi-k, .aaa-est-facts dt, .aaa-est-split dt, .aaa-est-3y-k, .aaa-est-flag-k {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--aaa-est-slate); font-weight: 500; line-height: 1.4;
}
.aaa-est-issued dd { margin-top: 4px; font-size: 15px; color: var(--aaa-est-ink); font-weight: 600; overflow-wrap: anywhere; }

.aaa-est-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 48px; }
.aaa-est-kpi { min-width: 0; }
.aaa-est-kpi-v { margin-top: 6px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; color: var(--aaa-est-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.aaa-est-kpi-s { margin-top: 6px; font-size: 13px; color: var(--aaa-est-slate); }

.aaa-est-zone { padding: 32px 0 36px; border-top: 1px solid var(--aaa-est-hair-strong); }
.aaa-est-issued + .aaa-est-zone { border-top: 0; padding-top: 0; }
.aaa-est-zone + .aaa-est-figurenote { border-top: 1px solid var(--aaa-est-hair-strong); }
.aaa-est-z-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.aaa-est-z-id { min-width: 0; flex: 1 1 240px; }
.aaa-est-z-id h3 { font-size: clamp(22px, 2.2vw, 28px); }
.aaa-est-z-where { margin-top: 6px; font-size: 14px; color: var(--aaa-est-slate); }
.aaa-est-z-total { text-align: right; flex: 0 1 auto; }
.aaa-est-z-total-v { font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; color: var(--aaa-est-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.aaa-est-z-total-txt { font-size: clamp(24px, 2.4vw, 32px); }
.aaa-est-z-total-k { margin-top: 8px; font-size: 13px; color: var(--aaa-est-slate); }
.aaa-est-promise { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--aaa-est-indigo); }
.aaa-est-tag { margin-top: 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--aaa-est-indigo); font-weight: 600; }
.aaa-est-z-head .aaa-est-tag { margin-top: 6px; flex-basis: 100%; }
.aaa-est-z-pos { margin-top: 12px; max-width: 66ch; }
.aaa-est-out-reason { margin-top: 12px; max-width: 66ch; color: var(--aaa-est-body); }
.aaa-est-zone-out .aaa-est-z-id h3 { color: var(--aaa-est-slate); }

.aaa-est-split, .aaa-est-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin-top: 24px; }
.aaa-est-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding-bottom: 16px; border-bottom: 1px solid var(--aaa-est-hair); }
.aaa-est-split dd, .aaa-est-facts dd { margin-top: 4px; font-size: 15px; color: var(--aaa-est-ink); font-weight: 600; }
.aaa-est-facts dd { font-weight: 500; }

/* itemisation */
.aaa-est-itemised { margin-top: 32px; }
.aaa-est-sec { margin-top: 24px; }
.aaa-est-sec-h { font-size: 15px; font-weight: 600; color: var(--aaa-est-indigo); padding-bottom: 8px; border-bottom: 1px solid var(--aaa-est-indigo); }
.aaa-est-sec-sub { margin-top: 8px; font-size: 14px; color: var(--aaa-est-slate); }
.aaa-est-table { width: 100%; border-collapse: collapse; margin-top: 4px; table-layout: auto; }
.aaa-est-table td { padding: 12px 0; border-bottom: 1px solid var(--aaa-est-hair); vertical-align: top; }
.aaa-est-table td.aaa-est-a { padding-left: 16px; text-align: right; white-space: nowrap; font-weight: 600; color: var(--aaa-est-ink); font-variant-numeric: tabular-nums; }
.aaa-est-l-main { display: block; color: var(--aaa-est-ink); font-size: 15px; }
.aaa-est-l-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--aaa-est-slate); line-height: 1.5; }
.aaa-est-qty { display: block; margin-top: 2px; font-size: 13px; color: var(--aaa-est-body); font-variant-numeric: tabular-nums; }
.aaa-est-tot td { font-weight: 600; color: var(--aaa-est-indigo); border-bottom: 1px solid var(--aaa-est-indigo); }
.aaa-est-tot td.aaa-est-a { color: var(--aaa-est-indigo); }
.aaa-est-fee { margin-top: 12px; font-size: 17px; color: var(--aaa-est-ink); font-weight: 600; }
.aaa-est-fee span { color: var(--aaa-est-slate); font-weight: 500; }
.aaa-est-grand {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 24px; padding: 16px 0;
  border-top: 1px solid var(--aaa-est-gold); border-bottom: 1px solid var(--aaa-est-gold); color: var(--aaa-est-ink);
}
.aaa-est-grand-v { font-size: 22px; font-variant-numeric: tabular-nums; }
.aaa-est-grand .aaa-est-promise { margin: 0 0 0 auto; }
.aaa-est-3y { margin-top: 24px; }
.aaa-est-3y-v { margin-top: 4px; font-size: 22px; font-weight: 600; color: var(--aaa-est-ink); font-variant-numeric: tabular-nums; }
.aaa-est-3y-none { color: var(--aaa-est-slate); font-weight: 500; }
.aaa-est-3y-note { margin-top: 6px; font-size: 14px; color: var(--aaa-est-body); max-width: 70ch; }
.aaa-est-src { margin-top: 16px; font-size: 13px; color: var(--aaa-est-slate); }

/* flags */
.aaa-est-flags { margin-top: 24px; display: grid; gap: 12px; }
.aaa-est-flag { padding: 2px 0 2px 16px; font-size: 15px; line-height: 1.55; border-left: 1px solid var(--aaa-est-hair-strong); max-width: 78ch; }
.aaa-est-flag-k { display: block; margin-bottom: 2px; }
.aaa-est-flag-warn { border-left: 2px solid var(--aaa-est-indigo); padding-left: 15px; }
.aaa-est-flag-warn .aaa-est-flag-k { color: var(--aaa-est-indigo); }
.aaa-est-flag-good { border-left-color: var(--aaa-est-gold); }

/* mainland */
.aaa-est-blocks { margin-top: 24px; display: grid; gap: 0; counter-reset: none; }
.aaa-est-block { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--aaa-est-hair); }
.aaa-est-block-l { font-size: 15px; font-weight: 600; color: var(--aaa-est-indigo); }
.aaa-est-block h4 { font-size: 16px; }
.aaa-est-block p { margin-top: 4px; font-size: 14px; }
.aaa-est-pin { margin-top: 12px; display: grid; gap: 8px; }
.aaa-est-pin li { padding-left: 16px; border-left: 1px solid var(--aaa-est-hair-strong); font-size: 15px; }

.aaa-est-figurenote { padding: 20px 0 0; margin: 0 0 40px; font-size: 14px; color: var(--aaa-est-slate); }

/* gate */
.aaa-est-gate, .aaa-est-status { padding: 32px; background: var(--aaa-est-paper); margin-bottom: 40px; }
.aaa-est-gate h3, .aaa-est-status-h { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.aaa-est-gate-sub { max-width: 66ch; margin-bottom: 24px; }
.aaa-est-gate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.aaa-est-gf .aaa-est-input { max-width: none; }
.aaa-est-gate .aaa-est-err { margin: -8px 0 20px; }
.aaa-est-gate-btn { min-width: 260px; }
.aaa-est-gate-consent { margin-top: 16px; font-size: 13px; color: var(--aaa-est-slate); }
.aaa-est-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.aaa-est-status p { max-width: 70ch; }
.aaa-est-status-err { background: var(--aaa-est-white); border: 1px solid var(--aaa-est-error); }
.aaa-est-status-err .aaa-est-status-h { color: var(--aaa-est-error); }
.aaa-est-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.aaa-est-print-hint { margin-top: 12px; font-size: 14px; color: var(--aaa-est-body); }
.aaa-est-retry-wrap { margin-top: 12px; }

/* after unlock */
.aaa-est-panel { padding: 28px 0; border-top: 1px solid var(--aaa-est-hair-strong); }
.aaa-est-panel h3 { font-size: 22px; margin-bottom: 12px; }
.aaa-est-panel ul { display: grid; gap: 8px; }
.aaa-est-panel ul li { padding-left: 16px; border-left: 1px solid var(--aaa-est-hair-strong); }
.aaa-est-panel-warn h3 { color: var(--aaa-est-indigo); }
.aaa-est-panel-foot { margin-top: 12px; font-size: 14px; color: var(--aaa-est-slate); max-width: 78ch; }
.aaa-est-universal li b { display: block; margin-bottom: 2px; }
.aaa-est-universal li span { display: block; font-size: 15px; }
.aaa-est-u-warn { border-left: 2px solid var(--aaa-est-indigo) !important; padding-left: 15px !important; }
.aaa-est-restart-wrap { margin-top: 24px; }

/* ---------------- small screens ---------------- */
@media (max-width: 767px) {
  .aaa-est { font-size: 16px; }
  .aaa-est-stephead { margin-bottom: 24px; }
  .aaa-est-stepsub { font-size: 17px; }
  .aaa-est-issued, .aaa-est-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aaa-est-z-total { text-align: left; flex-basis: 100%; }
  .aaa-est-split, .aaa-est-facts { grid-template-columns: minmax(0, 1fr); }
  .aaa-est-gate, .aaa-est-status { padding: 24px 16px; }
  .aaa-est-gate-grid { grid-template-columns: minmax(0, 1fr); }
  .aaa-est-gate-btn { width: 100%; min-width: 0; }
  .aaa-est-actions .aaa-est-btn { flex: 1 1 100%; }
  .aaa-est-nav .aaa-est-next { min-width: 0; flex: 1 1 auto; }
  .aaa-est-grand .aaa-est-promise { margin-left: 0; flex-basis: 100%; }
}

/* ---------------- motion: only state changes, only when welcome ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .aaa-est-opt, .aaa-est-emirate, .aaa-est-btn, .aaa-est-step button, .aaa-est-rail-i, .aaa-est-input, .aaa-est-select {
    transition: background-color .2s var(--aaa-est-ease), border-color .2s var(--aaa-est-ease), color .2s var(--aaa-est-ease);
  }
}

/* ---------------- print ---------------- */
@media print {
  .aaa-est-rail, .aaa-est-nav, .aaa-est-actions, .aaa-est-restart-wrap, .aaa-est-gate, .aaa-est-print-hint, .aaa-est-retry-wrap { display: none !important; }
  .aaa-est-wizard { display: block; }
  .aaa-est-zone { break-inside: avoid; }
}
