/* Calendar Styles */
.calendar-section {
    background: #f8fafb;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.calendar-time-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    width: 100%;
}

.calendar-ui {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 15px;
    margin-bottom: 15px;
    box-sizing: border-box;
    min-width: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #183046;
}

.calendar-nav-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
    background-color: #e8f5e8;
}

.calendar-ui table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-ui th {
    padding: 8px 6px;
    text-align: center;
    color: #666;
    font-weight: 600;
    font-size: 0.8rem;
}

.calendar-ui td {
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.calendar-ui td:hover:not(.past):not(.booked) {
    background-color: #e8f5e8;
}

.calendar-day.selected {
    background-color: #2ecc71;
    color: white;
}

.calendar-day.booked {
    background-color: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
}

/* Time Slots */
.time-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 100px;
}

.time-slot {
    background: #fff;
    border: 1.5px solid #e1e5e9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #183046;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.time-slot:hover:not(.unavailable) {
    background-color: #e8f5e8;
    border-color: #2ecc71;
}

.time-slot.selected {
    background-color: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.time-slot.unavailable {
    background-color: #f1f1f1;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Form Styles */
.booking-form {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #183046;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f5e8;
}

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

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #183046;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    background: #f8fafb;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: #2ecc71;
    background: #fff;
}

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

.service-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.service-btn {
    background: #fff;
    color: #183046;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1.5px solid #e1e5e9;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.service-btn:hover {
    background: #e8f5e8;
    border-color: #2ecc71;
}

.service-btn.selected {
    background: #2ecc71;
    color: #fff;
    border-color: #2ecc71;
}

.complete-booking-btn {
    background: #2ecc71;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 15px;
    padding: 15px 40px;
    cursor: pointer;
    transition: background 0.2s;
    margin: 20px auto;
    display: block;
    width: fit-content;
}

.complete-booking-btn:hover {
    background: #27ae60;
}

.complete-booking-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-input:invalid,
.form-textarea:invalid {
    border-color: #e74c3c;
}

.form-input:valid,
.form-textarea:valid {
    border-color: #2ecc71;
}

.service-btn {
    position: relative;
    overflow: hidden;
}

.service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.service-btn:hover::before {
    left: 100%;
}

.calendar-day {
    transition: all 0.2s ease;
}

.calendar-day:hover:not(.past):not(.booked) {
    background-color: #e8f5e8;
    transform: scale(1.05);
}

.calendar-day.selected {
    background-color: #2ecc71;
    color: white;
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .booking-form {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calendar-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .calendar-time-container {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
    }
    
    .calendar-ui {
        padding: 10px;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
    }
    
    .time-slots {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .service-types {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .calendar-ui td, .calendar-ui th {
        padding: 6px 4px;
        font-size: 0.8rem;
        min-width: 30px;
    }
    
    .service-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Hide header on screens smaller than 770px */
@media (max-width: 769px) {
    header {
        display: none !important;
    }
} 