/* ==========================================================
   CHIRALA RESORTS MANAGEMENT SYSTEM
   Booking Page UI v2.0
========================================================== */

:root {
    --crms-booking-primary: #0f766e;
    --crms-booking-primary-dark: #0b5f59;
    --crms-booking-primary-soft: #e9f7f5;
    --crms-booking-success: #15803d;
    --crms-booking-success-soft: #ecfdf3;
    --crms-booking-error: #b42318;
    --crms-booking-error-soft: #fef3f2;
    --crms-booking-info: #175cd3;
    --crms-booking-info-soft: #eff8ff;
    --crms-booking-text: #17212b;
    --crms-booking-muted: #667085;
    --crms-booking-subtle: #98a2b3;
    --crms-booking-border: #e4e7ec;
    --crms-booking-border-strong: #d0d5dd;
    --crms-booking-surface: #ffffff;
    --crms-booking-background: #f7f9fb;
    --crms-booking-radius-sm: 8px;
    --crms-booking-radius-md: 14px;
    --crms-booking-radius-lg: 20px;
    --crms-booking-shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.05);
    --crms-booking-shadow-md: 0 12px 35px rgba(16, 24, 40, 0.09);
    --crms-booking-transition: 180ms ease;
}

.crms-booking-app,
.crms-booking-app * {
    box-sizing: border-box;
}

.crms-booking-app {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 20px 72px;
    color: var(--crms-booking-text);
    font-family: inherit;
}

.crms-booking-app img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.crms-booking-app h1,
.crms-booking-app h2,
.crms-booking-app h3,
.crms-booking-app p {
    margin-top: 0;
}

.crms-booking-app button,
.crms-booking-app input,
.crms-booking-app select,
.crms-booking-app textarea {
    font: inherit;
}

.crms-booking-alert {
    max-width: 900px;
    margin: 40px auto;
    padding: 22px 24px;
    border: 1px solid var(--crms-booking-border);
    border-radius: var(--crms-booking-radius-md);
    background: var(--crms-booking-surface);
    box-shadow: var(--crms-booking-shadow-sm);
}

.crms-booking-alert--error {
    color: var(--crms-booking-error);
    border-color: #fecdca;
    background: var(--crms-booking-error-soft);
}

.crms-booking-alert strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.crms-booking-alert p {
    margin-bottom: 0;
}

/* Progress */

.crms-booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 34px;
    padding: 0 8px;
}

.crms-booking-progress__item {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    min-width: 92px;
    color: var(--crms-booking-subtle);
    text-align: center;
}

.crms-booking-progress__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border: 2px solid var(--crms-booking-border-strong);
    border-radius: 50%;
    background: var(--crms-booking-surface);
    color: var(--crms-booking-muted);
    font-size: 14px;
    font-weight: 800;
    transition: all var(--crms-booking-transition);
}

.crms-booking-progress__label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.crms-booking-progress__item.is-complete,
.crms-booking-progress__item.is-active {
    color: var(--crms-booking-primary);
}

.crms-booking-progress__item.is-complete .crms-booking-progress__number,
.crms-booking-progress__item.is-active .crms-booking-progress__number {
    border-color: var(--crms-booking-primary);
}

.crms-booking-progress__item.is-complete .crms-booking-progress__number {
    background: var(--crms-booking-primary);
    color: #ffffff;
}

.crms-booking-progress__item.is-active .crms-booking-progress__number {
    background: var(--crms-booking-primary-soft);
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.1);
}

.crms-booking-progress__line {
    width: 86px;
    height: 2px;
    margin: 0 5px 28px;
    background: var(--crms-booking-border-strong);
}

.crms-booking-progress__line.is-complete {
    background: var(--crms-booking-primary);
}

/* Main Layout */

.crms-booking-form {
    width: 100%;
}

.crms-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.crms-booking-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.crms-booking-sidebar {
    min-width: 0;
}

.crms-booking-card,
.crms-booking-summary {
    border: 1px solid var(--crms-booking-border);
    border-radius: var(--crms-booking-radius-lg);
    background: var(--crms-booking-surface);
    box-shadow: var(--crms-booking-shadow-sm);
}

.crms-booking-card {
    padding: 28px;
}

.crms-booking-card__header {
    margin-bottom: 24px;
}

.crms-booking-card__step,
.crms-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--crms-booking-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.crms-booking-card__header h2,
.crms-booking-summary__heading h2,
.crms-property-card__title {
    margin-bottom: 8px;
    color: var(--crms-booking-text);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.crms-booking-card__header p,
.crms-booking-summary__heading p {
    margin-bottom: 0;
    color: var(--crms-booking-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Resort Card */

.crms-property-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

.crms-property-card__image {
    flex: 0 0 156px;
    height: 118px;
    overflow: hidden;
    border-radius: var(--crms-booking-radius-md);
    background: var(--crms-booking-background);
}

.crms-property-card__image img {
    height: 100%;
    object-fit: cover;
}

.crms-property-card__content {
    min-width: 0;
}

.crms-property-card__title {
    font-size: 23px;
}

.crms-property-card__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 13px;
}

.crms-property-card__trust span,
.crms-room-selection__benefits span,
.crms-summary-trust span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--crms-booking-muted);
    font-size: 13px;
    font-weight: 600;
}

.crms-property-card__trust i,
.crms-room-selection__benefits i,
.crms-summary-trust i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--crms-booking-success-soft);
    color: var(--crms-booking-success);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

/* Room Selection */

.crms-room-selection {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--crms-booking-border);
    border-radius: var(--crms-booking-radius-md);
    background: #fbfcfd;
}

.crms-room-selection__image {
    height: 178px;
    overflow: hidden;
    border-radius: 11px;
    background: var(--crms-booking-background);
}

.crms-room-selection__image img {
    height: 100%;
    object-fit: cover;
}

.crms-room-selection__content {
    align-self: center;
    min-width: 0;
}

.crms-room-selection__content h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.crms-room-selection__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.crms-room-selection__facts span {
    padding: 6px 9px;
    border: 1px solid var(--crms-booking-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--crms-booking-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
}

.crms-room-selection__description {
    margin-bottom: 12px;
    color: var(--crms-booking-muted);
    font-size: 13px;
    line-height: 1.6;
}

.crms-room-selection__benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
}

/* Form Fields */

.crms-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.crms-form-grid--dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crms-field {
    min-width: 0;
}

.crms-field--full {
    grid-column: 1 / -1;
}

.crms-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--crms-booking-text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.crms-field label span {
    color: var(--crms-booking-error);
}

.crms-field input,
.crms-field select,
.crms-field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0;
    border: 1px solid var(--crms-booking-border-strong);
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: var(--crms-booking-text);
    font-size: 14px;
    transition:
        border-color var(--crms-booking-transition),
        box-shadow var(--crms-booking-transition),
        background var(--crms-booking-transition);
}

.crms-field input,
.crms-field select {
    padding: 0 14px;
}

.crms-field textarea {
    min-height: 125px;
    padding: 13px 14px;
    line-height: 1.55;
    resize: vertical;
}

.crms-field input::placeholder,
.crms-field textarea::placeholder {
    color: #98a2b3;
}

.crms-field input:hover,
.crms-field select:hover,
.crms-field textarea:hover {
    border-color: #98a2b3;
}

.crms-field input:focus,
.crms-field select:focus,
.crms-field textarea:focus {
    border-color: var(--crms-booking-primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.11);
}

.crms-field input.is-invalid,
.crms-field select.is-invalid,
.crms-field textarea.is-invalid,
.crms-field input:invalid.crms-touched,
.crms-field select:invalid.crms-touched,
.crms-field textarea:invalid.crms-touched {
    border-color: var(--crms-booking-error);
    background: var(--crms-booking-error-soft);
}

.crms-field small {
    display: block;
    margin-top: 7px;
    color: var(--crms-booking-muted);
    font-size: 11px;
    line-height: 1.45;
}

/* Availability */

.crms-availability-panel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 15px 16px;
    border: 1px solid var(--crms-booking-border);
    border-radius: 11px;
    background: var(--crms-booking-background);
}

.crms-availability-panel__icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.crms-availability-panel strong,
.crms-availability-panel span {
    display: block;
}

.crms-availability-panel strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.crms-availability-panel span {
    color: var(--crms-booking-muted);
    font-size: 12px;
    line-height: 1.5;
}

.crms-availability-panel.is-loading {
    border-color: #b2ddff;
    background: var(--crms-booking-info-soft);
}

.crms-availability-panel.is-available,
.crms-availability-panel.is-success {
    border-color: #abefc6;
    background: var(--crms-booking-success-soft);
}

.crms-availability-panel.is-available .crms-availability-panel__icon,
.crms-availability-panel.is-success .crms-availability-panel__icon {
    color: var(--crms-booking-success);
}

.crms-availability-panel.is-unavailable,
.crms-availability-panel.is-error {
    border-color: #fecdca;
    background: var(--crms-booking-error-soft);
}

.crms-availability-panel.is-unavailable .crms-availability-panel__icon,
.crms-availability-panel.is-error .crms-availability-panel__icon {
    color: var(--crms-booking-error);
}

/* Security Information */

.crms-booking-security {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 22px 26px;
}

.crms-booking-security__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.crms-booking-security__item > span {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--crms-booking-primary-soft);
    color: var(--crms-booking-primary);
    font-size: 13px;
    font-weight: 900;
}

.crms-booking-security__item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.crms-booking-security__item p {
    margin-bottom: 0;
    color: var(--crms-booking-muted);
    font-size: 12px;
    line-height: 1.55;
}

/* Booking Summary */

.crms-booking-summary {
    position: sticky;
    top: 24px;
    overflow: hidden;
    box-shadow: var(--crms-booking-shadow-md);
}

.admin-bar .crms-booking-summary {
    top: 56px;
}

.crms-booking-summary__media {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: var(--crms-booking-background);
}

.crms-booking-summary__media::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 38%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.38),
        transparent
    );
    content: "";
    pointer-events: none;
}

.crms-booking-summary__media img {
    height: 100%;
    object-fit: cover;
}

.crms-booking-summary__media > span {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--crms-booking-text);
    box-shadow: var(--crms-booking-shadow-sm);
    font-size: 11px;
    font-weight: 800;
}

.crms-booking-summary__body {
    padding: 24px;
}

.crms-booking-summary__heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--crms-booking-border);
}

.crms-booking-summary__heading h2 {
    font-size: 23px;
}

.crms-booking-summary__heading p {
    color: var(--crms-booking-text);
    font-weight: 650;
}

.crms-summary-stay {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 14px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--crms-booking-border);
}

.crms-summary-stay__item span,
.crms-summary-meta span,
.crms-summary-pricing__row > span,
.crms-summary-pricing__row--total div span {
    display: block;
    margin-bottom: 4px;
    color: var(--crms-booking-muted);
    font-size: 11px;
    font-weight: 650;
}

.crms-summary-stay__item strong {
    display: block;
    font-size: 13px;
    line-height: 1.4;
}

.crms-summary-stay__divider {
    width: 1px;
    height: 38px;
    background: var(--crms-booking-border);
}

.crms-summary-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--crms-booking-border);
}

.crms-summary-meta strong {
    display: block;
    font-size: 12px;
    line-height: 1.45;
}

.crms-summary-pricing {
    padding: 17px 0 0;
}

.crms-summary-pricing__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
}

.crms-summary-pricing__row strong {
    flex: 0 0 auto;
    font-size: 13px;
}

.crms-summary-pricing__row--total {
    align-items: center;
    margin-top: 9px;
    padding: 16px 0 6px;
    border-top: 1px dashed var(--crms-booking-border-strong);
}

.crms-summary-pricing__row--total div span {
    margin-bottom: 2px;
    color: var(--crms-booking-text);
    font-size: 14px;
    font-weight: 800;
}

.crms-summary-pricing__row--total div small {
    display: block;
    color: var(--crms-booking-muted);
    font-size: 10px;
}

.crms-summary-pricing__row--total > strong {
    color: var(--crms-booking-primary);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

/* Summary Status */

.crms-summary-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0;
    padding: 11px 12px;
    border: 1px solid var(--crms-booking-border);
    border-radius: 9px;
    background: var(--crms-booking-background);
    color: var(--crms-booking-muted);
    font-size: 11px;
    font-weight: 650;
}

.crms-summary-status__dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crms-booking-subtle);
}

.crms-summary-status.is-loading {
    color: var(--crms-booking-info);
    border-color: #b2ddff;
    background: var(--crms-booking-info-soft);
}

.crms-summary-status.is-loading .crms-summary-status__dot {
    background: var(--crms-booking-info);
    animation: crms-pulse 1.1s infinite;
}

.crms-summary-status.is-available,
.crms-summary-status.is-success {
    color: var(--crms-booking-success);
    border-color: #abefc6;
    background: var(--crms-booking-success-soft);
}

.crms-summary-status.is-available .crms-summary-status__dot,
.crms-summary-status.is-success .crms-summary-status__dot {
    background: var(--crms-booking-success);
}

.crms-summary-status.is-unavailable,
.crms-summary-status.is-error {
    color: var(--crms-booking-error);
    border-color: #fecdca;
    background: var(--crms-booking-error-soft);
}

.crms-summary-status.is-unavailable .crms-summary-status__dot,
.crms-summary-status.is-error .crms-summary-status__dot {
    background: var(--crms-booking-error);
}

/* Terms */

.crms-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 14px 0 16px;
    cursor: pointer;
}

.crms-consent input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--crms-booking-primary);
}

.crms-consent span {
    color: var(--crms-booking-muted);
    font-size: 10px;
    line-height: 1.5;
}

/* Submit Button */

.crms-booking-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 13px 18px;
    border: 0;
    border-radius: 11px;
    background: var(--crms-booking-primary);
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(15, 118, 110, 0.22);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    transition:
        transform var(--crms-booking-transition),
        background var(--crms-booking-transition),
        box-shadow var(--crms-booking-transition),
        opacity var(--crms-booking-transition);
}

.crms-booking-submit:hover:not(:disabled) {
    background: var(--crms-booking-primary-dark);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.28);
    transform: translateY(-1px);
}

.crms-booking-submit:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.3);
    outline-offset: 3px;
}

.crms-booking-submit:disabled {
    background: #cbd5d9;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.82;
}

.crms-booking-submit__arrow {
    font-size: 19px;
    line-height: 1;
}

.crms-booking-submit__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: crms-spin 0.75s linear infinite;
}

.crms-booking-submit.is-loading .crms-booking-submit__spinner {
    display: inline-block;
}

.crms-booking-submit.is-loading .crms-booking-submit__arrow {
    display: none;
}

.crms-booking-submit-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 0;
    color: var(--crms-booking-muted);
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

.crms-summary-trust {
    display: grid;
    gap: 9px;
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--crms-booking-border);
}

.crms-summary-trust span {
    font-size: 11px;
}

/* Animations */

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

@keyframes crms-pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* Tablet */

@media (max-width: 1050px) {
    .crms-booking-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 22px;
    }

    .crms-booking-card {
        padding: 24px;
    }

    .crms-room-selection {
        grid-template-columns: 200px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .crms-booking-app {
        padding-top: 26px;
    }

    .crms-booking-layout {
        grid-template-columns: 1fr;
    }

    .crms-booking-sidebar {
        order: -1;
    }

    .crms-booking-summary {
        position: static;
        display: grid;
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .crms-booking-summary__media {
        height: 100%;
        min-height: 330px;
    }

    .crms-booking-summary__body {
        padding: 22px;
    }

    .crms-booking-progress__line {
        width: 60px;
    }
}

/* Mobile */

@media (max-width: 700px) {
    .crms-booking-app {
        padding: 18px 14px 48px;
    }

    .crms-booking-progress {
        justify-content: space-between;
        margin-bottom: 24px;
        overflow: hidden;
    }

    .crms-booking-progress__item {
        flex: 0 0 42px;
        min-width: auto;
    }

    .crms-booking-progress__number {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
        font-size: 12px;
    }

    .crms-booking-progress__label {
        display: none;
    }

    .crms-booking-progress__line {
        flex: 1 1 auto;
        width: auto;
        min-width: 18px;
        margin: 0 3px;
    }

    .crms-booking-card,
    .crms-booking-summary {
        border-radius: 16px;
    }

    .crms-booking-card {
        padding: 20px;
    }

    .crms-property-card {
        align-items: flex-start;
    }

    .crms-property-card__image {
        flex-basis: 112px;
        height: 94px;
    }

    .crms-property-card__title,
    .crms-booking-card__header h2,
    .crms-booking-summary__heading h2 {
        font-size: 21px;
    }

    .crms-room-selection {
        grid-template-columns: 1fr;
    }

    .crms-room-selection__image {
        height: 220px;
    }

    .crms-form-grid,
    .crms-form-grid--dates,
    .crms-booking-security {
        grid-template-columns: 1fr;
    }

    .crms-field--full {
        grid-column: auto;
    }

    .crms-booking-summary {
        display: block;
    }

    .crms-booking-summary__media {
        height: 215px;
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .crms-booking-app {
        padding-right: 10px;
        padding-left: 10px;
    }

    .crms-booking-card {
        padding: 17px;
    }

    .crms-property-card {
        display: block;
        padding: 16px;
    }

    .crms-property-card__image {
        width: 100%;
        height: 155px;
        margin-bottom: 15px;
    }

    .crms-property-card__trust,
    .crms-room-selection__benefits {
        display: grid;
    }

    .crms-room-selection {
        padding: 12px;
    }

    .crms-room-selection__image {
        height: 190px;
    }

    .crms-summary-stay,
    .crms-summary-meta {
        gap: 10px;
    }

    .crms-booking-summary__body {
        padding: 18px;
    }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    .crms-booking-app *,
    .crms-booking-app *::before,
    .crms-booking-app *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* ==========================================================
   BOOKING PAGE SHELL AND HERO
========================================================== */

body.crms-booking-page-active {
    background: var(--crms-booking-background);
}

.crms-booking-page {
    width: 100%;
    min-height: 100vh;
    background: var(--crms-booking-background);
}

.crms-booking-page__hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(255, 255, 255, 0.13),
            transparent 34%
        ),
        linear-gradient(
            125deg,
            #073b3a 0%,
            #0f766e 55%,
            #14948a 100%
        );
    color: #ffffff;
}

.crms-booking-page__hero::before {
    position: absolute;
    top: -130px;
    right: -100px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.crms-booking-page__hero::after {
    position: absolute;
    right: 90px;
    bottom: -190px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.crms-booking-page__hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 20px 42px;
}

.crms-booking-page__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 27px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color var(--crms-booking-transition),
        transform var(--crms-booking-transition);
}

.crms-booking-page__back:hover {
    color: #ffffff;
    transform: translateX(-2px);
}

.crms-booking-page__back span {
    font-size: 18px;
    line-height: 1;
}

.crms-booking-page__hero-content {
    max-width: 720px;
}

.crms-booking-page__eyebrow {
    display: inline-flex;
    margin-bottom: 11px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.crms-booking-page__hero h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.crms-booking-page__hero-content > p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.7;
}

.crms-booking-page__hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 26px;
}

.crms-booking-page__hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 650;
}

.crms-booking-page__hero-trust i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.crms-booking-page__content {
    width: 100%;
}

/* Booking Notices */

.crms-booking-page-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 25px auto 0;
    padding: 15px 17px;
    border: 1px solid var(--crms-booking-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--crms-booking-text);
    box-shadow: var(--crms-booking-shadow-sm);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.crms-booking-page-notice__icon {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.crms-booking-page-notice--error {
    border-color: #fecdca;
    background: var(--crms-booking-error-soft);
    color: var(--crms-booking-error);
}

.crms-booking-page-notice--error
.crms-booking-page-notice__icon {
    background: #fee4e2;
    color: var(--crms-booking-error);
}

.crms-booking-page-notice--success {
    border-color: #abefc6;
    background: var(--crms-booking-success-soft);
    color: var(--crms-booking-success);
}

.crms-booking-page-notice--success
.crms-booking-page-notice__icon {
    background: #d1fadf;
    color: var(--crms-booking-success);
}

.crms-booking-page-notice--info {
    border-color: #b2ddff;
    background: var(--crms-booking-info-soft);
    color: var(--crms-booking-info);
}

.crms-booking-page-notice--info
.crms-booking-page-notice__icon {
    background: #d1e9ff;
    color: var(--crms-booking-info);
}

@media (max-width: 700px) {
    .crms-booking-page__hero-inner {
        padding: 22px 15px 34px;
    }

    .crms-booking-page__back {
        margin-bottom: 22px;
    }

    .crms-booking-page__hero h1 {
        font-size: 32px;
    }

    .crms-booking-page__hero-content > p {
        font-size: 13px;
    }

    .crms-booking-page__hero-trust {
        display: grid;
        gap: 10px;
        margin-top: 22px;
    }

    .crms-booking-page-notice {
        width: calc(100% - 28px);
        margin-top: 18px;
    }
}

/* ==========================================================
   MOBILE DATE PICKER FIX
========================================================== */

/*
 * On tablet and mobile, show the actual booking form before
 * the booking summary.
 *
 * The Check-in and Check-out values in the summary are only
 * display text, not form fields.
 */
@media (max-width: 900px) {

    .crms-booking-main {
        order: 1;
    }

    .crms-booking-sidebar {
        order: 2;
    }
}

/*
 * Keep native date inputs visible and tappable on:
 * - Chrome Android
 * - Samsung Internet
 * - iOS Safari
 * - mobile embedded browsers
 */
.crms-booking-app input[type="date"] {
    position: relative;
    z-index: 5;

    display: block;
    width: 100%;
    min-width: 0;
    min-height: 52px;

    padding-right: 12px;

    overflow: visible;

    opacity: 1;
    visibility: visible;

    pointer-events: auto;
    touch-action: manipulation;

    -webkit-appearance: auto;
    appearance: auto;
}

/*
 * Keep the selected date text aligned correctly in WebKit.
 */
.crms-booking-app
input[type="date"]::-webkit-date-and-time-value {
    min-height: 1.4em;
    text-align: left;
}

/*
 * Ensure the native calendar icon remains clickable.
 */
.crms-booking-app
input[type="date"]::-webkit-calendar-picker-indicator {
    display: block;

    width: 22px;
    height: 22px;

    margin: 0;
    padding: 4px;

    opacity: 1;

    cursor: pointer;
    pointer-events: auto;
}

/*
 * Make the summary date values look and behave like shortcuts.
 */
.crms-summary-stay__item[role="button"] {
    border-radius: 9px;

    cursor: pointer;
    touch-action: manipulation;
}

.crms-summary-stay__item[role="button"]:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.22);
    outline-offset: 4px;
}

@media (max-width: 700px) {

    /*
     * Stack Check-in, Check-out, Adults and Children into
     * a single mobile column.
     */
    .crms-form-grid--dates {
        grid-template-columns: 1fr;
    }

    /*
     * Prevent parent containers from covering or clipping
     * the mobile date inputs.
     */
    .crms-form-grid--dates .crms-field {
        position: relative;
        z-index: 6;

        overflow: visible;
    }

    /*
     * Using at least 16px prevents iOS Safari from zooming
     * when the date field receives focus.
     */
    .crms-form-grid--dates input[type="date"] {
        width: 100%;
        min-height: 54px;

        font-size: 16px;
    }

    /*
     * Add a visible touch area around the summary dates.
     */
    .crms-summary-stay__item[role="button"] {
        margin: -8px;
        padding: 8px;

        background: rgba(15, 118, 110, 0.035);
    }
}

/* Room quantity inventory feedback */
#crms-room-quantity option:disabled {
    color: #9aa7b4;
}

#crms-room-quantity-help {
    color: #607087;
}
