/* =========================================================================
   Travelholic HR — Area Manager Application
   Tokens locked from Travelholic master CLAUDE.md §2
   ========================================================================= */

:root {
  /* Brand */
  --color-navy:   #00273E;
  --color-stone:  #EFEDE5;
  --color-maroon: #4A1212;
  --color-olive:  #51553C;
  --color-butter: #F2E6B7;

  /* Semantic */
  --bg:          var(--color-stone);
  --surface:     #FFFFFF;
  --text:        var(--color-navy);
  --text-muted:  #5C6B75;
  --border:      #D9D5C7;
  --accent:      var(--color-maroon);
  --highlight:   var(--color-butter);
  --error:       #B3261E;
  --success:     var(--color-olive);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Radius */
  --radius-input: 12px;
  --radius-card:  16px;
  --radius-pill:  9999px;

  /* Shadow */
  --shadow-card: 0 8px 32px rgba(0, 39, 62, 0.08);
  --shadow-hover: 0 12px 36px rgba(0, 39, 62, 0.14);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   Reset + base
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--color-butter);
  outline-offset: 2px;
  border-radius: 4px;
}

img, svg { max-width: 100%; display: block; }

/* =========================================================================
   Layout shell
   ========================================================================= */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 20px 24px;
  border-block-end: 1px solid var(--border);
  background: var(--surface);
}

.topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__logo { height: 44px; width: auto; }

.topbar__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main {
  flex: 1;
  padding: 48px 24px 96px;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

@media (max-width: 600px) {
  .main { padding: 24px 16px 64px; }
  .card { padding: 24px; border-radius: 12px; }
  .topbar { padding: 16px; }
  .topbar__logo { height: 36px; }
  .topbar__meta { display: none; }
}

.footer {
  padding: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-block-start: 1px solid var(--border);
  background: var(--surface);
}

/* =========================================================================
   Eyebrow + utility text
   ========================================================================= */

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-block-end: 12px;
}

.lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.meta-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  font-size: 0.9375rem;
}

.meta-list dt, .meta-list strong {
  color: var(--text);
  font-weight: 600;
}

.meta-list dd {
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .meta-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.process-list {
  margin: 16px 0 0;
  padding-inline-start: 24px;
}

.process-list li {
  margin-block-end: 8px;
  color: var(--text-muted);
}

/* =========================================================================
   Honesty callout
   ========================================================================= */

.callout {
  background: rgba(242, 230, 183, 0.4);
  border-inline-start: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-input) var(--radius-input) 0;
  margin: 32px 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.callout strong { color: var(--text); }

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
  text-decoration: none;
  min-height: 48px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn--primary {
  background: var(--color-navy);
  color: var(--color-stone);
  box-shadow: 0 4px 14px rgba(0, 39, 62, 0.18);
}
.btn--primary:hover:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--ghost:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--color-navy);
  color: var(--color-stone);
}

.btn--text {
  background: transparent;
  color: var(--text-muted);
  padding: 12px 16px;
  font-weight: 500;
}
.btn--text:hover:not(:disabled) { color: var(--text); }

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-block-start: 32px;
  flex-wrap: wrap;
}

.btn-row__right {
  display: flex;
  gap: 12px;
  margin-inline-start: auto;
}

/* =========================================================================
   Progress bar
   ========================================================================= */

.progress {
  margin-block-end: 32px;
}

.progress__track {
  height: 4px;
  background: var(--color-stone);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0%;
  background: var(--color-navy);
  border-radius: var(--radius-pill);
  transition: width 400ms var(--ease);
}

.progress__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-block-start: 8px;
  letter-spacing: 0.04em;
}

/* =========================================================================
   Area banner (conditional, sections B–F)
   ========================================================================= */

.area-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 39, 62, 0.06);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  color: var(--color-navy);
  font-weight: 500;
  margin-block-end: 24px;
  letter-spacing: 0.02em;
}

.area-banner__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-maroon);
}

/* =========================================================================
   Form
   ========================================================================= */

.field {
  margin-block-end: 28px;
}

.field__label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-block-end: 8px;
  color: var(--text);
  line-height: 1.4;
}

.field__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-block-end: 8px;
  margin-block-start: -4px;
  line-height: 1.45;
}

.field__required {
  color: var(--accent);
  margin-inline-start: 4px;
  font-weight: 700;
}

.field__counter {
  display: block;
  text-align: end;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-block-start: 4px;
}

.field__error {
  display: none;
  color: var(--error);
  font-size: 0.8125rem;
  margin-block-start: 6px;
  line-height: 1.4;
}

.field.is-invalid .field__error { display: block; }

.field__input,
.field__textarea,
.field__select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(0, 39, 62, 0.12);
}

.field__textarea {
  min-height: 120px;
  resize: vertical;
}

.field.is-invalid .field__input,
.field.is-invalid .field__textarea,
.field.is-invalid .field__select {
  border-color: var(--error);
}

/* Checkbox / radio groups */
.field__options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 150ms var(--ease), background 150ms var(--ease);
}

.option:hover { border-color: var(--color-navy); }

.option input {
  margin: 4px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-navy);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.option__label {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text);
  user-select: none;
}

.option:has(input:checked) {
  border-color: var(--color-navy);
  background: rgba(0, 39, 62, 0.04);
}

/* Subsection within Section E */
.subsection-heading {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-maroon);
  font-weight: 700;
  margin: 40px 0 16px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--border);
}

.subsection-heading:first-of-type {
  padding-block-start: 0;
  border-block-start: none;
  margin-block-start: 0;
}

/* Section D header (guest journey brief) */
.section__brief {
  background: rgba(81, 85, 60, 0.08);
  border-radius: var(--radius-input);
  padding: 20px 24px;
  margin-block-end: 32px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
}

/* =========================================================================
   Section transitions
   ========================================================================= */

.section {
  display: none;
  opacity: 0;
}

.section.is-active {
  display: block;
  animation: fadeIn 250ms var(--ease) forwards;
}

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

@media (prefers-reduced-motion: reduce) {
  .section.is-active { animation: none; opacity: 1; transform: none; }
  .progress__fill { transition: none; }
  .btn { transition: none; }
}

.section__header {
  margin-block-end: 32px;
}

.section__header .eyebrow { margin-block-end: 4px; }

/* =========================================================================
   Resume banner
   ========================================================================= */

.resume-banner {
  display: none;
  background: var(--color-butter);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-block-end: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.resume-banner.is-visible { display: flex; }

.resume-banner__text {
  font-size: 0.9375rem;
  color: var(--color-navy);
  font-weight: 500;
}

.resume-banner__actions {
  display: flex;
  gap: 8px;
}

.resume-banner .btn {
  padding: 8px 18px;
  min-height: 36px;
  font-size: 0.875rem;
}

/* =========================================================================
   Submit state
   ========================================================================= */

.submit-status {
  display: none;
  margin-block-start: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-input);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.submit-status.is-visible { display: block; }

.submit-status--error {
  background: rgba(179, 38, 30, 0.08);
  color: var(--error);
  border: 1px solid rgba(179, 38, 30, 0.2);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

/* =========================================================================
   Thank-you page
   ========================================================================= */

.thank-you {
  text-align: center;
  padding: 32px 0;
}

.thank-you__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(81, 85, 60, 0.14);
  color: var(--color-olive);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 24px;
  font-size: 28px;
}

.thank-you h1 { margin-block-end: 16px; }

.thank-you p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 540px;
  margin-inline: auto;
}
