/* =========================================================
   Fakieh Aquarium — Almosafer activity checkout clone
   Mobile first / hand-built CSS
   ========================================================= */

@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-latin.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ink: rgba(0, 0, 0, .87);
    --ink-soft: #333333;
    --muted: #66797f;
    --teal: #0c9ab0;
    --teal-dark: #087e90;
    --teal-pale: #eaf7f9;
    --red: #ef4550;
    --red-dark: #d93742;
    --green: #3d9b40;
    --green-dark: #318234;
    --border: #d8dcde;
    --line: #eff1f2;
    --bar: #f7f9fa;
    --white: #ffffff;
    --shadow: 0 -2px 14px rgba(17, 39, 46, .08);
    --radius-card: 12px;
    --app-width: 480px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background: #e9eef0;
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.icon { display: inline-block; flex: none; vertical-align: middle; }
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.app-shell {
    position: relative;
    width: 100%;
    max-width: var(--app-width);
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--white);
    overflow: clip;
}

@media (min-width: 560px) {
    .app-shell { box-shadow: 0 0 48px rgba(12, 42, 52, .16); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    text-align: center;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--teal { background: var(--teal); color: #fff; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--teal); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after {
    content: "";
    width: 17px; height: 17px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   ACTIVITY DETAILS
   ========================================================= */
.hero {
    position: relative;
    height: 100vw;
    max-height: 480px;
    min-height: 340px;
    overflow: hidden;
    background: #07394c;
    touch-action: pan-y;
}
.hero__track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .30) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .10) 100%);
}
.hero__actions {
    position: absolute;
    z-index: 3;
    top: max(16px, env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -8px;
    color: #fff;
    border-radius: 50%;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .28));
}
.hero-icon:active { background: rgba(0, 0, 0, .18); }
.hero__dots {
    position: absolute;
    z-index: 3;
    bottom: 52px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
}
.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .48);
    transition: background-color .18s ease, transform .18s ease;
}
.hero-dot.is-active { background: #fff; transform: scale(1.06); }

.sheet {
    position: relative;
    z-index: 4;
    margin-top: -25px;
    padding: 16px 16px 40px;
    background: var(--white);
    border-radius: 25px 25px 0 0;
}
.activity-title {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}
.quick-facts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 16px;
}
.quick-fact {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    font-size: 14px;
    line-height: 20px;
}
.quick-fact--instant { min-height: 28px; }
.quick-fact .icon { color: var(--ink); }
.quick-fact--instant .icon { color: #fe9c09; }

.map-card { display: block; }
.map-card__frame {
    position: relative;
    height: 144px;
    overflow: hidden;
    border-radius: 13px;
    background: #d9edf2;
}
.map-card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.map-card__address {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}
.map-card__pin {
    position: absolute;
    left: 50%;
    top: 42%;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    color: var(--teal);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .2);
}

.section-title {
    color: var(--ink);
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}
.about-copy {
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
    color: var(--ink);
}
.highlights-block { margin-top: 0; }
.highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.highlights li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
}
.highlights .icon {
    margin-top: 1px;
    color: var(--ink);
}

.packages-section {
    margin: 51px -16px 0;
    padding: 16px 16px 0;
    border-top: 1px solid var(--line);
}
.packages-section .section-title { margin-bottom: 20px; }

.package-card {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: #fff;
}
.package-card + .package-card { margin-top: 20px; }
.package-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.package-card__name {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}
.package-card__price {
    flex: none;
    text-align: right;
}
.package-card__amount {
    color: var(--teal);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    white-space: nowrap;
}
.package-card__vat {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
}
.package-card__rule {
    height: 1px;
    margin: 16px 0 14px;
    background: var(--line);
}
.package-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    font-size: 14px;
    line-height: 20px;
}
.package-feature + .package-feature { margin-top: 10px; }
.package-feature img,
.package-feature .icon {
    width: 24px;
    height: 24px;
    flex: none;
}
.package-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.package-card__more {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 24px;
    color: var(--teal);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    white-space: nowrap;
}
.package-card__select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    color: #fff;
    background: var(--red);
    border-radius: 100px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .16s ease;
}
.package-card__select:hover { background: var(--red-dark); }

.bottom-bar {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: var(--app-width);
    min-height: 80px;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: var(--bar);
    transform: translateX(-50%);
    box-shadow: var(--shadow);
}
.bottom-bar__price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 72px;
}
.bottom-bar__amount {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}
.bottom-bar__note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
}
.bottom-bar .btn { flex: none; }
.bottom-spacer { height: 88px; }

/* ---------- Details modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}
.modal.is-open { display: block; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .48);
    animation: fade-in .18s ease both;
}
.modal__panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--app-width);
    max-height: 88dvh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    transform: translateX(-50%);
    animation: sheet-up .24s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes sheet-up { from { transform: translate(-50%, 24px); opacity: .5; } }
@keyframes fade-in { from { opacity: 0; } }
.modal__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 16px 56px;
    border-bottom: 1px solid var(--line);
}
.modal__title {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    text-align: center;
}
.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--ink);
    border-radius: 50%;
}
.modal__close:hover { background: #f3f5f6; }
.modal__body {
    overflow-y: auto;
    padding: 16px 16px max(28px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
}
.detail-group + .detail-group { margin-top: 24px; }
.detail-group h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}
.detail-row + .detail-row { margin-top: 14px; }
.detail-row h4 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}
.detail-row li {
    position: relative;
    padding-left: 14px;
    color: var(--ink);
    font-size: 14px;
    line-height: 22px;
}
.detail-row li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted);
}
.detail-row li + li { margin-top: 3px; }

/* =========================================================
   FLOW PAGES (availability / contact / payment)
   ========================================================= */
.flow-page {
    position: relative;
    width: 100%;
    max-width: var(--app-width);
    min-height: 100dvh;
    margin: 0 auto;
    padding-bottom: 112px;
    background: #fff;
}
@media (min-width: 560px) {
    .flow-page { box-shadow: 0 0 48px rgba(12, 42, 52, .16); }
}
.flow-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    min-height: 56px;
    padding: 4px 16px;
    background: #fff;
}
.flow-header--border { border-bottom: 0; }
.flow-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: -8px;
    color: var(--teal);
    border-radius: 50%;
}
.flow-back:hover { background: var(--teal-pale); }
.flow-title {
    color: var(--ink);
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    text-align: center;
}
.flow-header__spacer { width: 40px; }
.flow-body { padding: 16px; }
.flow-section-title {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}
.flow-bar {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: var(--app-width);
    min-height: 80px;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    transform: translateX(-50%);
}
.flow-bar--grey { background: var(--bar); border-top: 0; }
.flow-bar__price { display: flex; flex-direction: column; justify-content: center; }
.flow-bar__amount {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}
.flow-bar__note {
    color: var(--teal);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-decoration: none;
}
.flow-bar .btn { flex: none; }

/* ---------- Calendar ---------- */
.calendar-panel { padding: 12px 16px 0; }
.month-nav {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 44px;
    margin-bottom: 16px;
}
.month-nav__btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ink-soft);
    border-radius: 50%;
}
.month-nav__btn:hover { background: #f4f6f7; }
.month-nav__btn[disabled] { opacity: .25; cursor: default; }
.month-nav__label {
    color: var(--ink);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    text-align: center;
}
.calendar-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-bottom: 14px;
    color: var(--muted);
    background: #f1f3f4;
    border-radius: 22px;
    font-size: 14px;
    line-height: 20px;
}
.calendar-hint.is-selected {
    color: var(--teal);
    background: var(--teal-pale);
    font-weight: 600;
}
.weekdays, .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.weekdays {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
}
.weekdays span {
    color: var(--muted);
    font-size: 12px;
    line-height: 24px;
    text-align: center;
}
.calendar-grid { row-gap: 1px; padding-top: 4px; }
.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    height: 54px;
    border-radius: 7px;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    transition: background-color .15s ease, color .15s ease;
}
.calendar-day__price {
    color: var(--muted);
    font-size: 11px;
    line-height: 14px;
}
.calendar-day:hover:not(:disabled) { background: #f2f6f7; }
.calendar-day.is-selected {
    color: #fff;
    background: var(--teal);
}
.calendar-day.is-selected .calendar-day__price { color: rgba(255, 255, 255, .92); }
.calendar-day:disabled {
    color: #b9c1c4;
    background: transparent;
    cursor: default;
}
.calendar-day:disabled .calendar-day__price { color: #c9d0d3; }
.calendar-day.is-empty { visibility: hidden; }
.calendar-day.is-disabled { color: #b9c1c4; background: transparent; cursor: default; }
.calendar-day.is-disabled .calendar-day__price { color: #c9d0d3; }
.calendar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.currency-label {
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: .04em;
}
.selected-day-title {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}
.pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.pax-row:first-of-type { padding-top: 2px; }
.pax-copy { min-width: 0; }
.pax-copy h3 {
    margin: 0 0 2px;
    color: var(--ink);
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}
.pax-copy p {
    color: var(--ink);
    font-size: 14px;
    line-height: 20px;
}
.pax-copy p span { color: var(--muted); }
.pax-stepper {
    display: flex;
    align-items: center;
    gap: 14px;
}
.stepper-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 50%;
    background: #fff;
    transition: background-color .15s ease, opacity .15s ease;
}
.stepper-btn:hover { background: var(--teal-pale); }
.stepper-btn[disabled] {
    color: #c2c9cc;
    border-color: #dfe3e5;
    background: #fff;
    cursor: default;
}
.pax-value {
    min-width: 20px;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}
.vat-note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}
.currency-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .04em;
}

/* ---------- Contact page ---------- */
.booking-summary {
    display: flex;
    min-height: 124px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: #fff;
}
.booking-summary__image {
    flex: none;
    width: 124px;
    background: #e9eef0;
}
.booking-summary__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.booking-summary__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 16px;
}
.booking-summary__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 3px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.booking-summary__package {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
}
.booking-summary__date {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-size: 12px;
    line-height: 16px;
}
.booking-summary__date .icon { width: 16px; height: 16px; }
.booking-summary__date .icon { color: #4e686f; }

.signin-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: #fff;
}
.avatar-art {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: #4e686f;
    background: #f0fafb;
    border-radius: 50%;
}
.avatar-art .icon { width: 38px; height: 38px; }
.signin-card p {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}
.signin-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--teal);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}
.contact-heading {
    margin: 16px 0 20px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}
.title-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.title-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 8px;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.title-pill:hover { border-color: #a9b2b5; }
.title-pill.is-selected {
    color: var(--teal);
    border-color: var(--teal);
    background: #f2fbfc;
    box-shadow: inset 0 0 0 1px var(--teal);
    font-weight: 600;
}
.field-stack { display: flex; flex-direction: column; gap: 16px; }
.field {
    position: relative;
    height: 56px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}
.field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.field input {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 20px 15px 6px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    line-height: 22px;
}
.field label {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 22px;
    pointer-events: none;
    transition: top .13s ease, font-size .13s ease, color .13s ease;
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field.has-value label {
    top: 6px;
    font-size: 12px;
    line-height: 16px;
    color: var(--muted);
}
.field input:focus ~ label { color: var(--teal); }
.field.is-invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field-error {
    display: none;
    margin: 5px 0 0;
    color: var(--red);
    font-size: 12px;
    line-height: 16px;
}
.field.is-invalid + .field-error { display: block; }
.phone-row {
    display: grid;
    grid-template-columns: 103px 1fr;
    gap: 20px;
    align-items: start;
}
.select-field {
    position: relative;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 16px 12px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}
.select-field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.select-field span.select-label {
    position: absolute;
    top: 6px;
    left: 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
}
.select-field select {
    width: 100%;
    padding: 0 18px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    line-height: 22px;
    appearance: none;
}
.select-field .icon {
    position: absolute;
    right: 10px;
    bottom: 16px;
    color: var(--teal);
    pointer-events: none;
}
.marketing-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    color: var(--ink);
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}
.marketing-check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    accent-color: var(--teal);
}
.contact-help {
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}
.flow-bar__amount--lg { font-size: 18px; line-height: 24px; }
.flow-bar__vat { color: var(--muted); font-size: 12px; line-height: 16px; }
.flow-error {
    display: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    color: #8f2027;
    background: #fff0f1;
    border: 1px solid #f4c5c9;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
}
.flow-error.is-visible { display: block; }

/* ---------- Payment page ---------- */
.pay-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 98px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}
.pay-summary__thumb {
    flex: none;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 50%;
    background: #e9eef0;
}
.pay-summary__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pay-summary__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.pay-summary__title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    margin: 0 0 2px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pay-summary__meta {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pay-summary__chevron { flex: none; display: inline-flex; color: var(--teal); }
.pay-with {
    margin: 28px 0 14px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}
.pay-method {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    width: 78px;
    height: 78px;
    padding: 12px;
    color: var(--teal);
    background: var(--teal-pale);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}
.pay-method.is-selected { border-color: transparent; }
.pay-method .icon { color: #4e686f; }
.card-box {
    overflow: hidden;
    margin-top: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}
.card-line {
    position: relative;
    display: flex;
    align-items: center;
    height: 56px;
}
.card-line + .card-line { border-top: 1px solid var(--border); }
.card-line input {
    width: 100%;
    height: 100%;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    line-height: 20px;
}
.card-line input::placeholder { color: var(--muted); opacity: 1; }
.card-line:focus-within { box-shadow: inset 0 0 0 1px var(--teal); border-radius: 4px; }
.card-line.is-invalid { box-shadow: inset 0 0 0 1px var(--red); }
.card-line__split { display: grid; grid-template-columns: 1fr 1fr; }
.card-line__split .card-line { height: 56px; }
.card-line__split .card-line + .card-line {
    border-top: 0;
    border-left: 1px solid var(--border);
}
.card-line__icon {
    position: absolute;
    right: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 50%;
    background: #fff;
}
.card-line__icon .icon { width: 18px; height: 18px; }
.card-errors {
    display: none;
    margin: 8px 0 0;
    color: var(--red);
    font-size: 12px;
    line-height: 17px;
}
.card-errors.is-visible { display: block; }
.cvv-hint { display: none; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 17px; }

.voucher-title {
    margin: 32px 0 14px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}
.voucher-box {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: #fff;
}
.voucher-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 10px 16px;
}
.voucher-row + .voucher-row { border-top: 1px solid var(--border); }
.voucher-row__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    color: #4e686f;
}
.voucher-row__body { flex: 1; min-width: 0; }
.voucher-row__title { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 20px; }
.voucher-row__sub { margin: 1px 0 0; color: var(--teal); font-size: 12px; line-height: 16px; font-weight: 600; }
.voucher-row__action {
    color: var(--teal);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    white-space: nowrap;
}
.voucher-input {
    display: none;
    gap: 8px;
    padding: 0 16px 14px;
}
.voucher-input.is-open { display: flex; }
.voucher-input input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: 0;
}
.voucher-input input:focus { border-color: var(--teal); }
.voucher-input button {
    padding: 0 16px;
    color: #fff;
    background: var(--teal);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.legal-copy {
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
}
.legal-copy a { color: var(--teal); }
.pay-bar { border-top: 0; box-shadow: var(--shadow); }
.pay-bar__total { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink-soft); }
.pay-bar__breakdown { color: var(--teal); font-size: 16px; line-height: 24px; }
.pay-bar .btn { min-height: 56px; padding-left: 20px; padding-right: 20px; }
.pay-bar .icon { color: #fff; }

/* =========================================================
   SUCCESS
   ========================================================= */
.success-page {
    width: 100%;
    max-width: var(--app-width);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 0 112px;
    background: #fff;
}
.success-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 54px 24px 28px;
    text-align: center;
}
.success-check {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 20px;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(61, 155, 64, .25);
}
.success-check .icon { width: 38px; height: 38px; }
.success-hero h1 {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 22px;
    line-height: 32px;
    font-weight: 600;
}
.success-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 22px;
}
.success-body { padding: 0 16px; }
.reference-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--bar);
    border-radius: var(--radius-card);
}
.reference-card span { color: var(--muted); font-size: 13px; line-height: 18px; }
.reference-card strong { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 17px; line-height: 24px; letter-spacing: .02em; }
.reference-card__mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--green); background: #e7f4e8; border-radius: 50%; }
.ticket-card {
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}
.ticket-card__event { display: flex; gap: 14px; padding: 14px; }
.ticket-card__event img {
    flex: none;
    width: 74px;
    height: 74px;
    border-radius: 8px;
    object-fit: cover;
}
.ticket-card__event h2 { margin: 2px 0 4px; font-size: 16px; line-height: 24px; font-weight: 600; }
.ticket-card__event p { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.ticket-card__rows { border-top: 1px solid var(--line); padding: 14px; }
.ticket-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14px; line-height: 20px; }
.ticket-info-row span { color: var(--muted); }
.ticket-info-row strong { font-weight: 600; text-align: right; }
.success-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.success-actions .btn--ghost { border: 1px solid var(--border); }
.success-note {
    margin: 18px 4px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

/* =========================================================
   TOASTS / MISC
   ========================================================= */
.toast {
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: 100px;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    color: #fff;
    background: #223b43;
    border-radius: 10px;
    font-size: 14px;
    line-height: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
    transform: translateX(-50%);
    animation: toast-in .22s ease both;
}
.toast--error { background: #9f2b33; }
.toast--success { background: #2f7632; }
.toast.is-hidden { animation: toast-out .2s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 8px); } }

.notice {
    padding: 14px;
    border: 1px solid #f1d59b;
    background: #fff9eb;
    border-radius: 8px;
    color: #6c5014;
    font-size: 14px;
    line-height: 20px;
}

@media (min-width: 700px) {
    body { padding: 0; }
    .sheet { padding-left: 20px; padding-right: 20px; }
    .flow-body { padding-left: 20px; padding-right: 20px; }
    .calendar-panel { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
