/*!
 * assets/css/public-forms.css — public-website styling for account, estimate,
 * quote, booking-confirmation and invoice screens.
 *
 * Matches the main site: Freight Sans / Times LT Roman, brand blue #3a8dde,
 * limed-spruce #36404a, desert-storm #ededec. Everything is scoped under
 * .au-pub-page (screens) or .au-pub-quote (embedded quote forms) so admin
 * styles are never pulled in here.
 */

/* Public pages (contact form, quote blocks) reference these Bootstrap-style
   tokens for borders, radii and shadows. They are defined here so every
   var() on the public site resolves — the theme never declared them. */
:root {
    --gray-100: #f5f5f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);

    /* Accessible steps of the existing brand ramp (WCAG 2.1 AA on white).
       The site blue #3a8dde is only 3.47:1 on white, so it fails as link text,
       as an outline-button label and as a button fill behind white text. These
       are the same hues, darkened until they pass:
         --brand-blue-ink  5.50:1  text + borders on light backgrounds
         --brand-blue-deep 6.39:1  fills (white text on it)
         --brand-teal-deep 5.03:1  hover fills / links (white text on it)
         --gray-550        3.15:1  hairlines + control borders (3:1 UI minimum)
       #3a8dde itself is kept for large decorative fills (hero underline). */
    --brand-blue:       #3a8dde;
    --brand-blue-ink:   #1c6cb0;
    --brand-blue-deep:  #17629f;
    --brand-teal-deep:  #0f7d6e;
    --gray-550:         #8b929a;
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ============ Page scaffold ============ */
.au-pub-page {
    font-family: "FreightSans", "Freight Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2429;
    background: #fff;
}
.au-pub-page *,
.au-pub-page *::before,
.au-pub-page *::after { box-sizing: border-box; }
.au-pub-page a { color: var(--brand-blue-ink); text-decoration: none; }
.au-pub-page a:hover { color: var(--brand-teal-deep); text-decoration: underline; }

/* ============ Hero (clears the absolute site header) ============ */
.au-pub-hero {
    background: #36404a;
    background-image: linear-gradient(135deg, #3a4450 0%, #2b333b 100%);
    color: #fff;
    padding: 190px 0 60px;
    position: relative;
    overflow: hidden;
}
.au-pub-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: #3a8dde;
}
.au-pub-hero-inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
}
.au-pub-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 14px;
}
.au-pub-breadcrumb a { color: #fff; }
.au-pub-breadcrumb a:hover { color: #4ac1e0; }
.au-pub-breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.au-pub-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4ac1e0;
    margin: 0 0 12px;
}
.au-pub-hero h1 {
    font-family: "Times LT Roman", "Times LT", Georgia, serif;
    font-size: 52px;
    line-height: 1.08;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}
.au-pub-lead {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    max-width: 760px;
    margin: 0;
}
.au-pub-hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.au-pub-hero-actions a:hover { text-decoration: none; }

/* ============ Body / cards ============ */
.au-pub-body {
    max-width: 1080px;
    margin: 0 auto;
    padding: 52px 24px 90px;
}
.au-pub-body--narrow { max-width: 660px; }
.au-pub-body--wide { max-width: 1280px; }
.au-pub-grid-2 {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.au-pub-card {
    background: #fff;
    border: 1px solid var(--gray-550);   /* #dee2e6 was 1.30:1 — cards had no visible edge */
    border-radius: 12px;
    padding: 34px 36px;
    box-shadow: 0 6px 28px rgba(31, 36, 41, 0.07);
    margin-bottom: 28px;
}
.au-pub-card:last-child { margin-bottom: 0; }
.au-pub-card--tint { background: #f8f9fa; box-shadow: none; }
.au-pub-card--dark { background: #36404a; border-color: #36404a; color: #fff; }
/* Two classes, not one: ".au-pub-card--dark h3" and ".au-pub-card h3" have the
   same specificity, so whichever came last won — the dark card's heading was
   rendering in near-black on its own dark background (1.44:1). */
.au-pub-card.au-pub-card--dark h2,
.au-pub-card.au-pub-card--dark h3 { color: #fff; }
.au-pub-card--dark a { color: #4ac1e0; }
.au-pub-card h2 {
    font-family: "Times LT Roman", "Times LT", Georgia, serif;
    font-size: 30px;
    line-height: 1.2;
    color: #1f2429;
    margin: 0 0 8px;
}
.au-pub-card h3 {
    font-family: "Times LT Roman", "Times LT", Georgia, serif;
    font-size: 22px;
    color: #1f2429;
    margin: 0 0 8px;
}
.au-pub-card-sub { font-size: 16px; color: var(--gray-700); margin: 0 0 22px; }
.au-pub-card--dark .au-pub-card-sub { color: rgba(255, 255, 255, 0.82); }

/* ============ Forms ============ */
.au-pub-field { margin-bottom: 20px; }
.au-pub-field > label,
.au-pub-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #36404a;
    margin: 0 0 8px;
}
.au-pub-req { color: #c53030; font-weight: 700; }
.au-pub-page input[type="text"],
.au-pub-page input[type="email"],
.au-pub-page input[type="password"],
.au-pub-page input[type="tel"],
.au-pub-page input[type="number"],
.au-pub-page input[type="date"],
.au-pub-page select,
.au-pub-page textarea {
    width: 100%;
    padding: 13px 16px;
    font-size: 16px;
    line-height: 1.5;
    font-family: inherit;
    color: #1f2429;
    background: #fff;
    border: 1px solid var(--gray-550);
    border-radius: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.au-pub-page textarea { min-height: 120px; resize: vertical; }
.au-pub-page input:focus,
.au-pub-page select:focus,
.au-pub-page textarea:focus {
    outline: none;
    border-color: var(--brand-blue-ink);
    box-shadow: 0 0 0 3px rgba(28, 108, 176, 0.28);
}
/* The theme forces every placeholder site-wide to white (for its dark blue
   Marketo forms). On our light fields that means invisible text, so override
   it explicitly in every engine. */
.au-pub-page input::placeholder,
.au-pub-page textarea::placeholder {
    color: var(--gray-700);
    opacity: 1;
}
.au-pub-page input::-webkit-input-placeholder,
.au-pub-page textarea::-webkit-input-placeholder {
    color: var(--gray-700);
    opacity: 1;
}
.au-pub-page input::-moz-placeholder,
.au-pub-page textarea::-moz-placeholder {
    color: var(--gray-700);
    opacity: 1;
}
.au-pub-page input:-ms-input-placeholder,
.au-pub-page textarea:-ms-input-placeholder {
    color: var(--gray-700);
    opacity: 1;
}
.au-pub-page input::-ms-input-placeholder,
.au-pub-page textarea::-ms-input-placeholder {
    color: var(--gray-700);
    opacity: 1;
}
.au-pub-page select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1L7 7L13 1' stroke='%2336404a' stroke-width='1.8'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 42px;
}
.au-pub-page select option[disabled] { color: var(--gray-700); }
.au-pub-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
.au-pub-span-2 { grid-column: span 2; }
.au-pub-hint { font-size: 13.5px; color: var(--gray-700); margin-top: 7px; line-height: 1.5; }
.au-pub-error-text { font-size: 13.5px; color: #c53030; margin-top: 7px; }
.au-pub-check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--gray-550);
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.au-pub-check:hover { border-color: var(--brand-blue-ink); background: #f5f9fd; }
.au-pub-check input {
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    flex: none;
    accent-color: var(--brand-blue-ink);
}
.au-pub-check label { font-size: 15.5px; color: #1f2429; cursor: pointer; margin: 0; font-weight: 400; }
.au-pub-check small { display: block; color: var(--gray-700); font-size: 13.5px; }
.au-pub-check input[type="radio"] { border-radius: 50%; }
.au-pub-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ============ Buttons ============ */
.au-pub-btn {
    display: inline-block;
    padding: 15px 34px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.au-pub-page a.au-pub-btn:hover { text-decoration: none; }
.au-pub-btn--primary { background: var(--brand-blue-deep); border-color: var(--brand-blue-deep); color: #fff; }
.au-pub-btn--primary:hover { background: var(--brand-teal-deep); border-color: var(--brand-teal-deep); color: #fff; }
.au-pub-btn--dark { background: #36404a; border-color: #36404a; color: #fff; }
.au-pub-btn--dark:hover { background: #4a545f; border-color: #4a545f; color: #fff; }
.au-pub-btn--outline { background: transparent; border-color: var(--brand-blue-ink); color: var(--brand-blue-ink); }
.au-pub-btn--outline:hover { background: var(--brand-blue-ink); border-color: var(--brand-blue-ink); color: #fff; }
.au-pub-btn--light { background: #fff; border-color: #fff; color: var(--brand-blue-ink); }
.au-pub-btn--light:hover { background: transparent; color: #fff; }
.au-pub-btn--ghost { background: transparent; border-color: transparent; color: var(--brand-blue-ink); padding-left: 8px; padding-right: 8px; }
.au-pub-btn--ghost:hover { color: var(--brand-teal-deep); text-decoration: underline; }
.au-pub-btn--block { display: block; width: 100%; }
/* Links styled as buttons.
   `.au-pub-page a` scores (0,1,1) and the button modifiers only (0,1,0), so
   for an <a> the generic link colour always won: a primary button rendered its
   own label in its own background colour (invisible), and the light button on
   the dark card dropped to 1.92:1. Re-assert each variant at (0,2,1)+, in
   every state, so anchors and <button>s look identical. */
.au-pub-page a.au-pub-btn { color: #fff; }
.au-pub-page a.au-pub-btn--outline,
.au-pub-page a.au-pub-btn--ghost,
.au-pub-page a.au-pub-btn--light { color: var(--brand-blue-ink); }
.au-pub-page a.au-pub-btn--dark { color: #fff; }
.au-pub-page a.au-pub-btn--primary:hover,
.au-pub-page a.au-pub-btn--dark:hover,
.au-pub-page a.au-pub-btn--outline:hover,
.au-pub-page a.au-pub-btn--light:hover { color: #fff; }
.au-pub-page a.au-pub-btn--ghost:hover { color: var(--brand-teal-deep); }
.au-pub-page a.au-pub-btn:disabled,
.au-pub-page a.au-pub-btn[disabled] { color: var(--gray-700); }
.au-pub-btn--sm { padding: 10px 22px; font-size: 14.5px; }
.au-pub-btn:disabled, .au-pub-btn[disabled] {
    background: var(--gray-300); border-color: var(--gray-300);
    color: var(--gray-700); cursor: default; opacity: 1;
}
/* Keyboard focus must not rely on colour alone. */
.au-pub-btn:focus-visible { outline: 3px solid var(--brand-blue-ink); outline-offset: 2px; }
.au-pub-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.au-pub-actions--between { justify-content: space-between; }

/* ============ Alerts ============ */
.au-pub-alert {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 24px;
    border: 1px solid transparent;
    border-left-width: 4px;
}
.au-pub-alert ul { margin: 6px 0 0; padding-left: 20px; }
.au-pub-alert li + li { margin-top: 3px; }
.au-pub-alert--error { background: #fdecea; border-color: #f5c6c2; border-left-color: #e53e3e; color: #9b2c2c; }
.au-pub-alert--success { background: #e6f4ea; border-color: #b7e0c3; border-left-color: #2e7d32; color: #1b5e20; }
.au-pub-alert--info { background: #e9f2fc; border-color: #bcd7f5; border-left-color: #3a8dde; color: #1a4d8f; }

/* ============ Steps indicator ============ */
.au-pub-steps {
    display: flex;
    gap: 10px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}
.au-pub-steps li {
    flex: 1 1 120px;
    font-size: 13.5px;
    color: var(--gray-700);
    padding-top: 10px;
    border-top: 3px solid var(--gray-550);
    line-height: 1.4;
}
.au-pub-steps li strong { display: block; font-size: 14.5px; }
.au-pub-steps li.is-done { color: var(--brand-blue-ink); border-top-color: var(--brand-blue-ink); }
.au-pub-steps li.is-current { color: #1f2429; border-top-color: var(--brand-blue-deep); }
.au-pub-steps li.is-current strong { color: #1f2429; }

/* ============ Tables / definition lists ============ */
.au-pub-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.au-pub-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.au-pub-table th {
    text-align: left;
    font-weight: 700;
    color: #36404a;
    padding: 12px 14px;
    border-bottom: 2px solid var(--gray-550);
    background: #f8f9fa;
    white-space: nowrap;
}
.au-pub-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-550);
    color: #1f2429;
    vertical-align: top;
    overflow-wrap: break-word;
}
/* Alternating rows: readable without relying on a hairline alone. */
.au-pub-table tbody tr:nth-child(even) td { background: #f4f6f8; }
.au-pub-table tbody tr:hover td { background: #e8f1fb; }
.au-pub-table .num { text-align: right; white-space: nowrap; }
.au-pub-dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 20px; font-size: 15.5px; margin: 0; }
.au-pub-dl dt { color: var(--gray-700); }
.au-pub-dl dd { margin: 0; color: #1f2429; font-weight: 500; }

/* ============ Estimate result ============ */
.au-pub-range {
    font-family: "Times LT Roman", "Times LT", Georgia, serif;
    font-size: 46px;
    line-height: 1.1;
    color: #36404a;
    margin: 6px 0 4px;
}
.au-pub-range-sub { color: var(--gray-700); font-size: 15.5px; margin: 0 0 18px; }
.au-pub-lines { border-top: 1px solid var(--gray-550); margin-top: 8px; }
.au-pub-lines .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;          /* long labels wrap instead of overflowing */
    gap: 6px 16px;
    padding: 11px 6px;
    border-bottom: 1px solid var(--gray-550);
    font-size: 15.5px;
}
.au-pub-lines .row:hover { background: #f4f6f8; }
.au-pub-lines .row:last-child { border-bottom: 0; }
.au-pub-lines .row span:first-child { color: #36404a; }
.au-pub-lines .row .num { font-weight: 600; white-space: nowrap; text-align: right; margin-left: auto; }

/* ============ Radio cards (deposit choice, service picker) ============ */
.au-pub-radio-card {
    display: block;
    border: 2px solid var(--gray-550);
    border-radius: 8px;
    padding: 18px 20px 18px 52px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin-bottom: 12px;
}
.au-pub-radio-card:hover { border-color: var(--brand-blue-ink); background: #f5f9fd; }
.au-pub-radio-card.is-selected { border-color: var(--brand-blue-deep); background: #f0f6fd; }
.au-pub-radio-card input {
    position: absolute;
    left: 18px;
    top: 21px;
    width: 20px;
    height: 20px;
    accent-color: var(--brand-blue-ink);
    margin: 0;
}
.au-pub-radio-card .rc-title { font-weight: 700; font-size: 16.5px; color: #1f2429; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.au-pub-radio-card .rc-desc { font-size: 14.5px; color: #495057; margin-top: 5px; line-height: 1.55; }
.au-pub-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 11px;
    border-radius: 999px;
    line-height: 1.6;
}
.au-pub-badge--teal { background: var(--brand-teal-deep); color: #fff; }
.au-pub-badge--blue { background: var(--brand-blue-deep); color: #fff; }
/* Orange is a light hue: dark text keeps the badge bright and readable
   (6.33:1, vs 2.47:1 for white on orange). */
.au-pub-badge--orange { background: #ff8300; color: #1f2429; }
.au-pub-badge--grey { background: #e9ecef; color: #495057; }
.au-pub-badge--green { background: #2e7d32; color: #fff; }

/* ============ Quote forms (home / contact / solutions) ============ */
.au-pub-quote input[type="text"],
.au-pub-quote input[type="email"],
.au-pub-quote input[type="tel"],
.au-pub-quote select,
.au-pub-quote textarea {
    font-family: "FreightSans", "Freight Sans", Arial, sans-serif;
}

/* Contact-page quote form: light fields on the brand-blue panel. Labels must
   be white to read on blue; fields carry explicit dark text on white with
   readable placeholders (the theme defaults — dark text variables that never
   resolved plus white-for-dark-background placeholders — left this form with
   near-invisible labels and placeholder text). */
#contactQuoteForm .form-group { margin-bottom: 2px; }
#contactQuoteForm label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    font-family: "FreightSans", "Freight Sans", Arial, sans-serif;
}
#contactQuoteForm label.required::after {
    content: " *";
    color: #ffd166;
    font-weight: 700;
}
#contactQuoteForm input[type="text"],
#contactQuoteForm input[type="email"],
#contactQuoteForm input[type="tel"],
#contactQuoteForm select,
#contactQuoteForm textarea {
    font-family: "FreightSans", "Freight Sans", Arial, sans-serif;
    font-size: 16px;
    color: #1f2429;
    background-color: #fff;
}
#contactQuoteForm input:focus,
#contactQuoteForm select:focus,
#contactQuoteForm textarea:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
#contactQuoteForm input::placeholder,
#contactQuoteForm textarea::placeholder,
#contactQuoteForm input::-webkit-input-placeholder,
#contactQuoteForm textarea::-webkit-input-placeholder,
#contactQuoteForm input::-moz-placeholder,
#contactQuoteForm textarea::-moz-placeholder,
#contactQuoteForm input:-ms-input-placeholder,
#contactQuoteForm textarea:-ms-input-placeholder {
    color: var(--gray-700);
    opacity: 1;
}
#contactQuoteForm select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'><path d='M1 1L7 7L13 1' stroke='%2336404a' stroke-width='1.8'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 42px;
}
#contactQuoteForm select option { color: #1f2429; background: #fff; }
/* Light fields on white cards: readable grey placeholders (theme default is white). */
.au-pub-quote--light input::placeholder,
.au-pub-quote--light textarea::placeholder,
.au-pub-quote--light input::-webkit-input-placeholder,
.au-pub-quote--light textarea::-webkit-input-placeholder,
.au-pub-quote--light input::-moz-placeholder,
.au-pub-quote--light textarea::-moz-placeholder {
    color: var(--gray-700);
    opacity: 1;
}

/* ============ Preferred-days calendar ============ */
.au-pub-cal {
    border: 1px solid var(--gray-550);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-top: 4px;
}
.au-pub-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #36404a;
    color: #fff;
}
.au-pub-cal-title { font-size: 16px; font-weight: 700; margin: 0; }
.au-pub-cal-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    border-radius: 4px;
    padding: 6px 13px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.2;
}
.au-pub-cal-nav:hover { background: rgba(255, 255, 255, 0.16); }
.au-pub-cal-nav:disabled { opacity: 0.4; cursor: default; background: transparent; }
.au-pub-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    padding: 12px;
}
.au-pub-cal-dow {
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 0;
}
.au-pub-cal-day {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 6px;
    padding: 9px 0;
    font-size: 14.5px;
    font-family: inherit;
    color: #1f2429;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}
.au-pub-cal-day:hover { border-color: var(--brand-blue-ink); background: #f0f6fd; }
.au-pub-cal-day.is-today { font-weight: 700; color: var(--brand-blue-ink); }
.au-pub-cal-day.is-selected { background: var(--brand-blue-deep); border-color: var(--brand-blue-deep); color: #fff; font-weight: 700; }
.au-pub-cal-day.is-selected:hover { background: #14578c; border-color: #14578c; }
/* Unavailable days stay legible (opacity alone dropped them to ~1.1:1). */
.au-pub-cal-day:disabled { color: var(--gray-550); cursor: default; background: transparent; border-color: transparent; text-decoration: line-through; }
.au-pub-cal-foot {
    padding: 10px 14px;
    border-top: 1px solid var(--gray-550);
    font-size: 13px;
    color: var(--gray-700);
    background: #f8f9fa;
}
.au-pub-cal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.au-pub-cal-chips:empty { display: none; }
.au-pub-cal-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e9f2fc;
    border: 1px solid #bcd7f5;
    color: #1a4d8f;
    border-radius: 999px;
    padding: 5px 8px 5px 14px;
    font-size: 13.5px;
    font-weight: 600;
}
.au-pub-cal-chip button {
    border: 0;
    background: var(--brand-blue-deep);
    color: #fff;
    border-radius: 999px;
    width: 21px;
    height: 21px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.au-pub-cal-chip button:hover { background: #c53030; }

/* ============ Invoice ============ */
.au-pub-invoice {
    background: #fff;
    border: 1px solid var(--gray-550);
    border-radius: 12px;
    padding: 48px 52px;
    box-shadow: 0 6px 28px rgba(31, 36, 41, 0.07);
}
.au-pub-invoice-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.au-pub-invoice-brand { font-family: "Times LT Roman", "Times LT", Georgia, serif; font-size: 26px; color: #36404a; margin: 0 0 4px; }
.au-pub-invoice-meta { text-align: right; font-size: 14.5px; color: #495057; }
.au-pub-invoice-meta strong { color: #1f2429; font-size: 20px; display: block; }
.au-pub-invoice .au-pub-table th { background: #36404a; color: #fff; border-bottom: 0; }
.au-pub-invoice-total td { font-weight: 700; font-size: 17px; color: #1f2429; border-bottom: 0; }
.au-pub-invoice-foot { margin-top: 28px; font-size: 14px; color: var(--gray-700); border-top: 1px solid var(--gray-550); padding-top: 18px; }

/* The booking flow keeps its own au-book shell — this only pushes it clear of
   the absolute site header (same offsets as the public hero). Higher
   specificity than booking.css so it wins regardless of load order. */
main.au-book {
    padding-top: 170px;
}
@media (max-width: 1024px) {
    main.au-book { padding-top: 150px; }
}
@media (max-width: 768px) {
    main.au-book { padding-top: 128px; }
}

/* ============ Misc ============ */
.au-pub-muted { color: var(--gray-700); }
.au-pub-small { font-size: 14px; }
.au-pub-mt { margin-top: 18px; }
.au-pub-mb0 { margin-bottom: 0; }
.au-pub-center { text-align: center; }
.au-pub-kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--gray-550); font-size: 15.5px; }
.au-pub-kv:last-child { border-bottom: 0; }
.au-pub-kv .k { color: var(--gray-700); }
.au-pub-kv .v { font-weight: 600; color: #1f2429; text-align: right; }
.au-pub-divider { border: 0; border-top: 1px solid var(--gray-550); margin: 26px 0; }
.au-pub-back { display: inline-block; margin-bottom: 18px; font-size: 15px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .au-pub-hero { padding-top: 160px; }
    .au-pub-hero h1 { font-size: 44px; }
    .au-pub-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .au-pub-hero { padding: 138px 0 44px; }
    .au-pub-hero h1 { font-size: 36px; }
    .au-pub-lead { font-size: 16.5px; }
    .au-pub-body { padding: 36px 18px 64px; }
    .au-pub-card { padding: 24px 20px; }
    .au-pub-form-grid { grid-template-columns: 1fr; }
    .au-pub-span-2 { grid-column: span 1; }
    .au-pub-range { font-size: 36px; }
    .au-pub-dl { grid-template-columns: 1fr; gap: 2px 0; }
    .au-pub-dl dd { margin-bottom: 10px; }
    .au-pub-invoice { padding: 28px 20px; }
    .au-pub-invoice-head { flex-direction: column; }
    .au-pub-invoice-meta { text-align: left; }
    .au-pub-radio-card { padding-right: 14px; }
    /* Tables scroll horizontally (.au-pub-table-wrap); let headings wrap so a
       long column name does not force an over-wide min-width. */
    .au-pub-table th { white-space: normal; }
    .au-pub-table th, .au-pub-table td { padding: 10px; }
    .au-pub-lines .row { font-size: 15px; }
}
@media print {
    .au-pub-hero, .au-pub-hero-actions, .no-print { display: none !important; }
    .au-pub-body { padding: 0; max-width: none; }
    .au-pub-invoice { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
}

/* ============================================================
   Header on pages with no hero behind it
   ------------------------------------------------------------
   .page-header is absolutely positioned over whatever sits at the top of the
   page and paints its nav in --color-white, which works while a dark hero
   image is behind it. The booking + account flows have no hero: they open on
   the light page body, so the white menu, the white rule under
   .page-header_top and the white logo mark all vanished into the background
   and the bar read as empty glass. Those pages opt in with
   $GLOBALS['au_header_solid'], which gives the bar the theme's limed-spruce
   fill so the white nav reads at 10.56:1 (see tools/contrast-audit.py).
   ============================================================ */
/* The theme's own substrate element is left alone: jquery.main566b.js toggles
   .page-header_substrate--visible for the mobile-menu sheet (height:100vw), so
   borrowing it here would make the bar lose its fill every time the menu
   closed. The bar carries its own fill instead. */
.page-header--solid {
    background-color: var(--color-limed-spruce, #36404a);
}
.page-header--solid .page-header_top {
    border-bottom-color: rgba(255, 255, 255, 0.22);
}
.page-header--solid .page-header_content {
    padding: 16px 0;
}

/* ============================================================
   Password visibility toggle
   ------------------------------------------------------------
   Button markup and behaviour come from assets/js/password-toggle.js, which
   wraps every password input in a .au-pw-wrap span at runtime.
   ============================================================ */
.au-pw-wrap {
    position: relative;
    display: block;
}
.au-pub-page .au-pw-wrap > input[type="password"],
.au-pub-page .au-pw-wrap > input[type="text"],
.au-pub-page .au-pw-wrap > input,
.au-pw-wrap > input {
    padding-right: 54px;
}
.au-pw-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #5a6470;
    line-height: 1;
    cursor: pointer;
    -webkit-transition: color 0.15s ease, background-color 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.au-pw-toggle:hover {
    color: var(--brand-blue-ink, #1c6cb0);
    background: rgba(28, 108, 176, 0.10);
}
.au-pw-toggle:focus-visible {
    outline: 2px solid var(--brand-blue-ink, #1c6cb0);
    outline-offset: 1px;
}
.au-pw-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* ============================================================
   Theme button fills
   ------------------------------------------------------------
   .button sets its label to --color-white, but the fills it switches between
   are far too light for white text: --color-brand #3a8dde is 3.47:1 and the
   --color-puerto-rico #3bbfad used by every hover state is 2.10:1, so on
   hover the label all but disappeared. These are darker steps of the same two
   brand hues — white reads 6.39:1 and 5.03:1 on them.
   ============================================================ */
.button--primary,
.button--bordered:hover {
    background-color: #17629f;
}
.button--primary:hover,
.button--puerto-rico,
.button--puerto-rico:hover,
.button--bordered-puerto-rico:hover,
.button--bordered-dark:hover,
.button--dark:hover,
.button--hover-brand:hover {
    background-color: #0f7d6e;
    border-color: #0f7d6e;
}

/* ============================================================
   Header stays on one line
   ------------------------------------------------------------
   Two things pushed the bar onto extra rows:

   1. The three header buttons shipped with a mangled class list
      ("button--fsize-smbutton--size-s" — one class, matching no rule), so
      every button rendered at the full .button size: 18px type and 40px of
      side padding each. Fixed in the markup; the rules below then size them
      to fit the bar.
   2. Both rows are free to wrap (.sub-nav and .main-menu_list are
      flex-wrap: wrap), so once the row outgrew the container the buttons
      dropped to a second line instead of tightening up.

   Above the mobile-menu breakpoint (1050px, where the theme switches to its
   stacked menu) both rows are now nowrap and shrink in steps instead.
   ============================================================ */
@media (min-width: 1051px) {
    .page-header .sub-nav {
        -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
    }
    .page-header .sub-nav_link,
    .page-header .main-menu_link,
    .page-header .main-menu_button {
        white-space: nowrap;
    }
    .page-header .main-menu_container {
        gap: 20px;
    }
    .page-header .main-menu_list,
    .page-header .main-menu_links {
        -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
    }
    .page-header .main-menu_link {
        padding: 18px 16px;
        font-size: 16px;
        letter-spacing: 0.04em;
    }
    .page-header .main-menu_button {
        padding: 13px 20px;
        font-size: 15px;
    }
}
@media (min-width: 1051px) and (max-width: 1400px) {
    .page-header .main-menu_container { gap: 14px; }
    .page-header .main-menu_link { padding: 18px 12px; font-size: 15px; }
    .page-header .main-menu_button { padding: 12px 16px; font-size: 14px; }
    .page-header .sub-nav { -webkit-column-gap: 14px; -moz-column-gap: 14px; column-gap: 14px; }
    .page-header .sub-nav_link { font-size: 11.5px; }
}
@media (min-width: 1051px) and (max-width: 1200px) {
    .page-header .main-menu_container { gap: 10px; }
    .page-header .main-menu_link { padding: 18px 9px; font-size: 14px; letter-spacing: 0.02em; }
    .page-header .main-menu_button { padding: 11px 12px; font-size: 13px; }
    .page-header .sub-nav { -webkit-column-gap: 10px; -moz-column-gap: 10px; column-gap: 10px; }
    .page-header .sub-nav_link { font-size: 11px; }
}
