/* ===================================
   Premium Booking Page Styles
   Ethereal Escapes Hotel Theme
   Professional Envato Standards
   =================================== */

/* CSS Variables for Premium Theme */
:root {
    --primary: #1a1a1a;
    --secondary: #d4af37;
    --accent: #8b7355;
    --light: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --border-light: #e8ecef;
    --border-medium: #dee2e6;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Header Enhancement */
.page-header {
    position: relative;
    height: 350px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85), rgba(139, 115, 85, 0.75));
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    font-family: 'Playfair Display', serif;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Premium Booking Container */
.booking-container {
    padding: 80px 0;
    background: var(--light);
    min-height: calc(100vh - 350px);
}

.booking-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.booking-section .container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

/* Left Panel - Booking Form */
.booking-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

/* Premium Progress Steps */
.progress-container {
    background: var(--white);
    padding: 30px 40px;
    border-bottom: 1px solid var(--border-light);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 0;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

.progress-steps::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    background: var(--secondary);
    z-index: 2;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    background: var(--light);
    padding: 12px 16px;
    border-radius: 50px;
    transition: var(--transition);
    min-width: 120px;
    text-align: center;
}

.progress-step.active {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.05);
}

.progress-step.completed {
    background: var(--success);
    color: var(--white);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: rgba(255,255,255,0.3);
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* Step Content */
.step-content {
    padding: 50px;
}

.step-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.step-content p {
    color: #777;
    margin-bottom: 50px;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
}

/* Premium Room Cards - Modern Design */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.room-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

.room-card.selected {
    border-color: var(--secondary);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.25);
    transform: translateY(-4px);
}

.room-card.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(139, 115, 85, 0.02));
    pointer-events: none;
    z-index: 1;
}

.room-card.selected::after {
    content: '✓';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    z-index: 2;
    animation: checkmarkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmarkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.room-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover img {
    transform: scale(1.08);
}

.room-info {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.room-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

.room-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    min-height: 45px;
}

.room-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #555;
}

.room-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-details i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.room-amenities {
    margin-bottom: 20px;
    background: var(--light);
    padding: 18px;
    border-radius: 10px;
}

.room-amenities h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-amenities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.room-amenities li {
    font-size: 0.88rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.room-amenities i {
    color: var(--secondary);
    width: 16px;
    font-size: 0.85rem;
}

.room-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
    margin: 0 -30px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(139, 115, 85, 0.05));
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    font-family: 'Playfair Display', serif;
}

.room-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    font-family: 'Inter', sans-serif;
}

.select-room-btn {
    text-align: center;
    padding: 18px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    margin: 0 -30px -30px -30px;
    transition: all 0.3s ease;
    border-radius: 0 0 14px 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.room-card:hover .select-room-btn {
    background: var(--secondary);
    color: var(--primary);
}

.room-card.selected .select-room-btn {
    background: var(--secondary);
    color: var(--white);
}

/* Premium Date Picker Enhancement */
.date-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.date-group {
    position: relative;
}

.date-group label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.date-input-wrapper {
    position: relative;
}

.date-input-wrapper input {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--border-medium);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.date-input-wrapper input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.date-input-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    pointer-events: none;
    font-size: 1.2rem;
}

/* Guest Selection */
.guest-selection {
    margin-bottom: 40px;
}

.guest-selection label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.guest-selection select {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--border-medium);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.guest-selection select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Premium Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid var(--border-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.error-message {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.error .error-message {
    display: block;
}

/* Premium Payment Options */
.payment-options {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.payment-option {
    border: 2px solid var(--border-medium);
    border-radius: var(--border-radius);
    padding: 25px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    position: relative;
}

.payment-option:hover {
    border-color: var(--secondary);
    background: rgba(212, 175, 55, 0.02);
}

.payment-option.selected {
    border-color: var(--secondary);
    background: rgba(212, 175, 55, 0.05);
}

.payment-option.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 20px;
    width: 25px;
    height: 25px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.payment-option-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
}

.payment-option h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.payment-option p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Card Details */
.card-details {
    margin-top: 30px;
    padding: 25px;
    background: var(--light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    display: none;
}

.card-details.active {
    display: block;
}

.card-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    background: var(--light);
    border-top: 1px solid var(--border-light);
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border-medium);
}

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Right Panel - Booking Summary */
.booking-summary {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 40px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.summary-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light);
}

.summary-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.summary-header p {
    color: #666;
    margin: 0;
}

/* Room Preview in Summary */
.summary-room-preview {
    margin: -20px -40px 30px -40px;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: block !important;
}

.summary-room-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.summary-room-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.summary-room-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 0.95rem;
}

.summary-room-detail i {
    color: var(--secondary);
    width: 20px;
    text-align: center;
}

.summary-content {
    margin-bottom: 35px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.summary-label {
    font-weight: 500;
    color: var(--primary);
}

.summary-value {
    font-weight: 600;
    color: var(--secondary);
}

.summary-total {
    background: var(--light);
    margin: 0 -40px 35px -40px;
    padding: 25px 40px;
    border-top: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

.summary-total .summary-item {
    border: none;
    padding: 0;
    font-size: 1.3rem;
}

.summary-total .summary-label {
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-total .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Premium Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.confirmation-modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    color: #666;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.modal-header {
    text-align: center;
    padding: 60px 40px 30px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--white);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.modal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.modal-body {
    padding: 40px;
}

.confirmation-details {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-medium);
}

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

.confirmation-item .label {
    font-weight: 600;
    color: var(--primary);
}

.confirmation-item .value {
    font-weight: 600;
    color: var(--secondary);
}

.confirmation-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Flatpickr Premium Styling */
.flatpickr-calendar {
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-heavy) !important;
    border: none !important;
}

.flatpickr-months {
    background: var(--secondary) !important;
    color: var(--white) !important;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.flatpickr-current-month {
    color: var(--white) !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: var(--white) !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.flatpickr-day {
    border-radius: 8px !important;
    margin: 2px !important;
}

.flatpickr-day:hover {
    background: var(--secondary) !important;
    color: var(--white) !important;
}

.flatpickr-day.selected {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .booking-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .booking-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .step-content {
        padding: 30px 25px;
    }
    
    .step-navigation {
        padding: 20px 25px;
    }
    
    .booking-summary {
        padding: 25px;
    }
    
    .date-selection {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .progress-step {
        min-width: auto;
        flex: 1;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .booking-container {
        padding: 40px 0;
    }
    
    .booking-section {
        padding: 0 15px;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}