/**
 * Hotel Booking System - Frontend Styles
 */

.hbs-booking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hbs-booking-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.hbs-booking-wrapper h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

.hbs-booking-wrapper h3 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Form Styles */
.hbs-form {
    margin-bottom: 20px;
}

.hbs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.hbs-form-row.full {
    grid-template-columns: 1fr;
}

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

.hbs-form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.hbs-form-group input,
.hbs-form-group select,
.hbs-form-group textarea {
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.hbs-form-group input:focus,
.hbs-form-group select:focus,
.hbs-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

/* Button Styles */
.hbs-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hbs-btn-primary {
    background-color: #3498db;
    color: white;
}

.hbs-btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.hbs-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.hbs-btn-secondary:hover {
    background-color: #7f8c8d;
}

.hbs-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
}

/* Search Section */
.hbs-search-section {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

/* Rooms Section */
.hbs-rooms-section {
    margin-bottom: 30px;
}

.hbs-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hbs-room-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hbs-room-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.hbs-room-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.hbs-room-card p {
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.hbs-room-type {
    color: #7f8c8d;
    font-style: italic;
}

.hbs-room-price {
    font-size: 16px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 15px;
}

.hbs-room-card .hbs-btn {
    width: 100%;
}

/* Booking Details Section */
.hbs-booking-details {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.hbs-selected-room {
    background: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

/* Payment Methods */
.hbs-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hbs-radio,
.hbs-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.hbs-radio input,
.hbs-checkbox input {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.hbs-radio span,
.hbs-checkbox span {
    color: #2c3e50;
}

/* Payment Section */
.hbs-payment-section {
    background: white;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.hbs-card-element {
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    background: white;
}

.hbs-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* Price Summary */
.hbs-price-summary {
    background: white;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.hbs-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

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

.hbs-summary-row.hbs-total {
    font-weight: 600;
    font-size: 16px;
    color: #27ae60;
    padding: 15px 0;
    border-top: 2px solid #ecf0f1;
}

/* Loading Spinner */
.hbs-loading {
    text-align: center;
    padding: 40px;
}

.hbs-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: hbs-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes hbs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hbs-loading p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Success Message */
.hbs-success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 20px;
    color: #155724;
    text-align: center;
}

.hbs-success-message h3 {
    color: #155724;
    margin-bottom: 10px;
}

.hbs-success-message p {
    margin-bottom: 10px;
}

/* Error Message */
.hbs-error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 20px;
    color: #721c24;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hbs-booking-wrapper {
        padding: 20px;
    }

    .hbs-form-row {
        grid-template-columns: 1fr;
    }

    .hbs-rooms-grid {
        grid-template-columns: 1fr;
    }

    .hbs-btn-large {
        padding: 14px 24px;
        font-size: 14px;
    }

    .hbs-summary-row {
        font-size: 13px;
    }

    .hbs-payment-methods {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hbs-booking-container {
        padding: 10px;
    }

    .hbs-booking-wrapper {
        padding: 15px;
    }

    .hbs-booking-wrapper h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .hbs-booking-wrapper h3 {
        font-size: 18px;
    }

    .hbs-form-group input,
    .hbs-form-group select,
    .hbs-form-group textarea {
        font-size: 16px;
    }

    .hbs-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}
