/* Zee Rent – Shared styles: CSS variables, typography, buttons, generic fields and the two-column step layout. */

:root {
    --zeerent-primary-color: #0f4c81;
    --zeerent-radius: 8px;
}

.zeerent-booking-form,
.zeerent-results-layout,
.zeerent-results-templates,
.zeerent-booking-status-card {
    font-family: var(--zeerent-body-font, inherit);
}

.zeerent-results-title,
.zeerent-booking-form h2,
.zeerent-booking-form h3,
.zeerent-booking-form legend {
    font-family: var(--zeerent-heading-font, inherit);
}

.zeerent-booking-form {
    max-width: 100%;
    margin: 1.5rem 0;
}

.zeerent-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.zeerent-booking-form label {
    display: flex;
    gap: 0.35rem;
    font-weight: 600;
    color: #1f1f1f;
}

.zeerent-booking-form input,
.zeerent-booking-form select,
.zeerent-booking-form textarea {
    border: 1px solid #c4c4c4;
    border-radius: var(--zeerent-radius);
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
}

.zeerent-booking-form button {
    background: var(--zeerent-primary-color);
    border: 0;
    color: #ffffff;
    padding: 0.65rem 1rem;
    border-radius: var(--zeerent-radius);
    cursor: pointer;
}

.zeerent-booking-form button:hover {
    filter: brightness(0.9);
}

@media (max-width: 768px) {
    .zeerent-flow-layout {
            grid-template-columns: 1fr;
        }

    .zeerent-field-grid {
            grid-template-columns: 1fr;
        }
}

.zeerent-booking-status-card {
    max-width: 860px;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid #d6d6d6;
    border-radius: var(--zeerent-radius);
    background: #ffffff;
}

.zeerent-booking-status-card.is-success {
    border-color: #2b8a3e;
    background: #f3fff5;
}

.zeerent-booking-status-card.is-warning {
    border-color: #b26a00;
    background: #fff8ef;
}

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

.zeerent-flow-main {
    min-width: 0;
}

/* Step without the booking summary (summary="0", the default). */
.zeerent-flow-layout.zeerent-flow-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

/* target="hidden": the step's own button is replaced by [zeerent_step_button]. */
.zeerent-step--no-button .zeerent-submit-btn,
.zeerent-step--no-button .zeerent-sf-submit,
.zeerent-step--no-button [data-zeerent-field="submit"] {
    display: none !important;
}

/* Vehicle chosen with "Book" when the results have target="hidden". */
.zeerent-step--no-button article.is-selected {
    outline: 2px solid var(--zeerent-primary-color, #0f4c81);
    outline-offset: 2px;
}

.zeerent-coupon-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.zeerent-coupon-field input[type="text"] {
    width: 100%;
    max-width: 280px;
}

.zeerent-link-btn {
    display: inline-block;
    margin-top: 0.5rem;
    background: var(--zeerent-primary-color);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: var(--zeerent-radius);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step flow: [zeerent_step_button] and steps being refreshed on the same page. */
.zeerent-step-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.4rem;
    border-radius: var(--zeerent-radius);
    background: var(--zeerent-primary-color);
    color: #ffffff;
    font-family: var(--zeerent-body-font, inherit);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.zeerent-step-button:hover,
.zeerent-step-button:focus {
    color: #ffffff;
    filter: brightness(0.9);
}

.zeerent-step-button[aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
}

.zeerent-step-loading [data-zeerent-step] {
    opacity: 0.55;
    transition: opacity 0.15s ease;
    pointer-events: none;
}
