/* Clinic Appointment System - Customer Booking (Minimalist Design) */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Global Box Sizing for Alignment */
.clinic-booking-wrapper, 
.clinic-booking-wrapper *, 
.clinic-booking-wrapper *::before, 
.clinic-booking-wrapper *::after {
    box-sizing: border-box;
}

/* Container */
.clinic-booking-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.clinic-booking-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 40px 50px;
    min-height: 500px;
}

/* Progress Bar */
.clinic-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.clinic-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.progress-step-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8e8e8;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    font-size: 0; 
    color: transparent;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(92, 183, 177, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(92, 183, 177, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 183, 177, 0); }
}

.clinic-progress-step.active .progress-step-circle {
    background: #5cb7b1;
    width: 14px;
    height: 14px;
    animation: pulseRing 2s infinite; 
}

.clinic-progress-step.completed .progress-step-circle {
    background: #5cb7b1;
}

.progress-step-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
    white-space: nowrap;
}

.clinic-progress-step.active .progress-step-label {
    color: #5cb7b1;
    font-weight: 600;
}

.clinic-progress-step.completed .progress-step-label {
    color: #5cb7b1;
}

.clinic-progress-line {
    width: 80px;
    height: 2px;
    background: #f0f0f0;
    margin: 0 15px 30px 15px;
    transition: all 0.3s ease;
}

.clinic-progress-line.completed {
    background: #5cb7b1;
}

/* Step Animation */
.clinic-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
.clinic-step h2 {
    font-size: 30px !important;
    font-weight: 400 !important;
    color: #84a3a0 !important;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    font-family: 'Inter', sans-serif !important;
}

.clinic-staff-dashboard-wrapper h2,
.clinic-booking-wrapper h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    color: #84a3a0 !important;
}

.clinic-step p {
    font-size: 14px;
    color: #84a3a0;
    margin: 0 0 20px 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Custom Dropdown */
.clinic-custom-dropdown {
    position: relative;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.dropdown-selected {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 1px solid #d2d5d7;
    border-radius: 8px;
    font-size: 15px;
    color: #6f8784;
    background: #fff;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: left; 
}

.dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #84a3a0;
    font-size: 12px;
    pointer-events: none;
    transition: transform 0.2s;
}

.clinic-custom-dropdown.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.clinic-custom-dropdown:hover .dropdown-selected {
    border-color: #5cb7b1;
}

.clinic-custom-dropdown.open .dropdown-selected {
    border-color: #5cb7b1;
    box-shadow: 0 2px 8px rgba(92, 183, 177, 0.15);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #5cb7b1;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.clinic-custom-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-option {
    padding: 12px 16px;
    font-size: 15px;
    color: #6f8784;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left; 
}

.dropdown-option:hover {
    background: #f7fffe;
    color: #5cb7b1;
}

.dropdown-option.active {
    color: #5cb7b1;
    background: #f7fffe;
}

/* Button Container - Side by Side */
.clinic-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    gap: 12px;
    border-top: 1px solid #f0f0f0; 
    width: 100%;
}

.clinic-button-container .clinic-btn-primary:only-child {
    margin-left: auto;
}

.selected-date {
    font-size: 14px;
    color: #84a3a0;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f7fffe;
    border-radius: 6px;
    border-left: 3px solid #5cb7b1;
}

/* Calendar View - Fixed Alignment */
.clinic-calendar {
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    padding: 10px;
}

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

.calendar-month-year {
    font-size: 18px;
    font-weight: 500;
    color: #84a3a0;
    margin: 0;
}

.calendar-nav-btn {
    background: #fff;
    border: 1px solid #d2d5d7;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    color: #5cb7b1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.calendar-nav-btn:hover {
    background: #f7fffe;
    border-color: #5cb7b1;
}

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

.calendar-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #84a3a0;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.calendar-day {
    aspect-ratio: 1 / 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0; 
    border-radius: 8px;
    background: white;
    font-size: 15px;
    font-weight: 500;
    color: #cbd5e0; 
    cursor: default;
    transition: all 0.2s;
    padding: 0;
    width: 100%;
}

/* Available Days Styling */
.calendar-day.available {
    border-color: #d2d5d7;
    color: #84a3a0;
    cursor: pointer;
}

.calendar-day.available:hover {
    background: #f7fffe;
    border-color: #5cb7b1;
    color: #5cb7b1;
    transform: translateY(-1px);
}

/* Disabled Days Styling */
.calendar-day.disabled,
.calendar-day.empty {
    border-color: transparent; 
    background: transparent;
    color: #e2e8f0;
    pointer-events: none;
}

.calendar-day.empty {
    visibility: hidden;
}

/* Time Buttons */
.clinic-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.clinic-time-btn {
    background: #fff;
    border: 1px solid #d2d5d7;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #84a3a0;
}

.clinic-time-btn:hover {
    border-color: #5cb7b1;
    background: #f7fffe;
    color: #5cb7b1;
    transform: translateY(-1px);
}

.clinic-time-btn.booked {
    background: #f7f7f7;
    border-color: #f0f0f0;
    color: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.clinic-time-btn.booked:hover {
    transform: none;
    border-color: #f0f0f0;
    background: #f7f7f7;
    color: #cbd5e0;
}

/* Forms */
.clinic-form-group {
    margin-bottom: 24px;
}

.clinic-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #84a3a0;
    font-size: 14px;
}

.clinic-form-group input[type="text"],
.clinic-form-group input[type="email"],
.clinic-form-group input[type="tel"],
.clinic-form-group select,
.clinic-form-group textarea {
    width: 100%;
    padding: 14px 16px; 
    border: 1px solid #d2d5d7; 
    border-radius: 8px; 
    font-size: 15px; 
    color: #6f8784;
    background: #fff;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
    transition: all 0.2s;
    box-sizing: border-box; 
}

.clinic-form-group input::-webkit-input-placeholder,
.clinic-form-group textarea::-webkit-input-placeholder { color: #6f8784; }
.clinic-form-group input::-moz-placeholder,
.clinic-form-group textarea::-moz-placeholder { color: #6f8784; opacity: 1; }
.clinic-form-group input::placeholder,
.clinic-form-group textarea::placeholder { color: #6f8784; opacity: 1; }

.clinic-form-group input[type="text"]:focus,
.clinic-form-group input[type="email"]:focus,
.clinic-form-group input[type="tel"]:focus,
.clinic-form-group select:focus,
.clinic-form-group textarea:focus {
    outline: none;
    border-color: #5cb7b1;
    background: white;
    box-shadow: 0 0 0 4px rgba(92, 183, 177, 0.15); 
}

/* Buttons */
.clinic-btn {
    padding: 13px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

.clinic-btn-primary {
    background: #5cb7b1;
    color: white;
    box-shadow: 0 2px 8px rgba(92, 183, 177, 0.25);
}

.clinic-btn-primary:hover {
    background: #4da59f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 183, 177, 0.35);
}

.clinic-btn-secondary {
    background: #84a3a0; 
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(132, 163, 160, 0.25);
}

.clinic-btn-secondary:hover {
    background: #6e8a87;
    border: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(132, 163, 160, 0.35);
}

.clinic-btn-block {
    width: 100%;
    margin-top: 8px;
}

/* Success Step */
.clinic-success-step {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: #e6f9f7;
    color: #5cb7b1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.appointment-summary {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.appointment-summary p {
    margin: 10px 0;
    font-size: 14px;
    color: #2d3748;
}

.appointment-summary strong {
    color: #1a202c;
    font-weight: 600;
}

.confirmation-note {
    font-size: 13px !important;
    color: #718096 !important;
    margin-top: 16px !important;
}

/* Loading */
.clinic-loading {
    text-align: center;
    padding: 50px 20px;
    color: #718096;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .clinic-booking-container {
        padding: 30px 25px;
    }
    
    .clinic-times-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .clinic-progress-bar {
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .clinic-progress-line {
        width: 50px;
        margin: 0 10px 30px 10px;
    }
}