/* =============================================
   Bianca — Reserve App (no page scroll)
   ============================================= */

html.reserve-html,
body.reserve-body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    margin: 0;
    background: #F9F6F2;
}

.reserve-app {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #F9F6F2;
}

/* ---- Mobile app header ---- */
.reserve-app-header {
    display: none;
}

/* ---- Shell: split desktop ---- */
.reserve-app__shell {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    overflow: hidden;
}

/* ---- Visual (desktop) ---- */
.reserve-app__visual {
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.reserve-app__visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reserve-app__visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 48px);
    background: linear-gradient(
        165deg,
        rgba(74, 28, 31, 0.58) 0%,
        rgba(74, 28, 31, 0.32) 50%,
        rgba(13, 42, 32, 0.78) 100%
    );
    color: #fff;
}

.reserve-app__visual-brand {
    text-align: center;
}

.reserve-app__visual-icon {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.reserve-app__visual-name {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: 0.1em;
    font-weight: 500;
}

.reserve-app__visual-sub {
    display: block;
    font-size: 9px;
    letter-spacing: 0.28em;
    margin-top: 4px;
    opacity: 0.85;
}

.reserve-app__visual-quote {
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
}

.reserve-app__visual-quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
    opacity: 0.95;
}

.reserve-app__visual-meta {
    text-align: center;
    font-size: 13px;
    opacity: 0.88;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

/* ---- Panel ---- */
.reserve-app__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: -6px 0 32px rgba(74, 28, 31, 0.06);
}

[dir="ltr"] .reserve-app__panel {
    box-shadow: 6px 0 32px rgba(74, 28, 31, 0.06);
}

.reserve-app__panel-head--desktop {
    flex-shrink: 0;
    text-align: center;
    padding: clamp(20px, 3vh, 32px) clamp(20px, 3vw, 40px) 0;
}

@media (min-width: 901px) {
    .reserve-app__panel {
        justify-content: flex-start;
    }

    .reserve-app__panel-head--desktop {
        padding-top: clamp(56px, 10vh, 120px);
        padding-bottom: clamp(12px, 2vh, 24px);
    }

    .reserve-app__body {
        flex: 0 1 auto;
        justify-content: flex-start;
        padding-top: 0;
        padding-bottom: clamp(32px, 6vh, 64px);
    }

    .reserve-app__form-wrap {
        flex: 0 1 auto;
        justify-content: flex-start;
    }

    .reserve-form--app {
        justify-content: flex-start;
    }
}

.reserve-app__title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--maroon);
    font-weight: 500;
    margin-bottom: 6px;
}

.reserve-app__subtitle {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

.reserve-app__hero {
    display: none;
}

.reserve-app__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 clamp(20px, 3vw, 40px) clamp(16px, 2vh, 28px);
}

.reserve-app__form-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

/* ---- Alerts ---- */
.reserve-alert {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.reserve-alert--success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.reserve-alert--error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

/* ---- Form ---- */
.reserve-form--app {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    justify-content: flex-start;
}

.reserve-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.reserve-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reserve-field--full,
.reserve-field--date {
    grid-column: 1 / -1;
}

.reserve-field__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.reserve-field__optional {
    font-style: normal;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 11px;
}

.reserve-field input[type="text"],
.reserve-field input[type="tel"],
.reserve-field textarea,
.reserve-field__control select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #e8e0d8;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text);
    background: #FDFBF8;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reserve-field textarea {
    resize: none;
    min-height: 52px;
    max-height: 52px;
}

.reserve-field input:focus,
.reserve-field textarea:focus,
.reserve-field__control select:focus {
    outline: none;
    border-color: var(--maroon);
    box-shadow: 0 0 0 3px rgba(92, 18, 21, 0.08);
}

.reserve-field__control {
    position: relative;
}

.reserve-field__control--select select {
    appearance: none;
    padding-inline-end: 32px;
    cursor: pointer;
}

.reserve-field__chevron {
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 11px;
}

.jalali-picker--light .jalali-picker__btn {
    border: 1px solid #e8e0d8;
    background: #FDFBF8;
    color: var(--text-muted);
    border-radius: 12px;
    padding: 11px 12px;
    gap: 8px;
    font-size: 14px;
}

.jalali-picker--light.is-filled .jalali-picker__btn {
    color: var(--text);
}

.jalali-picker--light .jalali-picker__btn svg {
    flex-shrink: 0;
    color: var(--maroon);
    width: 16px;
    height: 16px;
}

.jalali-picker--light .jalali-picker__btn [data-jalali-label] {
    flex: 1;
    text-align: start;
}

.reserve-form__submit {
    flex-shrink: 0;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    gap: 8px;
    margin-top: auto;
}

/* ---- Index CTA (homepage) ---- */
.reserve-cta {
    padding: clamp(32px, 4.5vw, 52px) 0;
    position: relative;
    z-index: 1;
}

.reserve-cta__card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: clamp(200px, 22vw, 240px);
    border-radius: clamp(20px, 3vw, 28px);
    overflow: hidden;
    background: var(--maroon-dark);
    box-shadow:
        0 24px 64px rgba(74, 14, 16, 0.18),
        0 0 0 1px rgba(196, 149, 106, 0.12);
}

html[dir="rtl"] .reserve-cta__visual {
    order: 2;
}

html[dir="rtl"] .reserve-cta__content {
    order: 1;
}

.reserve-cta__visual {
    position: relative;
    overflow: hidden;
}

.reserve-cta__visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
}

.reserve-cta__visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: clamp(20px, 3vw, 32px);
    background: linear-gradient(
        155deg,
        rgba(13, 42, 32, 0.15) 0%,
        rgba(74, 28, 31, 0.35) 45%,
        rgba(13, 42, 32, 0.72) 100%
    );
}

.reserve-cta__visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-serif);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.reserve-cta__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: start;
    padding: clamp(20px, 2.5vw, 30px) clamp(22px, 3vw, 38px);
    color: var(--white);
    background:
        radial-gradient(circle at 100% 0%, rgba(196, 149, 106, 0.16) 0%, transparent 42%),
        linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 58%, #2f0d0f 100%);
}

.reserve-cta__ornament {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
    opacity: 0.14;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C4956A' stroke-width='0.8'%3E%3Cpath d='M60 10 L90 35 L110 60 L90 85 L60 110 L30 85 L10 60 L30 35 Z'/%3E%3Cpath d='M60 28 L76 44 L88 60 L76 76 L60 92 L44 76 L32 60 L44 44 Z'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.reserve-cta__ornament--tl {
    top: 12px;
    inset-inline-start: 12px;
}

.reserve-cta__ornament--br {
    bottom: 12px;
    inset-inline-end: 12px;
    transform: rotate(180deg);
}

.reserve-cta__label {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 10px;
}

.reserve-cta__label .section-label__diamond {
    background: var(--gold);
}

.reserve-cta__title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 8px;
}

.reserve-cta__desc {
    font-size: clamp(13px, 1.4vw, 14px);
    color: rgba(255, 255, 255, 0.78);
    max-width: 34ch;
    margin: 0 0 18px;
    line-height: 1.7;
}

.reserve-cta__perks {
    display: none;
}

.reserve-cta__perk {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.reserve-cta__perk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(196, 149, 106, 0.18);
    color: var(--gold);
    flex-shrink: 0;
}

.reserve-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.reserve-cta__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding-inline: 22px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.reserve-cta__btn-secondary {
    min-height: 48px;
    padding-inline: 22px;
    border-radius: 999px;
}

.reserve-cta .btn--white {
    background: var(--white);
    color: var(--maroon);
    border-color: var(--white);
}

.reserve-cta .btn--white:hover {
    background: #fff7ef;
    border-color: #fff7ef;
    transform: translateY(-1px);
}

.reserve-cta .btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.38);
}

.reserve-cta .btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
    .reserve-cta__card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .reserve-cta__visual {
        min-height: clamp(200px, 38vw, 260px);
    }

    .reserve-cta__content {
        text-align: center;
        align-items: center;
    }

    .reserve-cta__desc {
        max-width: 42ch;
    }

    .reserve-cta__perks {
        width: 100%;
    }

    .reserve-cta__perk {
        align-items: center;
        text-align: center;
    }

    .reserve-cta__actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .reserve-cta__perks {
        grid-template-columns: 1fr;
    }

    .reserve-cta__perk {
        flex-direction: row;
        align-items: center;
        text-align: start;
    }

    .reserve-cta__actions {
        flex-direction: column;
    }

    .reserve-cta__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---- Desktop compact height ---- */
@media (min-width: 901px) and (max-height: 780px) {
    .reserve-app__panel-head--desktop {
        padding-top: 16px;
    }

    .reserve-app__title {
        font-size: 1.35rem;
    }

    .reserve-app__subtitle {
        font-size: 12px;
    }

    .reserve-form__grid {
        gap: 10px;
        margin-bottom: 10px;
    }

    .reserve-field--note {
        display: none;
    }

    .reserve-field input,
    .reserve-field textarea,
    .reserve-field__control select,
    .jalali-picker--light .jalali-picker__btn {
        padding: 9px 11px;
        font-size: 13px;
    }
}

/* =============================================
   MOBILE / TABLET APP UI
   ============================================= */
@media (max-width: 900px) {
    .reserve-app__shell {
        grid-template-columns: 1fr;
    }

    .reserve-app__visual {
        display: none;
    }

    .reserve-app__panel {
        box-shadow: none;
        background: #fff;
    }

    .reserve-app-header {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        flex-shrink: 0;
        padding:
            max(10px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            10px
            max(16px, env(safe-area-inset-left));
        background: #fff;
        border-bottom: 1px solid rgba(74, 28, 31, 0.08);
    }

    .reserve-app-header__back,
    .reserve-app-header__menu {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: #f5f0ea;
        color: var(--text);
        text-decoration: none;
    }

    .reserve-app-header__back svg,
    .reserve-app-header__menu svg {
        width: 20px;
        height: 20px;
    }

    [dir="rtl"] .reserve-app-header__back svg {
        transform: scaleX(-1);
    }

    .reserve-app-header__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .reserve-app-header__icon {
        font-size: 16px;
        line-height: 1;
        color: var(--maroon);
    }

    .reserve-app-header__name {
        font-family: var(--font-serif);
        font-size: 13px;
        letter-spacing: 0.16em;
        font-weight: 600;
        color: var(--maroon);
    }

    .reserve-app__panel-head--desktop {
        display: none;
    }

    .reserve-app__hero {
        display: block;
        flex-shrink: 0;
        text-align: center;
        padding: 12px 8px 4px;
    }

    .reserve-app__hero-title {
        font-family: var(--font-serif);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--green);
        margin-bottom: 4px;
    }

    .reserve-app__hero-text {
        font-size: 13px;
        color: var(--text-muted);
        line-height: 1.5;
        max-width: 300px;
        margin: 0 auto;
    }

    .reserve-app__body {
        padding:
            8px
            max(20px, env(safe-area-inset-right))
            max(12px, env(safe-area-inset-bottom))
            max(20px, env(safe-area-inset-left));
    }

    .reserve-app__form-wrap {
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .reserve-form--app {
        justify-content: flex-start;
    }

    .reserve-form__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .reserve-field--date {
        grid-column: auto;
    }

    .reserve-form__submit {
        position: sticky;
        bottom: 0;
        margin-top: 12px;
        z-index: 2;
        box-shadow: 0 -8px 24px rgba(255, 255, 255, 0.92);
    }
}

@media (max-width: 900px) and (max-height: 680px) {
    .reserve-app__hero {
        display: none;
    }

    .reserve-field--note {
        display: none;
    }
}

/* ---- Step indicator ---- */
.reserve-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px 0;
    flex-shrink: 0;
}

.reserve-steps__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.reserve-steps__item.is-active {
    color: var(--maroon);
    font-weight: 600;
}

.reserve-steps__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    background: #efe8e0;
    color: var(--text-muted);
}

.reserve-steps__item.is-active .reserve-steps__num {
    background: var(--maroon);
    color: #fff;
}

.reserve-steps__line {
    width: 32px;
    height: 2px;
    background: #e8e0d8;
    border-radius: 1px;
}

/* ---- Deposit info banner ---- */
.reserve-deposit-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(92, 18, 21, 0.06) 0%, rgba(74, 28, 31, 0.04) 100%);
    border: 1px solid rgba(92, 18, 21, 0.12);
}

.reserve-deposit-banner__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--maroon);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

.reserve-deposit-banner__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
}

.reserve-deposit-banner__text strong {
    color: var(--maroon);
    font-weight: 700;
}

/* ---- Deposit payment card ---- */
.reserve-deposit-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 22px 20px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(74, 28, 31, 0.1);
    box-shadow:
        0 4px 24px rgba(74, 28, 31, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

.reserve-deposit-card__head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0ebe4;
}

.reserve-deposit-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--maroon) 0%, #6b2830 100%);
    color: #fff;
    display: grid;
    place-items: center;
}

.reserve-deposit-card__title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--maroon);
    margin: 0 0 4px;
}

.reserve-deposit-card__sub {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.reserve-deposit-card__rows {
    margin: 0 0 14px;
}

.reserve-deposit-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0ebe4;
    font-size: 13px;
}

.reserve-deposit-card__row:last-child {
    border-bottom: none;
}

.reserve-deposit-card__row dt {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

.reserve-deposit-card__row dd {
    margin: 0;
    text-align: end;
    color: var(--text);
    font-weight: 500;
}

.reserve-deposit-card__row--total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px solid rgba(92, 18, 21, 0.12);
    border-bottom: none;
}

.reserve-deposit-card__row--total dt {
    color: var(--maroon);
    font-weight: 600;
}

.reserve-deposit-card__row--total dd strong {
    font-size: 1.1rem;
    color: var(--maroon);
}

.reserve-deposit-card__secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8f5f1;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.reserve-deposit-card__secure svg {
    flex-shrink: 0;
    color: var(--green);
}

.reserve-deposit-card__pay {
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
}
