/**
 * Contact Form Styles - With Calendar
 * Lilia Apartments
 */

.contact-section {
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    padding: 6rem 2rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

/* Calendar specific styles */
.form-group input[readonly] {
    background: #f7fafc;
    cursor: pointer;
}

.form-group input[readonly]:hover {
    background: #edf2f7;
}

/* Flatpickr customization */
.flatpickr-calendar {
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
}

.flatpickr-months {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-radius: 16px 16px 0 0 !important;
}

.flatpickr-current-month {
    color: white !important;
}

.flatpickr-weekday {
    color: white !important;
    font-weight: 600 !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: white !important;
}

.flatpickr-day {
    border-radius: 8px !important;
    font-weight: 500 !important;
}

.flatpickr-day.disabled {
    color: #cbd5e0 !important;
    background: #f7fafc !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
}

.flatpickr-day.selected {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border-color: #667eea !important;
    color: white !important;
}

.flatpickr-day.today {
    border-color: #667eea !important;
}

.flatpickr-day:hover:not(.disabled):not(.selected) {
    background: rgba(102, 126, 234, 0.1) !important;
    border-color: #667eea !important;
}

/* Booking summary */
.booking-summary {
    background: linear-gradient(135deg, #f7fafc, #e8f4f8);
    padding: 1.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 2px solid #e2e8f0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
}

.booking-summary-item:last-child {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

/* Messages */
.booking-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.booking-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.booking-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Availability indicator */
.availability-indicator {
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.availability-indicator p {
    margin: 0;
}

/* Submit button */
.contact-form button[type="submit"] {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.contact-form button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .booking-summary {
        padding: 1rem;
    }
    
    .booking-summary-item {
        font-size: 0.9rem;
    }
    
    .booking-summary-item:last-child {
        font-size: 1.1rem;
    }
}