/* Modal Quote Form Styles */

.modal-xl {
    max-width: 1200px;
}

/* Modal Steps Navigation */
.modal-steps-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.steps-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.step-item:hover {
    background: rgba(171, 116, 66, 0.1);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: #AB7442;
    color: white;
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: #AB7442;
    color: white;
}

.step-item.completed .step-circle::before {
    content: '✓';
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    transition: color 0.3s ease;
}

.step-item.active .step-label {
    color: #AB7442;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #AB7442;
}

.step-connector {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 1rem;
    position: relative;
    top: -20px;
    transition: background-color 0.3s ease;
}

.step-item.completed + .step-connector {
    background: #AB7442;
}

/* Form Steps */
.form-step {
    animation: fadeInStep 0.3s ease-in-out;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    color: #AB7442;
    font-weight: 600;
    border-bottom: 2px solid #AB7442;
    padding-bottom: 0.5rem;
}

/* Form enhancements */
.form-control-lg {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: #AB7442;
    box-shadow: 0 0 0 0.25rem rgba(171, 116, 66, 0.25);
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #AB7442;
    box-shadow: 0 0 0 0.25rem rgba(171, 116, 66, 0.25);
}

/* Summary styles */
.booking-summary {
    border-left: 4px solid #AB7442;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.summary-section {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.privacy-notice {
    background: linear-gradient(135deg, rgba(171, 116, 66, 0.1) 0%, rgba(212, 176, 138, 0.05) 100%) !important;
}

/* Navigation buttons */
.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #AB7442;
}

.navigation-buttons .btn {
    min-width: 120px;
    font-weight: 500;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, #D4B08A 0%, #C19B6A 100%) !important;
}

/* Make sure the close button (X) is darker than the header */
.modal-header .btn-close {
    opacity: 0.8;
    filter: brightness(0.7);
}

.modal-calendar-container {
    max-height: 80vh;
    overflow-y: auto;
    padding: 10px;
}

/* Ensure the modal body has proper scrolling */
.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* Smaller calendar for modal */
.modal-calendar-container .booking-calendar {
    font-size: 0.85rem;
}

.modal-calendar-container .calendar-cell {
    min-height: 40px;
    padding: 4px;
}

.modal-calendar-container .day-number {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.modal-calendar-container .availability-dots {
    gap: 1px;
}

.modal-calendar-container .availability-dot {
    width: 4px;
    height: 4px;
}

.modal-calendar-container .calendar-header h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.modal-calendar-container .calendar-legend {
    font-size: 0.75rem;
}

/* Form styling improvements */
.modal-body .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.modal-body .form-control {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modal-body .form-control:focus {
    border-color: #AB7442;
    box-shadow: 0 0 0 0.2rem rgba(171, 116, 66, 0.25);
}

.modal-body .alert-info {
    background-color: #e7f3ff;
    border-color: #bee5eb;
    color: #0c5460;
}

.modal-body .room-selection-container {
    margin-top: 0.5rem;
}

/* Responsive adjustments for modal */
@media (max-width: 992px) {
    .modal-xl {
        max-width: 95%;
        margin: 0.5rem;
    }
    
    .modal-body .row {
        --bs-gutter-x: 1rem;
    }
    
    .modal-calendar-container {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .modal-body {
        padding: 1rem !important;
    }
    
    .modal-body .col-lg-4 {
        margin-top: 1rem;
    }
    
    .modal-calendar-container .calendar-cell {
        min-height: 35px;
        font-size: 0.75rem;
    }
}

/* Animation for modal opening */
.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Loading state for modal calendar */
.modal-calendar-container .calendar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
}

.modal-calendar-container .calendar-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.15em;
    color: #AB7442;
}