/* Form Styles */
.initial-form,
.quote-form,
.callback-form {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--highlight_color)
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary_color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Fieldset Styles */
fieldset {
    border: 2px solid var(--highlight_color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

fieldset legend {
    font-weight: 600;
    color: var(--primary_color);
    padding: 0 0.5rem;
    font-size: 1.1rem;
}

/* CBE booking — multi-step wizard */
.cbe-booking-wizard .cbe-wizard-progress {
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--highlight_color);
}

.cbe-booking-wizard .cbe-step {
    margin-bottom: 0.5rem;
}

.cbe-booking-wizard .cbe-step[hidden] {
    display: none !important;
}

.cbe-booking-wizard .cbe-step.cbe-step--active:not([hidden]) {
    display: block;
}

.cbe-booking-wizard .cbe-wizard-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 1.5rem;
    padding-top: 0;
}

.cbe-booking-wizard .cbe-wizard-actions__primary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.cbe-booking-wizard .cbe-wizard-actions__secondary {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.cbe-booking-wizard .cbe-wizard-actions__secondary .btn--subtle {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border-color: transparent;
    color: #64748b;
}

.cbe-booking-wizard .cbe-wizard-actions__secondary .btn--subtle:hover,
.cbe-booking-wizard .cbe-wizard-actions__secondary .btn--subtle:focus {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

/* Last step: only Submit; other steps: only Next (some themes ignore button[hidden]) */
.cbe-booking-wizard .cbe-wizard-actions #cbeWizardNext.cbe-wizard-next--off {
    display: none !important;
}

.cbe-booking-wizard .cbe-wizard-actions #cbeWizardSubmit.cbe-wizard-submit--off {
    display: none !important;
}

/* CBE booking — payer radios */
.cbe-payer-field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--highlight_color);
}

.cbe-payer-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

/* Override .form-group label { display:block } and input { width:100% } so text sits beside the radio */
.form-group label.cbe-payer-radio-label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    width: auto;
    max-width: none;
    cursor: pointer;
}

.form-group label.cbe-payer-radio-label input[type="radio"] {
    width: 30px;
    height: 30px;
    max-width: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

/* CBE booking — exam list (loaded from remote feed via cbe-exams-data.php) */
.cbe-booking-wizard .cbe-exam-loading {
    margin: 0 0 0.5rem 0;
    color: #555;
}

.cbe-booking-wizard .cbe-exam-error {
    margin-bottom: 0.75rem;
}

/* CBE booking — session step */
.cbe-booking-wizard .cbe-session-intro {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cbe-booking-wizard .cbe-session-note {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #555;
}

.cbe-booking-wizard .cbe-session-loading {
    margin: 0 0 1rem 0;
    color: #555;
}

.cbe-booking-wizard .cbe-session-error {
    margin-bottom: 1rem;
}

/* CBE booking — date of birth (half-width, aligned with name row) */
.cbe-booking-wizard .cbe-dob-row {
    margin-bottom: 1.5rem;
}

.cbe-booking-wizard .cbe-dob-row .form-group {
    margin-bottom: 0;
}

.cbe-booking-wizard .cbe-dob-row input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 3rem;
    color-scheme: light;
}

.cbe-booking-wizard .cbe-dob-row input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.85;
}

/* CBE booking billing / employer blocks — visibility controlled in cbe-booking.js */
.cbe-booking-wizard .cbe-billing-intro,
.cbe-booking-wizard .cbe-employer-intro {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cbe-booking-wizard .cbe-data-notice {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: 4px;
}

.cbe-booking-wizard .cbe-data-notice p {
    margin: 0 0 0.75rem 0;
}

.cbe-booking-wizard .cbe-data-notice p:last-child {
    margin-bottom: 0;
}

fieldset.cbe-billing-fieldset.cbe-billing-fieldset--collapsed,
fieldset.cbe-employer-fieldset.cbe-employer-fieldset--collapsed {
    display: none !important;
}

/* Trip Summary */
.trip-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary_color);
}

.trip-summary h3 {
    color: var(--primary_color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.summary-item .label {
    font-weight: 600;
    color: #555;
}

.summary-item .value {
    color: #333;
    font-weight: 500;
}

/* Travel Input Form */
.travel-input {
    margin-bottom: 2rem;
}

.travel-input fieldset {
    border: 2px solid var(--primary_color);
    background: #f8f9fa;
}

.travel-input legend {
    color: var(--primary_color);
    font-weight: 600;
}

/* Button Styles */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn-primary {
    /* background: linear-gradient(135deg, var(--primary_color) 0%, #2d3748 100%);
    color: white; */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    /* border-top: 1px solid #e1e5e9; */
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Inventory Grid for Room Items */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.inventory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    background: #fafbfc;
}

.inventory-item label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #555;
}

.inventory-item input[type="number"] {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.inventory-item input[type="number"]:focus {
    border-color: var(--primary_color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary_color);
    background: var(--primary_color);
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.qty-btn:hover {
    background: #1a365d;
    border-color: #1a365d;
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn.minus {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.qty-btn.plus {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.quantity-controls input[type="number"] {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 2px solid var(--primary_color);
    border-left: none;
    border-right: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    outline: none;
}

.quantity-controls input[type="number"]:focus {
    background: #f8f9fa;
    box-shadow: none;
}

/* CAPTCHA Styling */
.captcha-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    transform: scale(1.2);
}

.checkbox-label:hover {
    color: var(--primary_color);
}

.captcha-info {
    margin-top: 8px;
}

.captcha-info small {
    color: #666;
    font-style: italic;
}

/* Enhanced CAPTCHA Styles */
.security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.security-notice i {
    font-size: 18px;
}

.captcha-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #007bff;
    box-shadow: 0 4px 6px rgba(0,123,255,0.1);
}

/* Room Section Styling */
.room-section {
    border: 2px solid var(--primary_color);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin-bottom: 2rem;
}

.room-section legend {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary_color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        margin: 0;
        border-radius: 0;
    }
    
    .forms-header {
        padding: 1.5rem;
    }
    
    .forms-header h1 {
        font-size: 2rem;
    }
    
    .forms-main {
        padding: 1rem;
    }
    
    .initial-form,
    .quote-form,
    .callback-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .form-actions:not(.cbe-wizard-actions) {
        flex-direction: column-reverse;
    }

    .cbe-booking-wizard .cbe-wizard-actions__primary {
        flex-direction: column-reverse;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Loading and Success States */
.initial-form.loading,
.quote-form.loading,
.callback-form.loading,
.contact-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-bottom: 1rem;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 1rem;
}

/* Form Validation */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

/* Address Button Styling */
.address-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--primary_color);
    transition: all 0.3s ease;
}

.address-btn:hover {
    background: #e9ecef;
    border-color: var(--primary_color);
}

/* Modal Styles */
#addressModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

#addressModal .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

#addressModal .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary_color) 0%, #2d3748 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

#addressModal .modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

#addressModal .close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

#addressModal .close:hover {
    opacity: 0.7;
}

#addressForm {
    padding: 1.5rem;
}

#addressModal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Address input styling when populated */
input[readonly] {
    background-color: #f8f9fa;
    cursor: pointer;
}

input[readonly]:focus {
    background-color: #e9ecef;
}

/* Contact Form Specific Styles */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-method {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
}

.contact-method h3 {
    color: var(--primary_color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-method p {
    margin: 0.5rem 0;
    font-weight: bold;
}

.contact-method small {
    color: #666;
    font-style: italic;
}

.contact-method a {
    color: var(--primary_color);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-form {
    max-width: none;
}

.char-counter {
    display: block;
    text-align: right;
    margin-top: 0.25rem;
    color: #718096;
    font-size: 0.875rem;
}

.error-field {
    border-color: #e53e3e !important;
    background-color: #fed7d7 !important;
}

.error-display {
    background: #fed7d7;
    border: 1px solid #e53e3e;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #742a2a;
}

.error-header {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.error-list {
    margin: 0;
    padding-left: 1.5rem;
}

.error-list li {
    margin-bottom: 0.25rem;
}

/* Priority styling for contact subjects */
.priority-indicator {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.priority-low {
    background: #e6fffa;
    color: #38a169;
}

.priority-medium {
    background: #fefcbf;
    color: #d69e2e;
}

.priority-high {
    background: #fed7d7;
    color: #e53e3e;
}

/* Enhanced form styling for contact form */
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select[multiple] {
    height: auto;
    min-height: 100px;
}

/* Auto-save indicator */
.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.save-indicator.show {
    opacity: 1;
}

/* Additional options styling for index page */
.additional-options {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.additional-options p {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.btn-outline {
    background: transparent;
    color: var(--primary_color);
    border: 2px solid var(--primary_color);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--primary_color);
    color: white;
    transform: translateY(-1px);
}

/* Quote options styling */
.quote-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quote-options .btn {
    flex: 1;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .quote-options {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .quote-options .btn {
        font-size: 1rem;
    }
}

/* Loading inventory styles */
.loading-inventory {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-inventory p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.loading-inventory::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e1e5e9;
    border-top: 3px solid var(--primary_color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Room Selector Styles */
.room-selector {
    margin-bottom: 2rem;
}

.room-selector h4 {
    color: var(--primary_color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.room-selector p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.room-card {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-card:hover {
    border-color: var(--primary_color);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.15);
    transform: translateY(-2px);
}

.room-card.selected {
    border-color: var(--primary_color);
    background: #f7fafc;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
}

.room-card.selected::after {
    content: 'âœ“';
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--primary_color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.room-card.has-items {
    border-color: #38a169;
    background: #f0fff4;
}

.room-card.has-items::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    background: #38a169;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    z-index: 2;
}

.room-card.has-items .room-name {
    color: #38a169;
    font-weight: 600;
}

.room-image {
    width: 80px;
    height: 60px;
    margin: 0 auto 0.75rem;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary_color);
    overflow: hidden;
    position: relative;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary_color);
    background: #f1f5f9;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
}

.room-image img.loading {
    opacity: 0.7;
}

.room-image img.error {
    display: none;
}

/* Loading animation for images */
.room-card.loading .room-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.room-name {
    font-weight: 600;
    color: var(--primary_color);
    font-size: 1rem;
}

.room-description {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Inventory Container Styles */
.inventory-container {
    position: relative;
}

.room-section {
    margin-bottom: 2rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.room-section.desktop-hidden {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    margin: 0;
    border: none;
}

.room-section.hidden {
    display: none;
}

.room-section.desktop-hidden {
    display: none;
}

.room-header {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-header h3 {
    color: var(--primary_color);
    font-size: 1.1rem;
    margin: 0;
}

.room-toggle {
    background: none;
    border: none;
    color: var(--primary_color);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.room-toggle:hover {
    background: rgba(44, 82, 130, 0.1);
}

.room-content {
    padding: 1.5rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .room-section.desktop-hidden {
        display: none;
    }
    
    .room-selector {
        margin-bottom: 1.5rem;
    }
    
    .room-selector h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .room-selector p {
        display: none;
    }
    
    .room-section {
        margin-bottom: 1.5rem;
    }
    
    .room-header {
        padding: 0.75rem 1rem;
    }
    
    .room-content {
        padding: 1rem;
    }
    
    .room-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }
    
    .room-card {
        min-height: 50px;
        padding: 0.75rem 0.5rem;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .room-image {
        display: none;
    }
    
    .room-description {
        display: none;
    }
    
    .room-name {
        font-size: 0.85rem;
        margin: 0;
        text-align: center;
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Inventory Navigation */
.inventory-navigation {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.back-to-rooms-btn,
.view-summary-btn {
    background: var(--primary_color);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44, 82, 130, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    max-width: 200px;
}

.view-summary-btn {
    background: #38a169;
}

.back-to-rooms-btn:hover {
    background: #2a4a72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.view-summary-btn:hover {
    background: #2f855a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

@media (max-width: 768px) {
    .inventory-navigation {
        flex-direction: column;
        margin-top: 1.5rem;
        padding-top: 0.75rem;
        gap: 0.75rem;
    }
    
    .back-to-rooms-btn,
    .view-summary-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
        max-width: none;
    }
}

/* Summary Modal Styles */
.summary-modal-content {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e1e5e9;
    background: #f8fafc;
}

.summary-room {
    margin-bottom: 2rem;
}

.summary-room h4 {
    color: var(--primary_color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-items {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    align-items: center;
}

.summary-item-name {
    color: #333;
}

.summary-item-quantity {
    font-weight: 600;
    color: var(--primary_color);
    text-align: right;
}

.summary-total {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary_color);
    text-align: center;
}

.summary-total h3 {
    color: var(--primary_color);
    margin: 0;
}

.no-items-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

@media (max-width: 480px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .room-card {
        min-height: 100px;
        padding: 0.5rem;
    }
    
    .room-image {
        width: 60px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 0.5rem;
    }
    
    .room-name {
        font-size: 0.85rem;
    }
}

/* Form Notification Styles */
.form-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

.form-notification.notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-notification.notification-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.form-notification.notification-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.form-notification.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
