/**
 * VietVed Booking Forms - Hotel Form Styles
 * Полностью соответствует оригиналу Form-hotel.html
 */

/* ==========================================================================
   FORM SECTION
   ========================================================================== */

.vietved-booking-form--hotel .vbf-form-section {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: none;
}

.vietved-booking-form--hotel .vbf-form-title {
    margin: 0 0 30px 0;
    text-align: center;
    font-family: inherit;
    font-size: 32px;
    line-height: 36px;
    font-weight: 700;
    color: #111827;
}

/* ==========================================================================
   ACCOMMODATION SELECTOR (Номер / Вилла)
   ========================================================================== */

.vbf-accommodation-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.vbf-accommodation-btn {
    font-family: inherit !important;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    min-width: 160px;
    text-align: center;
    position: relative;
}

.vbf-accommodation-btn:hover {
    border-color: #0077FF;
    background: #F0F7FF;
    color: #0077FF;
    box-shadow: none;
}

.vbf-accommodation-selector .vbf-accommodation-btn.active {
    border-color: #0077FF !important;
    background-color: #F0F7FF !important;
    background: #F0F7FF !important;
    color: #0077FF !important;
    box-shadow: none !important;
}

.vbf-price-badge {
    display: block;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    margin-top: 4px;
}

.vbf-accommodation-btn.active .vbf-price-badge {
    color: #0077ff;
}

/* ==========================================================================
   ROOM OPTIONS (Вид на море)
   ========================================================================== */

.vbf-room-options {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: none;
}

.vbf-room-options.show {
    display: block;
}

.vbf-room-view-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #1e40af !important;
}

.vbf-room-view-option input[type="checkbox"] {
    display: none;
}

.vbf-room-view-option .vbf-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #3b82f6 !important;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vbf-room-view-option input[type="checkbox"]:checked + .vbf-checkmark {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.vbf-room-view-option input[type="checkbox"]:checked + .vbf-checkmark:after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 3px;
    color: white !important;
    font-size: 14px;
    font-weight: bold;
}

.vbf-room-view-text {
    flex: 1;
    color: #1e40af !important;
}

/* ==========================================================================
   VILLA OPTIONS (Количество комнат)
   ========================================================================== */

.vbf-villa-options {
    margin-bottom: 20px;
    padding: 16px;
    background: #f0f7ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    display: none;
}

.vbf-villa-options.show {
    display: block;
}

.vbf-villa-rooms-label {
    text-align: left !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    color: #3b82f6 !important;
    display: block !important;
}

.vbf-villa-rooms-selector {
    display: flex;
    gap: 8px;
    justify-content: flex-start !important;
    align-items: center;
    flex-wrap: wrap;
}

.vbf-villa-room-btn {
    background: #fff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    min-width: 60px;
    text-align: center;
}

.vbf-villa-room-btn:hover {
    background: #f0f7ff;
}

.vbf-villa-room-btn.active {
    background: #3b82f6;
    color: #fff;
}

/* ==========================================================================
   INFO SECTION
   ========================================================================== */

.vbf-info-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.vbf-info-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 16px;
}

.vbf-info-text {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.vbf-info-description {
    margin-bottom: 16px;
    line-height: 1.6;
}

.vbf-info-description .vbf-highlight {
    color: #1e293b;
    font-weight: 700;
    background: none;
}

.vbf-info-description .vbf-badge {
    display: inline-flex;
    align-items: center;
    background: #FFF3EA;
    color: #FF5B00;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 5px 2px 2px 2px;
}

.vbf-info-included {
    margin-top: 16px;
}

.vbf-info-included-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 15px;
}

.vbf-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vbf-info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    padding-left: 0;
    font-size: 14px;
}

.vbf-info-list li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
    margin-right: 6px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ==========================================================================
   NOTES
   ========================================================================== */

.vbf-note-children {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    white-space: pre-line;
}

.vbf-note-important {
    font-size: 13px;
    color: #374151;
    margin-top: 12px;
    font-weight: 500;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

/* ==========================================================================
   HINT (Error message inline)
   ========================================================================== */

.vbf-hint {
    margin-top: 8px;
    color: #ef4444;
    font-size: 14px;
    display: none;
}

.vbf-hint.show {
    display: block;
}

/* ==========================================================================
   SUMMARY BOX
   ========================================================================== */

.vbf-summary {
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 16px;
}

.vbf-summary strong {
    color: #111827;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .vietved-booking-form--hotel .vbf-container {
        max-width: 100%;
        padding: 0px;
        margin: 0;
    }

    .vietved-booking-form--hotel .vbf-form-section {
        border-radius: 0;
        margin: 0;
        padding: 20px;
        box-shadow: none;
        min-height: 100vh;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    .vbf-accommodation-selector {
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        padding: 0;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .vbf-accommodation-btn {
        min-width: 120px;
        width: auto;
        padding: 14px 12px;
        font-size: 15px;
        flex-shrink: 0;
    }

    .vbf-price-badge {
        font-size: 12px;
        margin-top: 2px;
    }

    .vietved-booking-form--hotel .vbf-form-title {
        font-size: 24px;
        line-height: 28px;
    }
}
