/**
 * ============================================================================
 * FILE: booking-popup.css - Simplified
 * ============================================================================
 *
 * CSS tối giản cho modal đặt phòng
 *
 * @package     VielimousineChild
 * @version     3.0.0 (Simplified)
 * ============================================================================
 */

/* ==========================================================================
   1. MODAL BASE
   ========================================================================== */

.vie-modal {
    position: fixed;
    inset: 0;
    z-index: var(--vie-z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--vie-space-4);
}

.vie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.vie-modal-container {
    position: relative;
    background: var(--vie-white);
    border-radius: var(--vie-radius);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 600px;
}

body.vie-modal-open {
    overflow: hidden;
}

.vie-modal-close {
    position: absolute;
    top: var(--vie-space-4);
    right: var(--vie-space-4);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--vie-bg-light);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vie-modal-close:hover {
    background: var(--vie-border);
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */

.vie-booking-header {
    padding: var(--vie-space-6);
    text-align: center;
    border-bottom: 1px solid var(--vie-border);
}

.vie-booking-room-name {
    margin: 0 0 var(--vie-space-2);
    font-size: var(--vie-text-xl);
    color: var(--vie-text);
}

.vie-booking-price {
    color: var(--vie-primary);
    font-size: var(--vie-text-lg);
}

.vie-booking-price strong {
    font-weight: var(--vie-font-bold);
}

/* ==========================================================================
   3. STEPS
   ========================================================================== */

.vie-booking-steps {
    display: flex;
    justify-content: center;
    gap: var(--vie-space-8);
    padding: var(--vie-space-5);
    border-bottom: 1px solid var(--vie-border);
}

.vie-step {
    display: flex;
    align-items: center;
    gap: var(--vie-space-2);
    opacity: 0.4;
}

.vie-step.active {
    opacity: 1;
}

.vie-step-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vie-border);
    border-radius: 50%;
    font-size: var(--vie-text-sm);
    font-weight: var(--vie-font-semibold);
}

.vie-step.active .vie-step-num {
    background: var(--vie-primary);
    color: var(--vie-white);
}

/* ==========================================================================
   4. FORM
   ========================================================================== */

.vie-booking-step-content {
    padding: var(--vie-space-6);
}

.vie-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--vie-space-3);
    margin-bottom: var(--vie-space-5);
    padding-bottom: var(--vie-space-4);
    border-bottom: 1px solid var(--vie-border);
}

.vie-detail-meta .vie-meta-item {
    display: flex;
    align-items: center;
    gap: var(--vie-space-2);
    font-size: var(--vie-text-sm);
    color: var(--vie-text);
    background: var(--vie-bg-light);
    padding: var(--vie-space-2) var(--vie-space-3);
    border-radius: var(--vie-radius);
}

.vie-detail-meta .vie-meta-item .dashicons {
    color: var(--vie-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.vie-detail-section {
    margin-bottom: var(--vie-space-5);
}

.vie-detail-section h4 {
    font-size: var(--vie-text-sm);
    font-weight: var(--vie-font-bold);
    text-transform: uppercase;
    color: var(--vie-text);
    margin: 0 0 var(--vie-space-3);
    letter-spacing: 0.05em;
}

.vie-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vie-space-2);
}

.vie-amenities-list .vie-amenity {
    padding: var(--vie-space-2) var(--vie-space-3);
    background: var(--vie-white);
    border: 1px solid var(--vie-border);
    border-radius: var(--vie-radius-full);
    font-size: var(--vie-text-xs);
    color: var(--vie-text);
    font-weight: var(--vie-font-medium);
    display: flex;
    align-items: center;
    gap: var(--vie-space-1);
}

.vie-amenities-list .vie-amenity::before {
    content: '\f147';
    /* dashicons-yes */
    font-family: 'dashicons';
    color: var(--vie-success);
    font-size: 14px;
}

.vie-booking-step-content h3 {
    margin: 0 0 var(--vie-space-4);
    font-size: var(--vie-text-lg);
    font-weight: var(--vie-font-semibold);
    color: var(--vie-text);
    padding-bottom: var(--vie-space-3);
    border-bottom: 1px solid var(--vie-border);
}

.vie-booking-step-content h4 {
    margin: var(--vie-space-4) 0 var(--vie-space-3);
    font-size: var(--vie-text-base);
    font-weight: var(--vie-font-semibold);
    color: var(--vie-text);
}

/* Form Groups */
.vie-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--vie-space-4);
    margin-bottom: var(--vie-space-4);
}

.vie-form-group {
    margin-bottom: var(--vie-space-4);
}

.vie-form-group label {
    display: block;
    font-size: var(--vie-text-sm);
    font-weight: var(--vie-font-medium);
    color: var(--vie-text);
    margin-bottom: var(--vie-space-2);
}

.vie-form-group label .required {
    color: var(--vie-danger);
}

/* Form Controls */
.vie-form-group input[type="text"],
.vie-form-group input[type="email"],
.vie-form-group input[type="tel"],
.vie-form-group select,
.vie-form-group textarea {
    width: 100%;
    padding: var(--vie-space-3);
    border: 1px solid var(--vie-border);
    border-radius: var(--vie-radius);
    font-size: var(--vie-text-sm);
    font-family: inherit;
    background: var(--vie-white);
}

.vie-form-group input:focus,
.vie-form-group select:focus,
.vie-form-group textarea:focus {
    outline: none;
    border-color: var(--vie-primary);
}

.vie-form-group select {
    cursor: pointer;
}

.vie-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================================================
   5. PRICE TYPE RADIO
   ========================================================================== */

.vie-price-type {
    margin-bottom: var(--vie-space-4);
}

.vie-price-type>label {
    display: block;
    font-size: var(--vie-text-sm);
    font-weight: var(--vie-font-medium);
    color: var(--vie-text);
    margin-bottom: var(--vie-space-3);
}

.vie-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--vie-space-3);
}

.vie-radio {
    display: flex;
    align-items: flex-start;
    gap: var(--vie-space-3);
    padding: var(--vie-space-4);
    border: 2px solid var(--vie-border);
    border-radius: var(--vie-radius);
    cursor: pointer;
    position: relative;
}

.vie-radio:hover {
    border-color: var(--vie-primary);
}

.vie-radio input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 2px 0 0 0;
    accent-color: var(--vie-primary);
    cursor: pointer;
}

.vie-radio:has(input:checked) {
    border-color: var(--vie-primary);
    background: var(--vie-primary-50);
}

.vie-radio-recommended {
    border-color: var(--vie-warning);
}

.vie-radio-recommended:has(input:checked) {
    border-color: var(--vie-warning);
    background: var(--vie-warning-bg);
}

.vie-radio-badge {
    position: absolute;
    top: -10px;
    left: var(--vie-space-3);
    padding: var(--vie-space-1) var(--vie-space-2);
    background: var(--vie-warning);
    color: var(--vie-white);
    font-size: 10px;
    font-weight: var(--vie-font-bold);
    text-transform: uppercase;
    border-radius: var(--vie-radius);
}

.vie-radio span {
    flex: 1;
}

.vie-radio strong {
    display: block;
    font-size: var(--vie-text-sm);
    font-weight: var(--vie-font-semibold);
    color: var(--vie-text);
    margin-bottom: 2px;
}

.vie-radio small {
    font-size: var(--vie-text-xs);
    color: var(--vie-text-muted);
}

/* ==========================================================================
   6. PRICE SUMMARY
   ========================================================================== */

.vie-price-summary {
    background: var(--vie-bg-light);
    border-radius: var(--vie-radius);
    padding: var(--vie-space-4);
    margin-bottom: var(--vie-space-4);
}

.vie-summary-placeholder {
    text-align: center;
    color: var(--vie-text-muted);
    padding: var(--vie-space-4);
}

.vie-summary-placeholder p {
    margin: 0;
}

.vie-price-summary.has-data .vie-summary-placeholder {
    display: none;
}

.vie-summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--vie-space-2) 0;
    font-size: var(--vie-text-sm);
}

.vie-summary-row.vie-summary-total {
    margin-top: var(--vie-space-3);
    padding-top: var(--vie-space-3);
    border-top: 2px solid var(--vie-border);
    font-size: var(--vie-text-lg);
    font-weight: var(--vie-font-bold);
}

.vie-summary-row.vie-summary-total .vie-summary-value {
    color: var(--vie-primary);
    font-size: var(--vie-text-xl);
}

/* ==========================================================================
   7. COUPON
   ========================================================================== */

.vie-coupon-input-group {
    display: flex;
    gap: var(--vie-space-2);
}

.vie-coupon-input-group input {
    flex: 1;
}

.vie-coupon-message {
    margin-top: var(--vie-space-2);
    padding: var(--vie-space-2) var(--vie-space-3);
    border-radius: var(--vie-radius);
    font-size: var(--vie-text-sm);
}

.vie-coupon-message.success {
    background: var(--vie-success-bg);
    color: var(--vie-success-text);
}

.vie-coupon-message.error {
    background: var(--vie-danger-bg);
    color: var(--vie-danger-text);
}

/* ==========================================================================
   8. BOOKING SUMMARY
   ========================================================================== */

.vie-booking-summary {
    background: var(--vie-bg-light);
    border-radius: var(--vie-radius);
    padding: var(--vie-space-4);
    margin-bottom: var(--vie-space-4);
}

.vie-summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--vie-space-2) 0;
    font-size: var(--vie-text-sm);
    border-bottom: 1px dashed var(--vie-border);
}

.vie-summary-item:last-child {
    border-bottom: none;
}

.vie-summary-item.total {
    font-weight: var(--vie-font-bold);
    font-size: var(--vie-text-lg);
    padding-top: var(--vie-space-3);
    margin-top: var(--vie-space-2);
    border-top: 2px solid var(--vie-border);
    border-bottom: none;
}

/* ==========================================================================
   9. TRANSPORT SECTION
   ========================================================================== */

.vie-transport-section {
    margin-top: var(--vie-space-4);
    padding: var(--vie-space-4);
    background: var(--vie-bg-light);
    border-radius: var(--vie-radius);
    border: 1px solid var(--vie-border);
}

.vie-transport-note {
    margin-top: var(--vie-space-3);
    padding: var(--vie-space-2) var(--vie-space-3);
    background: var(--vie-white);
    border-radius: var(--vie-radius);
    border-left: 3px solid var(--vie-primary);
    font-size: var(--vie-text-xs);
    color: var(--vie-text-muted);
}

.vie-transport-error {
    margin-top: var(--vie-space-3);
    padding: var(--vie-space-2) var(--vie-space-3);
    background: var(--vie-danger-bg);
    border-radius: var(--vie-radius);
    border-left: 3px solid var(--vie-danger);
    color: var(--vie-danger);
    font-size: var(--vie-text-xs);
    font-weight: var(--vie-font-medium);
}

/* ==========================================================================
   10. INVOICE SECTION
   ========================================================================== */

.vie-checkbox {
    display: flex;
    align-items: center;
    gap: var(--vie-space-2);
    cursor: pointer;
}

.vie-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--vie-primary);
    cursor: pointer;
}

.vie-invoice-info {
    margin-top: var(--vie-space-3);
    padding-top: var(--vie-space-3);
    border-top: 1px dashed var(--vie-border);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.vie-booking-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--vie-space-3);
    padding: var(--vie-space-5);
    border-top: 1px solid var(--vie-border);
    background: var(--vie-bg-light);
}

/* ==========================================================================
   12. BUTTONS
   ========================================================================== */

.vie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--vie-space-2);
    padding: var(--vie-space-3) var(--vie-space-5);
    border: none;
    border-radius: var(--vie-radius);
    font-size: var(--vie-text-sm);
    font-weight: var(--vie-font-semibold);
    cursor: pointer;
    text-align: center;
}

.vie-btn-primary {
    background: var(--vie-primary);
    color: var(--vie-white);
}

.vie-btn-primary:hover:not(:disabled) {
    background: var(--vie-primary-light);
}

.vie-btn-secondary {
    background: var(--vie-white);
    color: var(--vie-text);
    border: 1px solid var(--vie-border);
}

.vie-btn-secondary:hover {
    background: var(--vie-bg-light);
}

.vie-btn-outline {
    background: var(--vie-white);
    color: var(--vie-primary);
    border: 1px solid var(--vie-primary);
}

.vie-btn-outline:hover {
    background: var(--vie-primary);
    color: var(--vie-white);
}

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

/* ==========================================================================
   13. HELPERS
   ========================================================================== */

.vie-help-text {
    margin-top: var(--vie-space-2);
    font-size: var(--vie-text-xs);
    color: var(--vie-text-muted);
}

.vie-children-ages-booking .vie-ages-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vie-space-3);
    margin-bottom: var(--vie-space-2);
}

.vie-children-ages-booking .vie-age-item {
    display: flex;
    align-items: center;
    gap: var(--vie-space-2);
}

.vie-children-ages-booking .vie-age-item span {
    font-size: var(--vie-text-sm);
    color: var(--vie-text);
    font-weight: var(--vie-font-medium);
}

.vie-children-ages-booking .vie-age-item select {
    width: auto;
    min-width: 80px;
    padding: var(--vie-space-2) var(--vie-space-3);
    border: 1px solid var(--vie-border);
    border-radius: var(--vie-radius-sm);
    font-size: var(--vie-text-sm);
    font-family: inherit;
    background: var(--vie-white);
    cursor: pointer;
    height: 36px;
    /* Fix height alignment */
}

.vie-children-ages-booking .vie-age-item select:focus {
    outline: none;
    border-color: var(--vie-primary);
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
    .vie-modal {
        padding: var(--vie-space-2);
    }

    .vie-modal-container {
        max-height: 95vh;
    }

    .vie-booking-header {
        padding: var(--vie-space-4);
    }

    .vie-booking-steps {
        gap: var(--vie-space-4);
        padding: var(--vie-space-3);
    }

    .vie-booking-step-content {
        padding: var(--vie-space-4);
    }

    .vie-form-row {
        grid-template-columns: 1fr;
    }

    .vie-radio-group {
        grid-template-columns: 1fr;
    }

    .vie-booking-footer {
        flex-direction: column-reverse;
        padding: var(--vie-space-4);
    }

    .vie-btn {
        width: 100%;
    }

    .vie-coupon-input-group {
        flex-direction: column;
    }
}