.rental-nook-booking {
    --rn-widget-border: #d8e2ec;
    --rn-widget-muted: #64748b;
    background: #fff;
    border: 1px solid var(--rn-widget-border);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(15, 38, 68, 0.13);
    color: #172337;
    max-width: 1180px;
    overflow: hidden;
}

.rental-nook-booking > header {
    background: linear-gradient(135deg, var(--rn-widget-primary), color-mix(in srgb, var(--rn-widget-primary) 72%, #000));
    color: #fff;
    padding: 42px 48px 40px;
}

.rental-nook-booking h2 {
    color: inherit;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    margin: 0 0 0.85rem;
}

.rental-nook-booking > header > p:last-child {
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
    max-width: 680px;
    opacity: 0.88;
}

.rental-nook-booking-progress {
    background: #f8fafc;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

.rental-nook-booking-progress.has-three-steps {
    grid-template-columns: repeat(3, 1fr);
}

.rental-nook-booking-progress li {
    border-bottom: 4px solid #dce5ed;
    color: var(--rn-widget-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 17px 12px 15px;
    text-align: center;
    transition: border-color 160ms ease, color 160ms ease;
}

.rental-nook-booking-progress li.is-active {
    border-color: var(--rn-widget-accent);
    color: var(--rn-widget-primary);
}

.rental-nook-booking-progress li.is-complete {
    border-color: color-mix(in srgb, var(--rn-widget-accent) 45%, #dce5ed);
    color: var(--rn-widget-primary);
}

.rental-nook-booking form {
    background: var(--rn-widget-bg);
    padding: 42px 48px 48px;
}

.rn-booking-step {
    display: none;
}

.rn-booking-step.is-active {
    animation: rn-booking-enter 180ms ease-out;
    display: block;
}

.rn-booking-step h3 {
    color: #172337;
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0 0 26px;
}

.rn-booking-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rn-booking-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rn-booking-date-grid label,
.rn-booking-date-grid input,
.rn-booking-location-grid label,
.rn-booking-location-grid select {
    min-width: 0;
}

.rn-booking-location-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
}

.rn-booking-step label {
    display: grid;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 9px;
}

.rn-booking-step input[type="date"],
.rn-booking-step input[type="time"],
.rn-booking-step select {
    background: #fff;
    border: 1px solid #b8c8d9;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 38, 68, 0.04);
    box-sizing: border-box;
    color: #172337;
    font: inherit;
    min-height: 50px;
    padding: 12px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.rn-booking-step input[type="date"]:focus,
.rn-booking-step input[type="time"]:focus,
.rn-booking-step select:focus {
    border-color: var(--rn-widget-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rn-widget-accent) 20%, transparent);
    outline: 0;
}

.rn-booking-location-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    color: #9a3412;
    margin: 20px 0 0;
    padding: 13px 15px;
}

.rn-booking-custom-location {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.rn-booking-custom-location[hidden] {
    display: none;
}

.rn-booking-google-place,
.rn-booking-google-place gmp-place-autocomplete {
    width: 100%;
}

.rn-booking-custom-location small {
    color: var(--rn-widget-muted);
    font-weight: 500;
}

.rn-booking-products,
.rn-booking-extras {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0 0 28px;
}

.rn-booking-products label,
.rn-booking-extras label {
    align-items: center;
    background: #fff;
    border: 1px solid var(--rn-widget-border);
    border-radius: 13px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    min-height: 74px;
    padding: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rn-booking-products label:hover,
.rn-booking-extras label:hover {
    border-color: var(--rn-widget-accent);
    transform: translateY(-1px);
}

.rn-booking-products label:has(input:checked),
.rn-booking-extras label:has(input:checked) {
    border-color: var(--rn-widget-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rn-widget-accent) 18%, transparent);
}

.rn-booking-products label > span,
.rn-booking-extras label > span {
    display: grid;
    gap: 4px;
}

.rn-booking-products small,
.rn-booking-extras small {
    color: var(--rn-widget-muted);
    font-weight: 500;
}

.rn-booking-products .woocommerce-Price-amount,
.rn-booking-products .woocommerce-Price-currencySymbol {
    display: inline;
}

.rn-booking-products label.is-unavailable {
    background: #f8fafc;
    cursor: not-allowed;
    opacity: 0.72;
}

.rn-booking-products label.is-unavailable:hover {
    border-color: var(--rn-widget-border);
    transform: none;
}

.rn-booking-extras > p:only-child {
    background: #fff;
    border: 1px dashed #bdcad7;
    border-radius: 12px;
    color: var(--rn-widget-muted);
    margin: 0;
    padding: 22px;
}

.rn-booking-extras:has(> p:only-child) {
    margin-bottom: 0;
}

.rn-booking-actions {
    align-items: center;
    border-top: 1px solid var(--rn-widget-border);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 26px;
}

.rn-booking-step > .rn-booking-primary {
    margin-top: 34px;
}

.rn-booking-actions > button:not(.rn-booking-primary) {
    background: transparent;
    border: 0;
    color: var(--rn-widget-primary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 12px 6px;
}

.rn-booking-primary {
    background: var(--rn-widget-accent);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--rn-widget-accent) 26%, transparent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    min-height: 48px;
    padding: 12px 24px;
    transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.rn-booking-primary:hover {
    box-shadow: 0 9px 20px color-mix(in srgb, var(--rn-widget-accent) 34%, transparent);
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.rn-booking-primary:focus-visible,
.rn-booking-actions > button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--rn-widget-accent) 35%, transparent);
    outline-offset: 3px;
}

.rn-booking-primary:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.rn-booking-summary {
    background: #fff;
    border: 1px solid var(--rn-widget-border);
    border-radius: 13px;
    padding: 8px 20px 16px;
}

.rn-booking-summary dl {
    margin: 0;
}

.rn-booking-summary dl > div {
    border-bottom: 1px solid #e7edf3;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 13px 0;
}

.rn-booking-summary dd {
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.rn-booking-total {
    border-bottom: 0 !important;
    color: var(--rn-widget-primary);
    font-size: 1.1rem;
}

.rn-booking-summary p {
    color: var(--rn-widget-muted);
    margin: 15px 0 0;
}

.rn-booking-summary.has-error p {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    padding: 11px 12px;
}

.rn-booking-error {
    background: #fff1f0;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #b42318;
    font-weight: 600;
    margin: 18px 0 0;
    padding: 12px 14px;
}

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

@media (max-width: 600px) {
    .rental-nook-booking {
        border-radius: 16px;
    }

    .rental-nook-booking > header,
    .rental-nook-booking form {
        padding: 28px 22px 32px;
    }

    .rental-nook-booking-progress li {
        font-size: 0.76rem;
        padding: 12px 4px;
    }

    .rn-booking-grid {
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .rn-booking-date-grid {
        grid-template-columns: 1fr;
    }

    .rn-booking-step > .rn-booking-primary {
        margin-top: 28px;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rn-booking-step.is-active {
        animation: none;
    }
}
