/* Site Visit Booking Modal Styles */

/* Booking Button */
.site-visit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.site-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.site-visit-btn i {
    font-size: 1.2rem;
}

/* Modal Overlay */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.booking-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.booking-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    margin: 2rem auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.booking-modal-overlay.active .booking-modal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Modal Header */
.booking-modal-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.booking-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.booking-modal-header h2 i {
    color: #10b981;
}

.booking-modal-header p {
    color: #6b7280;
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.property-name {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

/* Close Button */
.booking-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #64748b;
    transition: all 0.2s;
}

.booking-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
    transform: rotate(90deg);
}

/* Modal Body */
.booking-modal-body {
    padding: 2rem;
}

/* Date Selection */
.date-selection {
    margin-bottom: 1.5rem;
}

.date-selection label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.date-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.date-option:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.date-option.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.date-option .day-name {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.date-option .day-number {
    font-size: 1.25rem;
    font-weight: 700;
}

.date-option .month {
    font-size: 0.7rem;
}

/* Time Selection */
.time-selection {
    margin-bottom: 1.5rem;
}

.time-selection label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.time-option {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.time-option:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.time-option.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Form Fields */
.booking-form-group {
    margin-bottom: 1rem;
}

.booking-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.booking-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.booking-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.booking-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.booking-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.booking-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.booking-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.booking-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.booking-success.show {
    display: block;
}

.booking-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.booking-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.booking-success-text {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.booking-details {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: left;
}

.booking-details p {
    margin: 0.5rem 0;
    color: #374151;
    font-size: 0.95rem;
}

.booking-details strong {
    color: #059669;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .booking-modal {
        margin: 1rem;
        border-radius: 20px;
    }

    .booking-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .booking-modal-body {
        padding: 1.5rem;
    }

    .date-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .date-option {
        padding: 0.5rem 0.25rem;
    }

    .date-option .day-number {
        font-size: 1.1rem;
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}