/* =========================================================
   FOS7TY — BOOKING MODAL
   ========================================================= */

.fos7ty-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.fos7ty-booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.fos7ty-booking-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: fos7tyModalIn 0.3s ease;
}

@keyframes fos7tyModalIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fos7ty-booking-close {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    font-family: Arial, sans-serif;
}

.fos7ty-booking-close:hover {
    background: #d32f2f;
    color: #fff;
}

.fos7ty-booking-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
}

.fos7ty-booking-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.fos7ty-booking-product-name {
    margin: 0;
    font-size: 14px;
    color: #004764;
    font-weight: 600;
}

/* =========================================================
   FORM
   ========================================================= */
.fos7ty-booking-form {
    padding: 25px 30px 30px;
}

.fos7ty-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 25px;
}

.fos7ty-fieldset legend {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #004764;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #004764;
    width: 100%;
}

.fos7ty-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.fos7ty-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.fos7ty-field {
    display: flex;
    flex-direction: column;
}

.fos7ty-field label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.fos7ty-field input,
.fos7ty-field select,
.fos7ty-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.fos7ty-field input:focus,
.fos7ty-field select:focus,
.fos7ty-field textarea:focus {
    outline: none;
    border-color: #004764;
    box-shadow: 0 0 0 3px rgba(0, 71, 100, 0.1);
}

.fos7ty-field input:invalid:not(:placeholder-shown) {
    border-color: #dc3232;
}

.fos7ty-field textarea {
    resize: vertical;
    min-height: 70px;
}

/* =========================================================
   MESSAGES
   ========================================================= */
.fos7ty-booking-message {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.fos7ty-booking-message.error {
    display: block;
    background: #fdecec;
    color: #8a1c1c;
    border: 1px solid #f3b8b8;
}

.fos7ty-booking-message.success {
    display: block;
    background: #e6f7ec;
    color: #0a6b2b;
    border: 1px solid #b6e6c6;
}

/* =========================================================
   SUBMIT
   ========================================================= */
.fos7ty-booking-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.fos7ty-booking-submit {
    width: 100% !important;
    padding: 16px !important;
    font-size: 17px !important;
    cursor: pointer;
}

.fos7ty-booking-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   SUCCESS SCREEN
   ========================================================= */
.fos7ty-booking-success {
    padding: 50px 40px 40px;
    text-align: center;
}

.fos7ty-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.fos7ty-booking-success h3 {
    font-size: 24px;
    color: #111;
    margin: 0 0 15px;
}

.fos7ty-success-number {
    font-size: 18px;
    color: #004764;
    font-weight: 700;
    margin: 0 0 15px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    display: inline-block;
}

.fos7ty-success-message {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
    .fos7ty-booking-modal {
        padding: 0;
        align-items: flex-start;
    }

    .fos7ty-booking-dialog {
        max-height: 100vh;
        border-radius: 0;
        min-height: 100vh;
    }

    .fos7ty-booking-header {
        border-radius: 0;
        padding: 60px 20px 15px;
    }

    .fos7ty-booking-form {
        padding: 20px 20px 25px;
    }

    .fos7ty-grid-2,
    .fos7ty-grid-3 {
        grid-template-columns: 1fr;
    }

    .fos7ty-booking-close {
        top: 15px;
        left: 15px;
    }
}

/* منع السكرول لما الـ Modal مفتوح */
body.fos7ty-modal-open {
    overflow: hidden;
}
/* =========================================================
   CAR OPTIONS (Booking Form)
   ========================================================= */
.fos7ty-car-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fos7ty-car-option {
    display: block;
    cursor: pointer;
    margin: 0;
}

.fos7ty-car-option input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fos7ty-car-option-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.fos7ty-car-option:hover .fos7ty-car-option-content {
    border-color: #004764;
    background: #f8fafc;
}

.fos7ty-car-option input:checked + .fos7ty-car-option-content {
    border-color: #004764;
    background: #f0f7fa;
    box-shadow: 0 0 0 3px rgba(0, 71, 100, 0.08);
}

.fos7ty-car-option-name {
    font-weight: 700;
    color: #111;
    font-size: 15px;
    min-width: 100px;
}

.fos7ty-car-option-details {
    flex: 1;
    font-size: 13px;
    color: #666;
}

.fos7ty-car-option-price {
    font-size: 17px;
    font-weight: 800;
    color: #d32f2f;
    white-space: nowrap;
}

.fos7ty-selected-price {
    padding: 14px 18px;
    background: #ecfdf5;
    border-right: 4px solid #10b981;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    color: #065f46;
    text-align: center;
}