:root {
  color-scheme: light;
  --ink: #221b1a;
  --muted: #504d70;
  --line: rgba(5, 0, 51, 0.18);
  --panel: #f4f2fd;
  --surface: #ffffff;
  --accent: #050033;
  --accent-dark: #050033;
  --teal: #27666e;
  --warning: #f2d166;
  --danger: #ba1f1a;
  --ok: #27666e;
  --offer: #d4024d;
  --red-hot-rooms: #a51e19;
  --info-dark: #38326c;
  --header-height: 72px;
  font-family: "Montserrat", Arial, sans-serif;
}

/* Confirmation page */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.confirmation-workspace { margin-top: 24px; }
.confirmation-workspace :focus-visible { outline: 3px solid rgba(39, 102, 110, 0.5); outline-offset: 2px; }
.success-mark { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 22px; border: 0; background: #fff; color: var(--teal); }
.success-mark svg { width: 32px; height: 32px; fill: currentColor; }
.hero-copy { padding: 40px; }
.hero-copy .eyebrow { margin: 0 0 6px; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hero-copy h1 { max-width: 520px; margin: 0; font-size: 36px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.confirmation-id { display: grid; justify-items: start; gap: 8px; margin-top: 24px; }
.confirmation-id-label { color: rgba(255,255,255,.76); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.offer-id-chip { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 0; box-shadow: inset 0 -3px 0 var(--offer); background: #fff; color: var(--accent); cursor: pointer; font: 700 16px/1.4 "Montserrat", Arial, sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.offer-id-chip:hover { background: var(--panel); color: var(--accent); }
.offer-id-chip svg { width: 18px; height: 18px; flex: none; }
.offer-id-chip .id-text { direction: ltr; unicode-bidi: isolate; user-select: all; }
.copy-status { min-height: 18px; color: #fff; font-size: 13px; font-weight: 500; text-align: start; }
.hero-visual::after { background: linear-gradient(90deg, rgba(5,0,51,.6), rgba(5,0,51,.06) 38%, transparent); }
html[dir="rtl"] .hero-visual::after { background: linear-gradient(270deg, rgba(5,0,51,.6), rgba(5,0,51,.06) 38%, transparent); }
.next-steps { margin: 0; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.next-steps h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; }
.form-progress { height: 4px; margin: 18px 0 8px; background: var(--panel); }
.form-progress span { display: block; width: 34%; height: 100%; background: var(--teal); }
.progress-note { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.status-tracker { display: block; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.status-tracker li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 16px 12px; color: var(--muted); text-align: start; }
.status-tracker li.current { background: #ebf0f7; }
.status-tracker li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 27px; top: 48px; bottom: -16px; width: 2px; height: auto; background: var(--line); }
.status-tracker li.complete:not(:last-child)::after { background: var(--teal); }
.status-tracker .node { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; font-weight: 700; }
.status-tracker .node svg { width: 18px; height: 18px; fill: currentColor; }
.status-tracker .complete .node { border-color: var(--teal); box-shadow: none; background: var(--teal); color: #fff; }
.status-tracker .current .node { border-color: var(--accent); color: var(--accent); }
.step-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.step-title strong { color: var(--muted); font-size: 16px; font-weight: 700; }
.complete .step-title strong { color: var(--teal); }
.current .step-title strong { color: var(--accent); }
.step-meta { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.current .step-meta { color: var(--offer); text-transform: uppercase; letter-spacing: .1em; }
.status-tracker p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.confirmation-surface { padding: 28px; }
.confirmation-surface .form-header { display: block; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.confirmation-surface .form-header .eyebrow { margin: 0 0 6px; color: var(--teal); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.confirmation-surface .form-header h2 { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.3; }
.confirmation-surface .form-section { padding: 26px 0 12px; border-bottom: 1px solid var(--line); }
.confirmation-surface .form-section > h3 { margin: 0 0 18px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.confirmation-offer { display: flex; align-items: stretch; gap: 20px; }
.confirmation-offer-main { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.confirmation-offer-main h4 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.confirmation-offer-main p { margin: 0; font-size: 16px; font-weight: 500; }
.confirmation-offer-main .muted { color: var(--muted); font-size: 14px; font-weight: 400; }
.facts { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; }
.fact { min-width: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.fact.wide { grid-column: 1 / -1; }
.fact dt { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fact dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 500; }
.fact dd .k { margin-inline-end: 8px; color: var(--muted); font-weight: 400; }
.fact dd a { color: var(--accent); text-underline-offset: 3px; }
.fact-line { display: block; }
.confirmation-notice { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-top: 14px; padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); }
.confirmation-notice svg { width: 22px; height: 22px; margin-top: 1px; fill: var(--info-dark); }
.confirmation-notice p { margin: 0; font-size: 14px; }
.confirmation-notice strong { color: var(--info-dark); font-weight: 700; }
.confirmation-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 14px 20px; padding-top: 28px; }
.confirmation-actions .button-link { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 22px; border-radius: 0; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.confirmation-actions .button-link:hover { background: var(--teal); }
.confirmation-actions .button-link svg { width: 18px; height: 18px; fill: currentColor; }
html[dir="rtl"] .confirmation-actions .button-link svg { transform: scaleX(-1); }
.confirmation-actions .helper { max-width: 44ch; margin: 0; color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .success-mark::after { content: ""; position: absolute; inset: 0; border: 2px solid #fff; pointer-events: none; animation: confirmation-ring 1.5s ease-out .25s 1 both; }
  .status-tracker .current .node { animation: confirmation-pulse 1.8s ease-out .6s 3; }
  @keyframes confirmation-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(2); opacity: 0; } }
  @keyframes confirmation-pulse { from { box-shadow: 0 0 0 0 rgba(5,0,51,.28); } to { box-shadow: 0 0 0 12px rgba(5,0,51,0); } }
}
@media (max-width: 900px) {
  .hero-copy { padding: 28px; }
  .hero-copy h1 { font-size: 32px; }
  .hero-visual { min-height: 200px; }
  .confirmation-workspace { grid-template-columns: 1fr; }
  .next-steps { position: static; }
  .confirmation-surface { padding: 20px; }
  .confirmation-surface .form-header h2 { font-size: 24px; }
  .confirmation-surface .form-section > h3 { font-size: 22px; }
  .facts { grid-template-columns: 1fr; }
  .fact.wide { grid-column: auto; }
  .confirmation-offer { flex-direction: column; }
  .confirmation-actions .button-link { width: 100%; justify-content: space-between; }
}

/* Shared site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
}

.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(5, 0, 51, 0.1); }
.site-header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.site-header-brand { display: flex; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.site-header-logo { display: block; width: auto; height: 44px; }
.site-header-divider { width: 1px; height: 28px; margin-inline: 18px 16px; background: var(--line); }
.site-header-product { color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-header-tools { display: flex; align-items: center; gap: 8px; }
.site-header-lang { position: relative; display: inline-flex; align-items: center; }
.site-header-globe { position: absolute; inset-inline-start: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.site-header-lang select {
  appearance: none;
  width: auto;
  min-height: 40px;
  height: 40px;
  max-width: 176px;
  padding: 0 34px 0 38px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff 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 1.5 6 6.5l5-5' fill='none' stroke='%23050033' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
  color: var(--ink);
  font: 600 14px "Montserrat", Arial, sans-serif;
  text-overflow: ellipsis;
  cursor: pointer;
}
.site-header-lang select:hover { border-color: var(--accent); }
html[dir="rtl"] .site-header-lang select { padding: 0 38px 0 34px; background-position: left 12px center; }
.site-header-account { position: relative; }
.site-header-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 0;
  height: 40px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 600 13px "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.site-header-account-btn:hover,
.site-header-account-btn[aria-expanded="true"] { border-color: var(--accent); background: #fff; color: var(--ink); }
.site-header-account-btn:disabled { border-color: var(--line); background: #fff; color: var(--muted); }
html[dir="rtl"] .site-header-account-btn { padding: 0 5px 0 12px; }
.site-header-avatar { display: grid; place-items: center; width: 28px; height: 28px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.site-header-email { max-width: 200px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.site-header-chevron { width: 12px; height: 8px; flex: none; }
.site-header-account-btn[aria-expanded="true"] .site-header-chevron { transform: rotate(180deg); }
.site-header-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; min-width: 264px; max-width: min(320px, calc(100vw - 24px)); border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 36px rgba(5, 0, 51, 0.16); }
.site-header-menu[hidden] { display: none; }
.site-header-who { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.site-header-who small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.site-header-who b { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; direction: ltr; unicode-bidi: isolate; text-align: start; }
.site-header-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 0;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--accent);
  font: 700 13px "Montserrat", Arial, sans-serif;
  letter-spacing: .02em;
  text-align: start;
  text-transform: uppercase;
  cursor: pointer;
}
.site-header-item:hover { background: var(--panel); color: var(--accent); }
.site-header-item:disabled { background: #fff; color: var(--muted); }
.site-header-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header select:focus-visible { outline: 3px solid rgba(39, 102, 110, .5); outline-offset: 2px; }
.site-header-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: rgba(5, 0, 51, .08); }
.site-header-progress span { display: block; width: 0; height: 100%; background: var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: box-shadow .16s ease; }
  .site-header-chevron { transition: transform .16s ease; }
  .site-header-progress span { transition: width .3s ease; }
}

@media (max-width: 900px) {
  .site-header-email { display: none; }
  .site-header-account-btn { padding: 0 8px 0 5px; }
  html[dir="rtl"] .site-header-account-btn { padding: 0 5px 0 8px; }
}

@media (max-width: 640px) {
  :root { --header-height: 56px; }
  .site-header-inner { max-width: 390px; margin-inline: 0; padding: 0 16px; }
  .site-header-logo { height: 34px; }
  .site-header-divider,
  .site-header-product { display: none; }
  .site-header-lang select { max-width: 128px; }
}

@media (max-width: 440px) {
  .site-header-globe { display: none; }
  .site-header-lang select { padding-inline-start: 12px; }
}

.preview-width-390 #appShell { width: 390px; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f7f8;
  color: var(--ink);
}

body.auth-loading > #authGate,
body.auth-loading > #appShell {
  visibility: hidden;
}

[hidden] {
  display: none !important;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: linear-gradient(rgba(5, 0, 51, 0.32), rgba(5, 0, 51, 0.32)), url("assets/login-background.png") center / cover no-repeat;
}

.auth-shell {
  width: min(100%, 520px);
}

.auth-logo {
  width: 132px;
  margin: 0 auto 24px;
  display: block;
  filter: brightness(0) invert(1);
}

.auth-card {
  padding: 36px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(5, 0, 51, 0.28);
}

.auth-card h1 {
  margin: 4px 0 20px;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.auth-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-step {
  margin-top: 24px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #9fa2aa;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.4 "Montserrat", Arial, sans-serif;
}

.auth-form input:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(39, 102, 110, 0.24);
  outline-offset: 1px;
}

.auth-form button[type="submit"] {
  min-height: 52px;
  margin-top: 4px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #ffffff;
  font: 600 13px/1.2 "Montserrat", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-form button[type="submit"]:hover,
.auth-form button[type="submit"]:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
}

.auth-form button[type="submit"]:disabled,
.auth-link-button:disabled {
  border-color: var(--line);
  background: #efeff2;
  color: #73717d;
  cursor: wait;
}

.auth-code-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

#authCode {
  letter-spacing: 0.28em;
}

.auth-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.auth-link-button {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font: 600 12px/1.3 "Montserrat", Arial, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

#clerk-captcha:not(:empty) {
  margin-top: 16px;
}

.auth-message {
  min-height: 0;
  margin: 0;
  padding-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

.auth-message:empty {
  display: none;
}

.auth-message.error {
  color: var(--danger);
}

.auth-message.success {
  color: var(--ok);
}

input[readonly] {
  background: #f2f2f4;
  color: #54515f;
}

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", Arial, sans-serif;
  text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"] {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .form-header,
html[dir="rtl"] .brand-tone-actions,
html[dir="rtl"] .actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .steps {
  padding-right: 0;
}

html[dir="rtl"] .steps li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .steps button {
  text-align: right;
}

html[dir="rtl"] .file-action,
html[dir="rtl"] .translation-review-section .compact-actions {
  justify-content: flex-start;
}

html[dir="rtl"] select {
  background-position: left 12px center;
  padding-left: 40px;
  padding-right: 14px;
}

.shell {
  min-height: 100vh;
  padding: 24px 32px 32px;
}

.masthead {
  max-width: 1216px;
  margin: 0 auto 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  min-height: 340px;
  overflow: hidden;
  background: var(--accent);
  border: 1px solid rgba(21, 21, 21, 0.18);
  border-radius: 0;
  box-shadow: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  color: white;
}

.hero-copy .eyebrow {
  color: var(--surface);
}

.hero-copy h1 {
  max-width: 600px;
  margin-bottom: 16px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
}

#pageTitle {
  margin-bottom: 20px;
}

.hero-text {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.4;
}

.hero-visual {
  min-height: 340px;
  margin: 0;
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 21, 21, 0.7), rgba(21, 21, 21, 0.05) 36%, rgba(21, 21, 21, 0));
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  max-width: 1216px;
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.panel,
.form-surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.brand,
.form-header,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 600;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 18px;
}

.steps {
  list-style: none;
  padding: 20px 0;
  margin: 24px 0;
  border-block: 1px solid var(--line);
}

.form-progress {
  height: 4px;
  overflow: hidden;
  background: var(--panel);
}

.form-progress span {
  display: block;
  width: 16.67%;
  height: 100%;
  background: var(--teal);
  transition: width 220ms ease;
}

.steps li {
  position: relative;
  border-radius: 0;
}

.steps button {
  width: 100%;
  min-height: 48px;
  border-radius: 0;
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
}

.steps li.completed button {
  padding-right: 40px;
  color: var(--teal);
}

.steps li.completed::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--teal);
  font-weight: 700;
  transform: translateY(-50%);
}

.steps button:hover,
.steps li.active button {
  background: #ebf0f7;
  color: var(--accent);
}

.form-section {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.form-section[data-section-number] > h3::before {
  content: attr(data-section-number);
  display: block;
  margin-bottom: 6px;
  color: var(--offer);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.form-surface {
  padding: 28px;
}

.form-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.offer-type-first {
  margin-top: 0;
  padding: 26px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.offer-type-first h3 {
  margin-bottom: 6px;
}

.offer-type-first > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.section-intro {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.field-guidance {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.field-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.field-tooltip-trigger {
  display: inline-grid;
  place-items: center;
  width: 19px;
  min-width: 19px;
  height: 19px;
  min-height: 19px;
  padding: 0;
  border: 1px solid var(--teal);
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

.field-tooltip-trigger:hover,
.field-tooltip-trigger:focus-visible {
  background: var(--teal);
  color: #fff;
  outline: none;
}

.field-tooltip-content {
  position: absolute;
  z-index: 30;
  inset-inline-start: -8px;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: min(280px, 72vw);
  padding: 10px 12px;
  border: 1px solid var(--teal);
  background: #eef8f8;
  box-shadow: 0 8px 22px rgba(0, 28, 54, 0.16);
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.field-tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  inset-inline-start: 14px;
  border: 6px solid transparent;
  border-top-color: var(--teal);
}

.field-tooltip:hover .field-tooltip-content,
.field-tooltip:focus-within .field-tooltip-content {
  opacity: 1;
  transform: translateY(0);
}

.offer-type-first label {
  max-width: 100%;
}

.offer-type-first select {
  min-height: 48px;
  height: 48px;
  padding-block: 0;
  border-color: var(--line);
  background: var(--surface);
}

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

.offer-type-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.offer-type-tile {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 140px;
  padding: 22px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

.offer-type-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0;
}
.offer-type-icon svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.offer-type-tile[data-offer-type="red_hot_rooms"] .offer-type-icon { color: var(--red-hot-rooms); }
.offer-type-name { color: var(--ink); }

.offer-type-tile:hover { border-color: var(--teal); background: var(--panel); }
.offer-type-tile:focus-visible {
  outline: 3px solid rgba(39, 102, 110, 0.5);
  outline-offset: 2px;
  border-color: var(--teal);
  background: var(--panel);
}

.offer-type-tile.is-selected,
.offer-type-tile[aria-pressed="true"] {
  border-color: var(--offer);
  box-shadow: inset 0 -4px 0 var(--offer);
  background: #fff4f8;
}
.offer-type-tile.is-selected .offer-type-name,
.offer-type-tile[aria-pressed="true"] .offer-type-name { color: var(--offer); }

.offer-type-check {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 22px;
  height: 22px;
  display: none;
  place-items: center;
  background: var(--offer);
  color: #fff;
}
.offer-type-check svg { width: 14px; height: 14px; fill: currentColor; }
.offer-type-tile.is-selected .offer-type-check,
.offer-type-tile[aria-pressed="true"] .offer-type-check { display: grid; }

.offer-type-tile.is-static { cursor: default; pointer-events: none; }
.offer-type-tile.is-static .offer-type-check { display: none; }
.confirmation-offer .offer-type-tile { flex: none; width: 160px; }

@media (max-width: 640px) {
  .offer-type-tiles { grid-template-columns: 1fr; gap: 10px; }
  .offer-type-tile {
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    place-items: center start;
    min-height: 0;
    padding: 14px 16px;
    text-align: start;
  }
  .offer-type-icon { width: 48px; height: 48px; }
  .offer-type-check { top: 50%; transform: translateY(-50%); }
}

@media (max-width: 900px) {
  .confirmation-offer .offer-type-tile {
    width: 100%;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    place-items: center start;
    min-height: 0;
    padding: 14px 16px;
    text-align: start;
  }
  .confirmation-offer .offer-type-icon { width: 48px; height: 48px; }
}

.form-section > label,
.form-section > .upload-zone,
.form-section > .date-compare,
.form-section > .grid + label {
  margin-top: 18px;
}

.form-section h3 + .grid,
.form-section h3 + .date-compare,
.form-section h3 + .upload-zone {
  margin-top: 0;
}

.dynamic-fields {
  margin-top: 0;
}

.offer-type-pending .offer-dependent-section {
  display: none !important;
}

.steps li.is-offer-dependent-hidden {
  display: none;
}

.legacy-image-upload {
  display: none !important;
}

.translation-disclaimer {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--teal);
  background: #eef8f8;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.translation-choice-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.translation-choice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  gap: 12px;
  margin-bottom: 20px;
}

.translation-choice-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.translation-choice-options label:has(input:checked) {
  border-color: var(--teal);
  background: #eef8f8;
}

.translation-choice-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--teal);
}

#translationComponent h4 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 18px;
}

.dynamic-grid {
  margin-top: 16px;
}

.dynamic-grid .full-width-field {
  grid-column: 1 / -1;
}

.booking-method-fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.booking-method-fieldset legend {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.booking-method-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-method-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.booking-method-options label:has(input:checked) {
  border-color: var(--accent);
  background: #f4f2fd;
  color: var(--accent);
}

.booking-method-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.booking-method-fields {
  margin-top: 16px;
}

.helper-note {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  background: var(--panel);
}

.helper-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.translation-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  background: var(--panel);
}

.translation-panel summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 700;
}

.translation-panel p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.translation-review-section {
  background: transparent;
  margin-inline: 0;
  padding-inline: 0;
}

.translation-review-section h3 {
  color: var(--teal);
}

.translation-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.translation-controls,
.brand-tone-actions {
  padding: 14px;
  background: var(--panel);
}

.ai-action::before {
  content: "✦";
  margin-right: 8px;
}

.translation-controls label {
  margin: 0;
}

.translation-controls select,
.translation-controls button {
  min-height: 48px;
  height: 48px;
}

#translationStatus:not(:empty) {
  margin: 18px 0 0;
}

.compact-actions {
  justify-content: flex-start;
  margin: 18px 0;
  padding-top: 0;
}

.translation-review-section .compact-actions {
  justify-content: flex-end;
}

.translation-preview-panel {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.translation-edit-help {
  margin: 8px 0 0;
  font-size: 12px;
}

.translation-preview-panel .compact-actions {
  margin-bottom: 0;
}

.compact-actions button {
  min-height: 48px;
}

.brand-tone-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
}

.brand-tone-actions p {
  flex: 1 1 auto;
  margin: 0;
}

.brand-tone-actions button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 18px;
  font-size: 13px;
}

.brand-tone-actions .muted.success {
  font-weight: 400;
}

.muted.success {
  color: var(--ok);
  font-weight: 700;
}

.muted.error {
  color: var(--danger);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact {
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  background: white;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

select {
  min-height: 54px;
  padding-block: 14px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(39, 102, 110, 0.18);
  border-color: var(--accent);
}

.date-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.date-compare > div {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  background: var(--panel);
}

.date-compare p {
  margin-bottom: 12px;
  font-weight: 700;
}

.inline-alert {
  min-height: 20px;
  margin: 12px 0 18px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.inline-alert:empty {
  display: none;
}

.upload-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 150px;
  gap: 18px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 0;
  padding: 16px;
  background: var(--panel);
}

.upload-zone::after {
  content: "↥";
  display: grid;
  place-items: center;
  grid-column: 2;
  grid-row: 1;
  width: 160px;
  height: 100px;
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 30px;
}

.upload-zone.has-preview::after {
  display: none;
}

.upload-zone .file-action {
  grid-column: 3;
}

.upload-zone > img,
.upload-zone > .image-stack {
  grid-column: 2;
  grid-row: 1;
}

.upload-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.upload-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.upload-copy span,
.upload-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.file-action {
  display: grid;
  gap: 6px;
  align-content: center;
  cursor: pointer;
}

.file-action input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--accent);
  color: white !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.file-action:hover .file-button,
.file-action:focus-within .file-button {
  background: var(--teal);
}

.file-action:focus-within .file-button {
  outline: 3px solid rgba(39, 102, 110, 0.18);
  outline-offset: 2px;
}

.file-action small {
  display: block;
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-zone img {
  display: none;
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--line);
}

.image-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.image-stack img {
  width: 100%;
  height: 74px;
}

.image-stack img:nth-child(3) {
  aspect-ratio: 1;
  height: auto;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.image-upload-status {
  min-height: 18px;
  margin: 14px 0 0;
  line-height: 1.45;
}

.image-upload-status:empty {
  display: none;
}

.image-preview-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.image-preview-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.image-preview-card figcaption strong {
  color: var(--ink);
  font-size: 13px;
}

.image-preview-card figcaption span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.image-preview-note {
  min-height: 34px;
  margin: -2px 0 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.image-preview-card:not(.image-preview-social) figcaption {
  margin-bottom: 44px;
}

.image-preview-placeholder,
.image-preview-card img {
  width: 100%;
  border: 1px dashed var(--line);
  background: var(--panel);
}

.image-preview-placeholder {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.image-preview-card img {
  display: none;
  object-fit: cover;
}

.image-preview-banner img,
.image-preview-banner .image-preview-placeholder {
  aspect-ratio: 2048 / 1366;
}

.image-preview-listing img,
.image-preview-listing .image-preview-placeholder {
  aspect-ratio: 400 / 250;
}

.image-preview-social img,
.image-preview-social .image-preview-placeholder {
  aspect-ratio: 1;
}

.image-preview-card:has(img[style*="display: block"]) .image-preview-placeholder {
  display: none;
}

@media (max-width: 760px) {
  .image-preview-grid {
    grid-template-columns: 1fr;
  }
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.file-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 0;
  padding: 16px;
  background: var(--panel);
}

.file-card.has-file {
  border-color: var(--teal);
  border-style: solid;
  box-shadow: inset 4px 0 0 var(--teal);
}

.file-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.secondary-upload {
  margin-top: 10px;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.checkline input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.form-message {
  min-height: 24px;
  margin-top: 20px;
  font-weight: 700;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--ok);
}

.turnstile-container:not(:empty) {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.actions {
  padding-top: 22px;
}

#offerForm > .actions button[type="submit"] {
  min-height: 56px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 700;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover {
  background: var(--teal);
}

button:disabled,
button:disabled:hover {
  border-color: var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

button.secondary {
  border: 1px solid var(--accent);
  background: white;
  color: var(--accent);
}

button.secondary:hover {
  background: var(--accent);
  color: white;
}

button.tertiary {
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--muted);
}

button.tertiary:hover,
button.tertiary:focus-visible {
  border-color: var(--accent);
  background: var(--panel);
  color: var(--accent);
}

html[dir="rtl"] .steps li.completed button {
  padding-right: 14px;
  padding-left: 40px;
}

html[dir="rtl"] .steps li.completed::after {
  right: auto;
  left: 14px;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid rgba(5, 0, 51, 0.16);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(5, 0, 51, 0.28);
}

dialog::backdrop {
  background: rgba(5, 0, 51, 0.48);
  backdrop-filter: blur(3px);
}

.dialog-content {
  padding: 34px 36px 32px;
  background: linear-gradient(145deg, #faf9ff 0%, var(--panel) 100%);
}

.booking-validation-dialog {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 0;
}

.booking-dialog-status-icon {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(39, 102, 110, 0.12);
  color: var(--ok);
  font-size: 23px;
  font-weight: 700;
}

.booking-dialog-status-icon::before {
  content: "✓";
}

dialog[data-status="warning"] .booking-dialog-status-icon {
  background: rgba(242, 209, 102, 0.28);
  color: #745500;
}

dialog[data-status="warning"] .booking-dialog-status-icon::before {
  content: "!";
}

.booking-dialog-copy {
  grid-column: 2;
  min-width: 0;
}

.booking-dialog-copy h2 {
  margin: 2px 0 14px;
  color: var(--accent);
  font-size: clamp(23px, 4vw, 29px);
  line-height: 1.2;
}

.booking-dialog-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.dialog-content .booking-dialog-link {
  grid-column: 1 / -1;
  display: block;
  margin: 26px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(5, 0, 51, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent-dark);
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.booking-dialog-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(5, 0, 51, 0.12);
  gap: 12px;
}

.booking-dialog-actions button {
  min-width: 118px;
}

@media (max-width: 520px) {
  .dialog-content {
    padding: 28px 24px 24px;
  }

  .booking-validation-dialog {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 14px;
  }

  .booking-dialog-status-icon {
    width: 38px;
    height: 38px;
  }

  .booking-dialog-actions {
    flex-direction: column-reverse;
  }

  .booking-dialog-actions button {
    width: 100%;
  }
}

.translation-preview-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.translation-controls select[multiple] { min-height: 168px; }
.file-validation-message { display: block; margin-top: 6px; color: #9b2c2c; font-weight: 600; }
.submission-progress { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin: 20px 0; padding: 18px 20px; border-radius: 14px; background: #f2f5ec; border: 1px solid #dce5cf; }
.submission-spinner { width: 28px; height: 28px; border: 3px solid #d0dac3; border-top-color: var(--accent); border-radius: 50%; animation: submission-spin .8s linear infinite; }
.submission-progress-track { height: 7px; margin: 10px 0 6px; overflow: hidden; border-radius: 999px; background: #dfe7d5; }
.submission-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
@keyframes submission-spin { to { transform: rotate(360deg); } }

.confirmation-masthead {
  margin-bottom: 0;
}

.confirmation-hero {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--accent);
}

.confirmation-hero img {
  display: block;
  width: 100%;
  height: clamp(150px, 19vw, 230px);
  object-fit: cover;
  object-position: center 62%;
}

.confirmation-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.confirmation-heading h1 {
  max-width: 760px;
  margin: 2px 0 16px;
  color: var(--accent);
  font-size: clamp(36px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.12;
}

.confirmation-heading h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 18px;
  background: var(--offer);
}

.confirmation-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0;
  border: 1px solid rgba(212, 2, 77, 0.24);
  border-radius: 0;
  background: #fff4f8;
  color: var(--offer);
  font-size: 30px;
  font-weight: 700;
}

.offer-ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 38px 0 40px;
  padding: 26px 30px;
  border: 1px dashed var(--offer);
  background: linear-gradient(90deg, #fff4f8, #fff 72%);
}

.offer-ticket::before,
.offer-ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 36px;
  border: 1px solid var(--offer);
  background: var(--surface);
  transform: translateY(-50%);
}

.offer-ticket::before {
  left: -11px;
  border-left: 0;
  border-radius: 0 20px 20px 0;
}

.offer-ticket::after {
  right: -11px;
  border-right: 0;
  border-radius: 20px 0 0 20px;
}

.confirmation-offer-icon,
.detail-offer-icon {
  display: grid;
  place-items: center;
  color: var(--offer);
  font-weight: 700;
  line-height: 1;
}

.confirmation-offer-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--offer);
  background: var(--surface);
  font-size: 32px;
}

.confirmation-offer-icon.is-badge {
  font-size: 17px;
  letter-spacing: 0.05em;
}

.confirmation-offer-icon svg,
.detail-offer-icon svg {
  width: 66%;
  height: 66%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.offer-ticket-reference {
  display: grid;
  gap: 8px;
}

.offer-ticket-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-ticket-reference span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-ticket-collection {
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--teal) !important;
}

html[dir="rtl"] .offer-ticket-collection {
  padding-right: 8px;
  padding-left: 0;
  border-right: 1px solid var(--line);
  border-left: 0;
}

.offer-ticket-reference strong {
  font-size: clamp(23px, 3.5vw, 32px);
  color: var(--offer);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.copy-offer-id {
  min-width: 112px;
}

.copy-offer-id.is-copied {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--surface);
}

.copy-status {
  grid-column: 2 / -1;
  min-height: 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

html[dir="rtl"] .copy-status {
  text-align: left;
}

.next-steps {
  margin: 0 0 32px;
  padding: 30px 32px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.next-steps h2 {
  margin-bottom: 26px;
  font-size: 25px;
}

.status-tracker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-tracker li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.status-tracker li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: rgba(5, 0, 51, 0.18);
}

.status-tracker li > span {
  display: grid;
  z-index: 1;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
}

.status-tracker li.complete {
  color: var(--teal);
}

.status-tracker li.complete > span {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(39, 102, 110, 0.12);
  background: var(--teal);
  color: var(--surface);
}

.confirmation-details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.confirmation-details div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.confirmation-details dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.confirmation-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
  white-space: pre-line;
}

.confirmation-type-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-offer-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--offer);
  font-size: 17px;
}

.detail-offer-icon.is-badge {
  width: 42px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.confirmation-status-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 0;
  padding: 24px 28px;
  border-left: 3px solid var(--teal);
  background: var(--panel);
}

.confirmation-status-panel .eyebrow {
  margin: 0 0 5px;
}

.confirmation-status-panel .email-status:first-child {
  margin-top: 0;
}

.asana-task-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  margin-top: 0;
  padding: 0 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.asana-task-button:hover,
.asana-task-button:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--surface);
}

.confirmation-actions {
  justify-content: flex-end;
  padding-top: 34px;
  border-top: 0;
}

.email-status {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.email-status.success {
  color: var(--ok);
}

.email-status.error {
  color: var(--danger);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

@keyframes confirmation-mark-in {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes confirmation-ticket-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.confirmation-reveal .success-mark {
  animation: confirmation-mark-in 420ms cubic-bezier(0.2, 0.85, 0.35, 1.25) both;
}

/* Confirmation page alignment and success treatment */
.confirmation-masthead,
.confirmation-screen { width: 100%; max-width: 1000px; margin-inline: auto; }
.confirmation-screen { margin-top: 24px; margin-bottom: 32px; }
.confirmation-card { padding: 36px 40px 40px; border-color: #bfd8c7; background: #f2f8f4; }
.confirmation-hero img { height: clamp(160px, 18vw, 190px); }
.confirmation-heading { gap: 20px; align-items: center; }
.confirmation-heading h1 { margin: 2px 0 0; font-size: clamp(30px, 4vw, 36px); }
.confirmation-heading h1::after { display: none; }
.success-mark {
  width: 56px;
  height: 56px;
  border-color: var(--teal);
  background: rgba(39, 102, 110, 0.1);
  color: var(--teal);
}
.confirmation-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 28px 0;
  padding: 16px 18px;
  border: 1px solid #a9cdb5;
  background: #e7f4eb;
}
.confirmation-offer-icon { width: 48px; height: 48px; border-color: var(--offer); color: var(--offer); font-size: 26px; }
.confirmation-identity-main { display: grid; gap: 4px; min-width: 0; }
.confirmation-identity-main strong { color: var(--accent); font-size: 17px; overflow-wrap: anywhere; }
.confirmation-identity-main span { color: var(--muted); font-size: 14px; }
.confirmation-id-group { display: grid; justify-items: end; gap: 4px; }
.confirmation-id-group > span:first-child { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.offer-id-chip { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 7px 11px; border: 1px solid var(--offer); background: var(--surface); color: var(--offer); font-size: 13px; font-weight: 700; }
.offer-id-chip:hover,
.offer-id-chip:focus-visible { background: var(--offer); color: var(--surface); }
.confirmation-id-group .copy-status { grid-column: auto; min-height: 14px; }
.next-steps { margin-bottom: 24px; padding: 24px 26px; }
.next-steps h2 { margin: 0 0 22px; font-size: 22px; }
.next-steps-notes { display: grid; gap: 6px; margin: -8px 0 22px; }
.next-steps-notes p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.45; }
.status-tracker { gap: 28px; }
.status-tracker li { justify-items: start; text-align: start; }
.status-tracker li:not(:last-child)::after { inset-inline-start: 34px; left: auto; width: calc(100% + 28px - 34px); }
.confirmation-actions { justify-content: flex-start; margin-top: 0; }
html[dir="rtl"] .confirmation-id-group { justify-items: start; }

.confirmation-ticket-reveal {
  animation: confirmation-ticket-in 520ms 140ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .confirmation-reveal .success-mark,
  .confirmation-ticket-reveal {
    animation: none;
  }
}

@media (max-width: 900px) {
  .auth-gate {
    padding: 20px 16px;
  }

  .auth-card {
    padding: 26px 22px;
  }

  .auth-secondary-actions {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 16px;
  }

  .confirmation-card {
    padding: 24px 20px;
  }

  .confirmation-heading {
    grid-template-columns: 1fr;
  }

  .confirmation-heading h1 {
    font-size: 30px;
  }

  .confirmation-identity { grid-template-columns: auto 1fr; }
  .confirmation-id-group { grid-column: 1 / -1; justify-items: start; }
  .status-tracker { gap: 12px; }
  .status-tracker li:not(:last-child)::after { width: calc(100% + 12px - 34px); }

  .offer-ticket {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .confirmation-status-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .confirmation-status-panel .asana-task-button {
    width: 100%;
  }

  .copy-offer-id {
    grid-column: 1 / -1;
    width: 100%;
  }

  .copy-status {
    grid-column: 1 / -1;
    text-align: center;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 22px;
  }

  .hero-visual {
    min-height: 220px;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, rgba(21, 21, 21, 0.18), rgba(21, 21, 21, 0));
  }

  .workspace,
  .two,
  .date-compare,
  .upload-zone,
  .upload-grid,
  .confirmation-details div {
    grid-template-columns: 1fr;
  }

  .status-tracker li strong {
    font-size: 11px;
  }

  .file-card,
  .upload-zone {
    grid-template-columns: 1fr;
  }

  .upload-zone .file-action,
  .upload-zone > img,
  .upload-zone > .image-stack {
    grid-column: 1;
    grid-row: auto;
  }

  .file-action small {
    max-width: 100%;
  }

  .panel {
    position: static;
  }

  .form-header,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-tone-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-tone-actions button {
    width: 100%;
  }

  .translation-controls {
    grid-template-columns: 1fr;
  }

  .upload-zone::after {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .booking-method-options {
    grid-template-columns: 1fr;
  }

  .translation-controls button {
    width: 100%;
  }

  html[dir="rtl"] .form-header,
  html[dir="rtl"] .actions,
  html[dir="rtl"] .brand-tone-actions {
    flex-direction: column;
  }
}

/* Confirmation cascade: keep confirmation-specific values after shared form rules. */
body .hero-copy { padding: 40px; }
body .hero-copy h1 { max-width: 520px; margin: 0; font-size: 36px; font-weight: 600; line-height: 1.3; }
body .success-mark { position: relative; width: 56px; height: 56px; margin: 0 0 22px; border: 0; background: #fff; color: var(--teal); }
body .success-mark svg { width: 32px; height: 32px; fill: currentColor; }
body .copy-status { min-height: 18px; color: #fff; font-size: 13px; font-weight: 500; text-align: start; }
body .next-steps { margin: 0; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
body .next-steps h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; }
body .status-tracker { display: block; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
body .status-tracker li { position: relative; display: grid; grid-template-columns: 32px 1fr; justify-items: stretch; gap: 14px; padding: 16px 12px; color: var(--muted); text-align: start; }
body .status-tracker li.current { background: #ebf0f7; }
body .status-tracker li:not(:last-child)::after { inset-inline-start: 27px; top: 48px; bottom: -16px; left: auto; width: 2px; height: auto; background: var(--line); }
body .status-tracker li.complete:not(:last-child)::after { background: var(--teal); }
body .status-tracker .node { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; }
body .status-tracker .complete .node { border-color: var(--teal); box-shadow: none; background: var(--teal); color: #fff; }
body .status-tracker .current .node { border-color: var(--accent); color: var(--accent); }
body .confirmation-actions { justify-content: flex-end; gap: 14px 20px; margin: 0; padding-top: 28px; }
body .hero-panel .confirmation-id { gap: 16px; margin-top: 30px; }
body .hero-panel .confirmation-id-label { color: rgba(255,255,255,.76); font-size: 18px; font-weight: 600; letter-spacing: .12em; }
body .hero-panel .offer-id-chip {
  gap: 14px;
  min-height: 60px;
  max-width: 100%;
  padding: 0 18px;
  border: 0;
  box-shadow: inset 0 -6px 0 var(--offer);
  background: #fff;
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}
body .hero-panel .offer-id-chip:hover,
body .hero-panel .offer-id-chip:focus-visible { background: var(--panel); color: var(--accent); }
body .hero-panel .offer-id-chip svg { width: 20px; height: 20px; }
body .hero-panel .offer-id-chip .id-text { min-width: 0; white-space: nowrap; }
@media (max-width: 900px) {
  body .hero-copy { padding: 28px; }
  body .hero-copy h1 { font-size: 32px; }
  body .status-tracker li strong { font-size: 16px; }
  body .hero-panel .confirmation-id-label { font-size: 14px; }
  body .hero-panel .offer-id-chip { gap: 10px; min-height: 52px; max-width: 100%; padding: 0 14px; font-size: 14px; }
  body .hero-panel .offer-id-chip svg { width: 18px; height: 18px; }
}
