/* EquaHotel Book Now System - Enhanced Styles */
.equahotel-book-now-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d3748;
    line-height: 1.6;
}

/* Hero Section */
.booking-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.booking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,0 1000,100 0,100"></polygon></svg>');
    background-size: cover;
}

.booking-hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.booking-hero-content p {
    font-size: 1.4em;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Container */
.booking-main-container {
    display: grid;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.section-header p {
    font-size: 1.2em;
    color: #718096;
    margin: 0;
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.room-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.room-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-card:hover .room-card-image img {
    transform: scale(1.1);
}

.room-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-icon {
    font-size: 4em;
    opacity: 0.8;
}

.room-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-card:hover .room-card-overlay {
    opacity: 1;
}

.select-room-btn {
    background: white;
    color: #2d3748;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-room-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.room-card-content {
    padding: 25px;
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.room-card-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #2d3748;
    flex: 1;
}

.room-number {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.room-types {
    margin-bottom: 15px;
}

.room-type {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.room-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.room-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 16px;
}

.feature-text {
    font-size: 14px;
    color: #718096;
}

.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.room-price .price-amount {
    font-size: 1.5em;
    font-weight: 700;
    color: #2d3748;
    display: block;
}

.room-price .price-period {
    font-size: 12px;
    color: #718096;
}

.book-now-card-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-now-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Booking Form Section */
.booking-form-section {
    background: #f7fafc;
    padding: 60px 0;
    border-radius: 30px;
}

.booking-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.2em;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px 0;
}

.form-header p {
    font-size: 1.1em;
    color: #718096;
    margin: 0;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.form-section h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #a0aec0;
}

.modern-input, .modern-select, .modern-textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    box-sizing: border-box;
}

.modern-input:focus, .modern-select:focus, .modern-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-textarea {
    padding: 15px;
    min-height: 120px;
    resize: vertical;
}

/* Room Details Preview */
.room-details-preview {
    background: linear-gradient(135deg, #f8faff, #f0f4ff);
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid #e2e8f0;
}

.room-preview-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    align-items: start;
}

.room-preview-image {
    border-radius: 12px;
    overflow: hidden;
    height: 150px;
}

.room-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-preview-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    color: #2d3748;
}

.room-preview-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.room-preview-feature {
    background: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.room-preview-amenities h5 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1em;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amenity-item {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Booking Summary */
.booking-summary-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 30px;
    border-radius: 15px;
    color: white;
}

.booking-summary-section h3 {
    margin: 0 0 25px 0;
    font-size: 1.4em;
    color: white;
}

.booking-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    font-weight: 500;
}

.summary-item .value {
    font-weight: 600;
}

.summary-item.price-item {
    font-size: 1.1em;
}

.summary-item.total-item {
    font-size: 1.3em;
    font-weight: 700;
    padding-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.book-now-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.book-now-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4);
}

.book-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.booking-note {
    margin-top: 15px;
    font-size: 14px;
    color: #718096;
    text-align: center;
}

/* Modal Styles */
.equahotel-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.success-animation, .error-animation {
    margin-bottom: 25px;
}

.success-icon, .error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto;
}

.success-icon {
    background: #48bb78;
    color: white;
}

.error-icon {
    background: #e53e3e;
    color: white;
}

.modal-content h3 {
    font-size: 1.8em;
    margin: 0 0 15px 0;
    color: #2d3748;
}

.modal-content p {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.6;
}

.booking-details {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* No Rooms Message */
.no-rooms-message {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.no-rooms-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-rooms-message h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.no-rooms-message p {
    color: #718096;
    margin: 0;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rooms-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .booking-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .equahotel-book-now-wrapper {
        padding: 0 15px;
    }
    
    .booking-hero-content h1 {
        font-size: 2.5em;
    }
    
    .booking-hero-content p {
        font-size: 1.2em;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .room-preview-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .room-features {
        grid-template-columns: 1fr;
    }
    
    .room-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }
    
    .book-now-btn {
        min-width: auto;
        width: 100%;
        padding: 18px 30px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .booking-hero {
        padding: 60px 0;
    }
    
    .booking-hero-content h1 {
        font-size: 2em;
    }
    
    .section-header h2 {
        font-size: 2em;
    }
    
    .booking-form-container {
        padding: 30px 20px;
    }
    
    .modal-content {
        padding: 40px 25px;
    }
}