/**
 * Enhanced Booking Modal CSS v2
 * File: assets/css/booking-modal-enhanced-v2.css
 * 
 * Includes: Dual file upload (front/back ID) + Complete address fields
 */

/* ========== BASE MODAL STYLES (same as before) ========== */

.rrs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rrs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.rrs-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.rrs-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f7f7f7;
    color: #484848;
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rrs-modal-close:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.rrs-modal-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.rrs-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #222222;
}

.rrs-modal-body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 32px 40px;
}

/* ========== FORM SECTION ========== */

.rrs-modal-form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 10px 0;
    padding-bottom: 12px;
}

.rrs-form-group {
    margin-bottom: 20px;
}

.rrs-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 8px;
}

.rrs-form-group label .required {
    color: #ff385c;
    margin-left: 4px;
}

.rrs-form-group input[type="text"],
.rrs-form-group input[type="email"],
.rrs-form-group input[type="tel"],
.rrs-form-group textarea,
.rrs-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #0000000f;
    border-radius: 4px;
    font-size: 14px;
    color: #000000;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
}

.rrs-form-group textarea {
    min-height: 60px;
    resize: vertical;
}

.rrs-form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23222' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    appearance: none;
    padding-right: 40px;
}

.rrs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

/* ========== DUAL FILE UPLOAD ========== */

.rrs-dual-file-upload {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.rrs-file-upload-single {
    position: relative;
}

.rrs-file-upload-single input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.rrs-file-upload-label-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    border: 2px dashed #dddddd;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 140px;
    text-align: center;
}

.rrs-file-upload-label-single:hover {
    border-color: #222222;
    background: #f5f5f5;
}

.rrs-file-upload-single.drag-over .rrs-file-upload-label-single {
    border-color: #ff385c;
    background: #fff5f7;
    border-style: solid;
}

.rrs-file-upload-label-single.has-file {
    border-color: #00a699;
    background: #f0fff4;
    border-style: solid;
}

.rrs-file-icon-single {
    font-size: 32px;
    margin-bottom: 8px;
}

.rrs-file-text-single {
    font-size: 13px;
    color: #717171;
    font-weight: 600;
    margin-bottom: 6px;
}

.rrs-file-subtext {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.rrs-file-name-single {
    font-size: 12px;
    color: #222222;
    font-weight: 600;
    margin-top: 8px;
    word-break: break-word;
}

.rrs-file-help-dual {
    display: block;
    font-size: 12px;
    color: #717171;
    margin-top: 8px;
    text-align: center;
    grid-column: 1 / -1;
}

/* ========== ADDRESS SECTION ========== */

.rrs-address-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
}

.rrs-address-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rrs-address-section h4::before {
    content: "📍";
    font-size: 20px;
}

/* ========== IDENTIFICATION SECTION ========== */

.rrs-identification-section {
    background: #b18a2a0a;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #b18a2a0a;
    margin-bottom: 20px;
}

.rrs-identification-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rrs-identification-section h4::before {
    content: "🆔";
    font-size: 20px;
}

.rrs-id-type-note {
    background: #fff;
    padding: 12px;
    border-left: 4px solid #ff385c;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #555;
}

.rrs-id-type-note strong {
    display: block;
    margin-bottom: 4px;
    color: #222;
}

/* ========== ROOM DETAILS SECTION ========== */

.rrs-modal-room-section {
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.rrs-room-details-card {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
}

.rrs-room-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #e0e0e0;
}

.rrs-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rrs-room-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.rrs-room-name {
    font-size: 20px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 16px 0;
}

.rrs-room-price {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    margin: 0 0 4px 0;
}

.rrs-room-price-period {
    font-size: 14px;
    color: #717171;
    margin-bottom: 20px;
}

.rrs-booking-summary-list {
    border-top: 1px solid #dddddd;
    padding-top: 16px;
    margin-bottom: 20px;
}

.rrs-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

.rrs-summary-label {
    color: #717171;
    font-weight: 500;
}

.rrs-summary-value {
    color: #222222;
    font-weight: 600;
}

.rrs-summary-item.total {
    border-top: 1px solid #dddddd;
    margin-top: 12px;
    padding-top: 16px;
}

.rrs-summary-item.total .rrs-summary-label {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
}

.rrs-summary-item.total .rrs-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
}

.rrs-payment-info {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.rrs-payment-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 8px 0;
}

.rrs-payment-method {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #717171;
    font-size: 14px;
}

.rrs-payment-method .payment-icon {
    width: 32px;
    height: 20px;
    background: #5469d4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 10px;
}

/* ========== MESSAGES ========== */

#rrs-modal-messages,
#rrs-split-modal-messages {
    margin-bottom: 20px;
}

.rrs-message {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    animation: messageSlide 0.3s ease-out;
}

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

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

.rrs-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.rrs-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 968px) {
    .rrs-modal-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rrs-modal-room-section {
        position: relative;
        order: -1;
    }

    .rrs-dual-file-upload {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rrs-modal {
        padding: 10px;
    }

    .rrs-modal-content {
        border-radius: 12px;
        max-height: 98vh;
    }

    .rrs-modal-header {
        padding: 24px 20px 16px;
    }

    .rrs-modal-body {
        padding: 24px 20px;
        gap: 24px;
    }

    .rrs-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rrs-dual-file-upload {
        grid-template-columns: 1fr;
    }
}

/* ========== VALIDATION STATES ========== */

.rrs-form-group input:invalid:not(:placeholder-shown),
.rrs-form-group textarea:invalid:not(:placeholder-shown),
.rrs-form-group select:invalid:not(:placeholder-shown) {
    border-color: #ff385c;
}

.rrs-form-group input:valid:not(:placeholder-shown),
.rrs-form-group textarea:valid:not(:placeholder-shown),
.rrs-form-group select:valid:not(:placeholder-shown) {
    border-color: #00a699;
}

/* ========== HONEYPOT ========== */

input[name="website"] {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ========== SCROLLBAR ========== */

.rrs-modal-content::-webkit-scrollbar {
    width: 8px;
}

.rrs-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.rrs-modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.rrs-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}