/**
 * VikBooking Custom Styles for Booking Confirmation Page
 * Includes styles for booking details, actions, modification/cancellation forms, and upselling
 */

/* ============================================
   1. BOOKING DETAILS ACTIONS SECTION
   ============================================ */

.vbo-booking-details-actions {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.vbo-booking-details-actions-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.vbo-booking-mod-container,
.vbo-booking-canc-container {
    flex: 0 1 auto;
}

.vbo-booking-mod-inner,
.vbo-booking-canc-inner {
    display: flex;
    align-items: center;
}

.vbo-booking-mod-cmd,
.vbo-booking-canc-cmd {
    display: inline-block;
}

.vbo-booking-mod-cmd a,
.vbo-booking-canc-cmd span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.vbo-booking-mod-cmd a:hover,
.vbo-booking-canc-cmd span:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.vbo-booking-precheckin-cmd a {
    background: #28a745;
}

.vbo-booking-precheckin-cmd a:hover {
    background: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.vbo-booking-review-cmd a {
    background: #ffc107;
    color: #000;
}

.vbo-booking-review-cmd a:hover {
    background: #e0a800;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.vbo-booking-canc-cmd span {
    background: #dc3545;
}

.vbo-booking-canc-cmd span:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.vbo-booking-upselling-wrap .vbo-booking-mod-cmd a {
    background: #17a2b8;
}

.vbo-booking-upselling-wrap .vbo-booking-mod-cmd a:hover {
    background: #138496;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.vbo-booking-otabooking-wrap .vbo-otabooking-logo {
    max-height: 40px;
    width: auto;
}

/* ============================================
   2. MODIFICATION/CANCELLATION REQUEST FORMS
   ============================================ */

.vbordcancformbox,
.vbo-booking-cancform-container {
    margin: 30px 0;
    padding: 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.vbo-booking-cancform-inner h4 {
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.vbordcancform-inner {
    max-width: 600px;
    margin: 0 auto;
}

.vbordcancform-entry {
    margin-bottom: 20px;
}

.vbordcancform-entry-label {
    margin-bottom: 8px;
}

.vbordcancform-entry-label label {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.vbordcancform-entry-inp input.vbinput,
.vbordcancform-entry-inp textarea.vbtextarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.vbordcancform-entry-inp input.vbinput:focus,
.vbordcancform-entry-inp textarea.vbtextarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.vbordcancform-entry-inp textarea.vbtextarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.vbordcancform-entry-submit,
.vbo-booking-canc-submit {
    margin-top: 25px;
    text-align: center;
}

.vbordcancform-entry-submit input[type="submit"],
.vbo-booking-canc-submit input[type="submit"],
.btn.vbo-pref-color-btn,
.vbo-btn-cancelbooking {
    padding: 14px 32px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vbordcancform-entry-submit input[type="submit"]:hover,
.vbo-booking-canc-submit input[type="submit"]:hover,
.btn.vbo-pref-color-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.vbo-btn-cancelbooking {
    background: #dc3545;
}

.vbo-btn-cancelbooking:hover {
    background: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.vbo-booking-canc-details-policy {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 25px;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   3. UPSELLING / EXTRAS SECTION
   ============================================ */

.vbo-booking-upsell-container {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.vbo-booking-upsell-container h3 {
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #17a2b8;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.vbo-booking-upsell-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vbo-booking-upsell-room-wrap {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.vbo-booking-upsell-room-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    font-size: 16px;
}

.vbo-booking-upsell-room-name {
    font-weight: 700;
    color: #333;
    font-size: 18px;
}

.vbo-booking-upsell-room-adults,
.vbo-booking-upsell-room-children {
    padding: 4px 12px;
    background: #007bff;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.vbo-booking-upsell-room-children {
    background: #28a745;
}

.vbo-upsell-options-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.vbo-upsell-option-entry {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vbo-upsell-option-entry:hover {
    border-color: #17a2b8;
    box-shadow: 0 4px 16px rgba(23, 162, 184, 0.15);
    transform: translateY(-2px);
}

.vbo-upsell-option-entry-img {
    margin-bottom: 15px;
    text-align: center;
}

.vbo-upsell-option-entry-img img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.vbo-upsell-option-entry-name {
    margin-bottom: 15px;
}

.vbo-upsell-option-entry-name > span {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.vbo-upsell-option-entry-descr {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.vbo-upsell-option-entry-cost {
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.vbo-upsell-option-entry-cost .vbo_currency,
.vbo-upsell-option-entry-cost .vbo_price {
    font-size: 20px;
    font-weight: 700;
    color: #17a2b8;
}

.vbo-upsell-option-entry-input {
    margin-bottom: 12px;
}

.vbo-upsell-option-entry-input select,
.vbo-upsell-option-entry-input input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.vbo-option-upsell-add button {
    width: 100%;
    padding: 12px;
    background: #17a2b8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vbo-option-upsell-add button:hover {
    background: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.vbo-option-upsell-addedtocart {
    border-color: #28a745;
    background: #f0f9f4;
}

/* Upsell Cart */
.vbo-room-upsell-cart {
    margin-top: 20px;
    display: none;
}

.vbo-room-upsell-cart-full {
    display: block;
    padding: 20px;
    background: #fff;
    border: 2px solid #28a745;
    border-radius: 8px;
}

.vbo-room-upsell-cart-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.vbo-room-upsell-cart-option-name {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.vbo-room-upsell-cart-option-cost {
    margin: 0 15px;
    font-weight: 700;
    color: #28a745;
}

.vbo-room-upsell-cart-option-rm button {
    padding: 6px 12px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.vbo-room-upsell-cart-option-rm button:hover {
    background: #c82333;
}

/* Upsell Confirm Section */
.vbo-booking-upsell-confirm {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 8px;
    text-align: center;
}

.vbo-booking-upsell-confirm-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.vbo-booking-upsell-confirm-total {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.vbo-booking-upsell-confirm-txt {
    margin-right: 10px;
}

.vbo-booking-upsell-confirm-currency,
.vbo-booking-upsell-confirm-amount {
    color: #28a745;
}

.vbo-booking-upsell-confirm-btn button {
    padding: 14px 32px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vbo-booking-upsell-confirm-btn button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ============================================
   4. ROOM EXTRAS SECTION
   ============================================ */

.vbo-booking-room-extras {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.vbo-booking-room-extras-options,
.vbo-booking-room-extras-services {
    margin-bottom: 15px;
}

.vbo-booking-room-extras-options:last-child,
.vbo-booking-room-extras-services:last-child {
    margin-bottom: 0;
}

.vbvordcoststitle {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vbo-booking-room-extras-options-list,
.vbo-booking-room-extras-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vbo-booking-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.vbo-booking-pricename {
    font-weight: 500;
    color: #333;
}

.vbo-booking-pricedet {
    font-weight: 600;
    color: #007bff;
}

/* ============================================
   5. ROOM DETAILS BOOKING FORM - BUTTON FIX
   ============================================ */

/* Fix for the Book Now button on roomdetails booking form page */
/* Make button bigger and center it */
.vbo-room-details-booking-wrapper .vbo-search-submit {
    margin: 25px auto 0 auto !important;
    padding: 0 !important;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.vbo-room-details-booking-wrapper .vbo-search-submit .btn.vbdetbooksubmit {
    width: 100%;
    padding: 18px 40px !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

/* Ensure proper spacing in the booking form container */
.vbo-room-details-booking-wrapper .vbdivsearch {
    padding: 0;
}

.vbo-room-details-booking-wrapper .vb-search-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* ============================================
   6. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .vbo-booking-details-actions-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vbo-booking-mod-cmd a,
    .vbo-booking-canc-cmd span {
        width: 100%;
        justify-content: center;
    }
    
    .vbo-upsell-options-wrap {
        grid-template-columns: 1fr;
    }
    
    .vbo-booking-upsell-room-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vbordcancformbox,
    .vbo-booking-cancform-container {
        padding: 20px;
    }
    
    .vbo-room-upsell-cart-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vbo-room-upsell-cart-option-cost {
        margin: 0;
    }
    
    /* Mobile button adjustments */
    .vbo-room-details-booking-wrapper .vbo-search-submit {
        max-width: 100%;
    }
    
    .vbo-room-details-booking-wrapper .vbo-search-submit .btn.vbdetbooksubmit {
        padding: 16px 30px !important;
        font-size: 16px !important;
    }
}

/* ============================================
   7. PRINT STYLES
   ============================================ */

@media print {
    .vbo-hidein-print,
    .vbo-booking-details-actions,
    .vbordcancformbox,
    .vbo-booking-cancform-container,
    .vbo-booking-upsell-container {
        display: none !important;
    }
}

/* ============================================
   8. ADDITIONAL UTILITY STYLES
   ============================================ */

.vbo-booking-canc-policy-wrap {
    margin: 15px 0;
    padding: 15px;
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.vbo-booking-canc-policy-type {
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 8px;
}

.vbo-booking-canc-policy-descr {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

/* Icon styling */
.vbo-booking-mod-cmd i,
.vbo-booking-canc-cmd i {
    font-size: 16px;
}

/* Focus states for accessibility */
.vbo-booking-mod-cmd a:focus,
.vbo-booking-canc-cmd span:focus,
.vbordcancform-entry-submit input[type="submit"]:focus,
.vbo-option-upsell-add button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}