/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

header h1 {
    color: #0d6efd;
    margin-bottom: 5px;
    font-size: 2.2rem;
    font-weight: 600;
}

header p {
    color: #6c757d;
    font-size: 1rem;
}

/* Progress steps */
.booking-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.booking-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% - 120px);
    width: 240px;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.progress-step {
    width: 80px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    border: 2px solid #fff;
}

.progress-step.active .step-number {
    background-color: #0d6efd;
    color: white;
}

.progress-step.completed .step-number {
    background-color: #198754;
    color: white;
}

.step-label {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #0d6efd;
    font-weight: 600;
}

/* Form sections */
.form-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Service selection */
.service-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.service-card {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
    background-color: white;
}

.service-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.1);
}

.service-card.selected {
    border-color: #0d6efd;
    background-color: #f0f7ff;
}

.service-info {
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    color: #212529;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
    text-align: left;
}

.service-duration {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-price {
    color: #0d6efd;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Date & Time selection */
.date-time-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.date-selection, .time-selection {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.date-time-container h3 {
    font-size: 1rem;
    color: #212529;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Calendar */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    flex: 1;
    min-height: 320px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6c757d;
    cursor: pointer;
}

.calendar-header button:disabled {
    color: #ced4da;
    cursor: not-allowed;
}

.calendar-day-header {
    text-align: center;
    padding: 8px 6px;
    font-weight: 500;
    color: #6c757d;
    font-size: 0.85rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    text-align: center;
    padding: 8px 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #212529;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background-color: #f0f7ff;
}

.calendar-day.selected {
    background-color: #0d6efd;
    color: white;
    border-radius: 4px;
}

.calendar-day.today {
    font-weight: bold;
    border: 1px solid #0d6efd;
    border-radius: 4px;
}

.calendar-day.disabled {
    color: #ced4da;
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.sunday {
    color: #dc3545;
}

/* Time slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex: 1;
    min-height: 320px;
    overflow-y: auto;
    padding: 5px;
}

.time-slot {
    padding: 10px 5px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #0d6efd;
}

.time-slot:hover:not(.disabled):not(.booked) {
    background-color: #f0f7ff;
    border-color: #0d6efd;
}

.time-slot.selected {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.time-slot.disabled {
    color: #ced4da;
    cursor: not-allowed;
}

.time-slot.booked {
    text-decoration: line-through;
    color: #dc3545;
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.time-message {
    grid-column: span 4;
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.calendar-day.sunday {
    background-color: #ffecec;
    color: #e74c3c;
}

/* Form navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.prev-btn, .next-btn, .submit-btn, .primary-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-btn, .submit-btn, .primary-btn {
    background-color: #0d6efd;
    color: white;
}

.next-btn:hover, .submit-btn:hover, .primary-btn:hover {
    background-color: #0b5ed7;
}

.prev-btn {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.prev-btn:hover {
    background-color: #e9ecef;
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Personal info section */
.appointment-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.appointment-summary h3 {
    color: #212529;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
}

.summary-label {
    color: #6c757d;
    font-weight: 500;
}

.summary-value {
    color: #212529;
    font-weight: 500;
}

.form-fields h3 {
    font-size: 1rem;
    color: #212529;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Form inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #212529;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    color: #212529;
    transition: border-color 0.15s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

.form-checkboxes {
    margin-top: 25px;
    margin-bottom: 25px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #212529;
    font-weight: normal;
}

/* Confirmation section */
#confirmation {
    background-color: #fff;
    border-radius: 8px;
    padding: 0;
    text-align: center;
}

.confirmation-content {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background-color: #d1e7dd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.confirmation-icon i {
    font-size: 40px;
    color: #198754;
}

#confirmation h2 {
    color: #198754;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#confirmation p {
    color: #6c757d;
    margin-bottom: 30px;
}

#appointment-details {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: left;
    width: 100%;
    max-width: 400px;
}

#appointment-details p {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

#appointment-details strong {
    color: #212529;
}

#new-appointment-btn {
    margin-top: 20px;
    padding: 12px 30px;
}

/* Content layout */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.sidebar {
    flex: 0 0 300px;
}

.main-content {
    flex: 1;
}

/* Contact info styles */
.contact-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
    color: #0d6efd;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.2rem;
    font-weight: 600;
}

.map-container {
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.directions-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #0d6efd;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.directions-btn:hover {
    background-color: #0b5ed7;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h3 {
    color: #212529;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    color: #6c757d;
}

.contact-item a {
    color: #0d6efd;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list li.closed span:last-child {
    color: #dc3545;
    font-weight: 600;
}

/* Responsive styles */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .date-time-container {
        flex-direction: column;
    }
    
    .date-selection, .time-selection {
        margin-bottom: 20px;
    }
    
    .service-card {
        padding: 12px 15px;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
    }
    
    .service-price {
        font-size: 1rem;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .booking-progress::before {
        width: 160px;
        left: calc(50% - 80px);
    }
    
    .progress-step {
        width: 70px;
    }
}

@media (max-width: 576px) {
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .booking-progress::before {
        display: none;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .prev-btn, .next-btn, .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utility classes */
.hidden {
    display: none;
}
