/* Booking flow (5 steps) */
.flow-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding-bottom: 4px
}

.flow-steps button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 99px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap
}

.flow-steps i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eceeee;
    font-style: normal;
    font-size: .78rem
}

.flow-steps .on {
    border-color: var(--teal);
    color: var(--teal-dark)
}

.flow-steps .on i {
    background: var(--teal);
    color: #fff
}

.flow-steps .done i {
    background: #dcf1e6;
    color: #25704f
}

.flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start
}

.flow-main {
    position: relative;
    display: grid;
    grid-template-columns: 100%;
    align-items: start;
    overflow-x: hidden;
    overflow-x: clip;
    scroll-margin-top: 80px;
    min-width: 0;
}

.flow-step {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 100%;
    display: none;
    will-change: opacity, transform;
}

.flow-step.on {
    display: block;
}

/* Outgoing step */
.flow-step.is-leaving {
    display: block !important;
    pointer-events: none;
    z-index: 1;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

/* Incoming step */
.flow-step.is-entering {
    display: block !important;
    z-index: 2;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

/* Forward (Next): outgoing moves subtly left, incoming enters from right */
.is-forward .flow-step.is-leaving {
    opacity: 0;
    transform: translateX(-16px);
}

.is-forward .flow-step.is-entering-start {
    opacity: 0;
    transform: translateX(16px);
}

.is-forward .flow-step.is-entering-active {
    opacity: 1;
    transform: translateX(0);
}

/* Backward (Back): outgoing moves subtly right, incoming enters from left */
.is-backward .flow-step.is-leaving {
    opacity: 0;
    transform: translateX(16px);
}

.is-backward .flow-step.is-entering-start {
    opacity: 0;
    transform: translateX(-16px);
}

.is-backward .flow-step.is-entering-active {
    opacity: 1;
    transform: translateX(0);
}

.flow-step h2 {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin-bottom: 14px;
    outline: none;
}

.flow-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap
}

.flow-sum {
    position: sticky;
    top: 90px;
    min-width: 0;
}

.flow-sum h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px
}

.sum-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem
}

.sum-row span {
    color: var(--muted)
}

.sum-row b {
    text-align: right
}

.sum-box {
    background: #fbfaf7;
    border-radius: var(--radius);
    padding: 6px 16px
}

.vehicle-options {
    display: grid;
    gap: 12px
}

.vopt {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    background: #fff;
    transition: border-color var(--dur-2) var(--ease-std), background-color var(--dur-2) var(--ease-std), box-shadow var(--dur-2) var(--ease-std), transform var(--dur-1) var(--ease-spring);
}

.vopt input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.vopt:has(input:checked) {
    border-color: var(--teal);
    background: #f0faf9;
    box-shadow: 0 0 0 4px rgba(15, 139, 141, .1)
}

.vopt:has(input:focus-visible) {
    outline: 3px solid var(--gold);
    outline-offset: 2px
}

.vopt .ph {
    aspect-ratio: 214/88;
    border-radius: 10px
}

.vopt h4 {
    font-family: var(--serif);
    font-size: 1.05rem
}

.vopt-price {
    text-align: right;
    display: grid
}

.vopt-price b {
    color: var(--crimson);
    font-family: var(--serif)
}

.vopt-price small {
    color: var(--muted);
    font-size: .72rem
}

.vehicle-error {
    color: var(--crimson);
    font-size: .84rem;
    margin-top: 8px
}

/* Multi-capacity vehicle groups */
.vopt-group {
    display: block;
    cursor: default;
}

.vopt-group .vopt-main {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    border-radius: calc(var(--radius) - 2px);
    transition: background-color var(--dur-1) var(--ease-std);
}

.vopt-group .vopt-main:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.vopt.is-incompatible,
.vopt.is-unavailable {
    opacity: .5;
}

.vopt.is-unavailable {
    background: #f8faf9;
    cursor: not-allowed;
}

.vopt.is-unavailable .vopt-price b {
    color: var(--muted);
}

.vopt-capacities {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    animation: vcapFadeIn 180ms ease forwards;
}

@keyframes vcapFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.vopt-capacities-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.vopt-capacities-label {
    font-size: .80rem;
    font-weight: 700;
    color: var(--teal-dark, #0d5c5e);
}

.vopt-capacities-note {
    font-size: .72rem;
    color: var(--muted);
}

.vopt-capacities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vcap-option {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    cursor: pointer;
    text-align: center;
    transition: border-color var(--dur-1) var(--ease-std), background-color var(--dur-1) var(--ease-std), box-shadow var(--dur-1) var(--ease-std), color var(--dur-1) var(--ease-std), transform var(--dur-1) var(--ease-spring);
    min-height: 34px;
}

.vcap-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vcap-option .vcap-badge {
    font-weight: 600;
    font-size: .84rem;
    color: var(--ink);
    line-height: 1.2;
}

.vcap-option .vcap-rate {
    font-size: .78rem;
    font-weight: 600;
    color: var(--crimson);
}

.vcap-option .vcap-rate::before {
    content: '·';
    margin-right: 5px;
    opacity: .6;
}

/* Unselected hover: subtle teal tint, keep dark text */
.vcap-option:hover:not(.is-disabled):not(.is-selected):not(:has(input:checked)) {
    border-color: var(--teal);
    background: #f0faf9;
}

.vcap-option:hover:not(.is-disabled):not(.is-selected):not(:has(input:checked)) .vcap-badge {
    color: var(--ink);
}

.vcap-option:hover:not(.is-disabled):not(.is-selected):not(:has(input:checked)) .vcap-rate {
    color: var(--crimson);
}

.vcap-option:has(input:focus-visible) {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Selected state: solid teal background with white text */
.vcap-option:has(input:checked),
.vcap-option.is-selected {
    border-color: var(--teal);
    background: var(--teal);
    box-shadow: 0 1px 4px rgba(15, 139, 141, .25);
}

.vcap-option:has(input:checked) .vcap-badge,
.vcap-option.is-selected .vcap-badge {
    color: #fff;
}

.vcap-option:has(input:checked) .vcap-rate,
.vcap-option.is-selected .vcap-rate {
    color: #fff4d4;
}

/* Hover on already selected option: stays solid teal (darker teal), keeps white text */
.vcap-option:has(input:checked):hover:not(.is-disabled),
.vcap-option.is-selected:hover:not(.is-disabled) {
    border-color: var(--teal-dark, #0d5c5e) !important;
    background: var(--teal-dark, #0d5c5e) !important;
}

.vcap-option:has(input:checked):hover:not(.is-disabled) .vcap-badge,
.vcap-option.is-selected:hover:not(.is-disabled) .vcap-badge {
    color: #fff !important;
}

.vcap-option:has(input:checked):hover:not(.is-disabled) .vcap-rate,
.vcap-option.is-selected:hover:not(.is-disabled) .vcap-rate {
    color: #fff4d4 !important;
}

.vcap-option.is-disabled {
    opacity: .45;
    background: #f7f7f7;
    border-color: var(--line);
    cursor: not-allowed;
}

.vcap-option.is-disabled .vcap-rate {
    color: var(--muted);
}

.vcap-error-msg {
    margin-top: 6px;
    font-size: .80rem;
    color: var(--crimson);
    font-weight: 500;
}

/* Payment methods */
.pay-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.pay-method-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color var(--dur-2) var(--ease-std), background-color var(--dur-2) var(--ease-std), box-shadow var(--dur-2) var(--ease-std), transform var(--dur-1) var(--ease-spring);
    position: relative;
}

.pay-method-card input[type="radio"] {
    margin: 3px 0 0;
    accent-color: var(--teal);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.pay-method-card:has(input:checked),
.pay-method-card.is-selected {
    border-color: var(--teal);
    background: #f0faf9;
    box-shadow: 0 0 0 3px rgba(15, 139, 141, .12);
}

.pay-method-card:has(input:focus-visible) {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.pay-method-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.pay-method-title .ico {
    width: 18px;
    height: 18px;
    color: var(--teal);
    flex-shrink: 0;
}

.pay-method-desc {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
}

.pay-method-error {
    color: var(--crimson);
    font-size: .84rem;
    margin-top: -10px;
    margin-bottom: 16px;
}

.pay-box {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.qr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    width: 190px;
    height: 190px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 10px;
    box-sizing: border-box;
}

.qr.small {
    width: 150px;
    margin-top: 14px;
}

.shot-preview {
    margin-top: 12px;
    max-width: 260px;
    border-radius: 12px;
    border: 1px solid var(--line);
}



@media (max-width:1040px) {
    .flow-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .flow-main,
    .flow-sum {
        min-width: 0;
        max-width: 100%;
    }

    .flow-sum {
        position: static;
    }
}

@media (max-width:640px) {
    .flow.page {
        padding-bottom: 90px;
    }

    .flow-steps {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        overflow-x: visible;
    }

    .flow-steps button {
        flex: 1 1 calc(33.333% - 6px);
        min-width: 0;
        padding: 6px 8px;
        font-size: .78rem;
        gap: 5px;
        justify-content: center;
    }

    .flow-steps button i {
        width: 20px;
        height: 20px;
        font-size: .72rem;
        flex-shrink: 0;
    }

    .flow-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .flow-nav .btn-gold,
    .flow-nav .btn-line,
    .flow-nav button,
    .flow-nav a {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    .fab {
        right: 14px;
        bottom: 14px;
    }

    .fab a,
    .fab button {
        width: 48px;
        height: 48px;
    }

    .fab .wa .ico {
        width: 24px;
        height: 24px;
    }

    .vopt:not(.vopt-group),
    .vopt-group .vopt-main {
        grid-template-columns: 1fr;
    }

    .vopt-price,
    .vopt-group .vopt-price {
        text-align: left;
    }

    .vopt-capacities-list {
        gap: 6px;
    }

    .pay-methods {
        grid-template-columns: 1fr;
    }

    .pay-box {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: left;
    }

    .qr {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width:360px) {
    .vopt-capacities-list {
        gap: 5px;
    }
}

/* Booking Email OTP Verification Card & App-Like Digit Inputs */
.booking-email-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}


