/* ========================================
   Creek Motors – Booking Flow Styles
   ======================================== */

/* --- Translucent orange + button on car cards --- */
.creek-book-plus {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 90, 10, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 90, 10, 0.3);
}

.creek-book-plus:hover {
    background: rgba(255, 90, 10, 0.85);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 90, 10, 0.5);
}

.creek-book-plus:active {
    transform: scale(0.95);
}

.creek-book-plus svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Booking modal overlay --- */
.creek-booking-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    background: rgba(5, 11, 32, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.creek-booking-overlay.active {
    display: flex;
}

.creek-booking-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: creekModalSlideUp 0.35s ease;
}

@keyframes creekModalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.creek-booking-modal .modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #EEF1F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.creek-booking-modal .modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #050B20;
    margin: 0;
}

.creek-booking-modal .modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #F4F7FC;
    color: #777;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.creek-booking-modal .modal-close:hover {
    background: #E2E7F0;
    color: #050B20;
}

.creek-booking-modal .modal-body {
    padding: 24px 28px;
}

.creek-booking-modal .selected-car-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F8FAFD;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.creek-booking-modal .selected-car-info .car-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #E2E7F0;
}

.creek-booking-modal .selected-car-info .car-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creek-booking-modal .selected-car-info .car-details h4 {
    font-size: 17px;
    font-weight: 700;
    color: #050B20;
    margin: 0 0 4px;
}

.creek-booking-modal .selected-car-info .car-details .car-rate {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
}

.creek-booking-modal .selected-car-info .car-details .car-rate span {
    color: #999;
    font-weight: 400;
    font-size: 12px;
}

.creek-booking-form .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.creek-booking-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.creek-booking-form .form-group.full {
    flex: 1 1 100%;
}

.creek-booking-form .form-group label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #050B20;
    margin-bottom: 8px;
}

.creek-booking-form .form-group select,
.creek-booking-form .form-group input {
    height: 46px;
    padding: 0 14px;
    border: 1px solid #D9DEE8;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #050B20;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.creek-booking-form .form-group select:focus,
.creek-booking-form .form-group input:focus {
    border-color: var(--color-primary);
}

.creek-booking-form .form-group textarea {
    padding: 12px 14px;
    border: 1px solid #D9DEE8;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #050B20;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.creek-booking-form .form-group textarea:focus {
    border-color: var(--color-primary);
}

.creek-booking-form .booking-summary {
    background: #F8FAFD;
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
    font-size: 14px;
    color: #050B20;
}

.creek-booking-form .booking-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.creek-booking-form .booking-summary .summary-row.total {
    border-top: 1px solid #E2E7F0;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 16px;
}

.creek-booking-form .booking-summary .summary-row .label {
    color: #777;
}

.creek-booking-form .form-error {
    display: none;
    background: #FFF3CD;
    color: #856404;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

.creek-booking-form .modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.creek-booking-form .btn-cancel {
    flex: 1;
    padding: 14px;
    border: 1.5px solid #D9DEE8;
    border-radius: 50px;
    background: #fff;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.creek-booking-form .btn-cancel:hover {
    border-color: #050B20;
    color: #050B20;
}

.creek-booking-form .btn-submit {
    flex: 2;
    padding: 14px;
    border: none;
    border-radius: 50px;
    background: var(--color-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(255, 90, 10, 0.25);
}

.creek-booking-form .btn-submit:hover {
    background: #050B20;
    box-shadow: 0 6px 18px rgba(5, 11, 32, 0.25);
}

.creek-booking-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Car card loading state --- */
.creek-car-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

.creek-car-loading .spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid #E2E7F0;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: creekSpin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes creekSpin {
    to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 580px) {
    .creek-booking-modal .modal-header,
    .creek-booking-modal .modal-body {
        padding: 20px 20px;
    }

    .creek-booking-form .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .creek-booking-form .modal-footer {
        flex-direction: column-reverse;
    }

    .creek-booking-form .btn-cancel,
    .creek-booking-form .btn-submit {
        width: 100%;
    }

    .creek-book-plus {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

/* --- Account page: bookings table enhancements --- */
.booking-cancel-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #B02A10;
    background: #FDE5DC;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-cancel-btn:hover {
    background: #B02A10;
    color: #fff;
}

.booking-cancel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
