.calendar-container {
    margin: 30px 0;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 25px 0;
    padding: 15px;
}

.staff-card {
    padding: 25px;
    border: 1px solid #e3d3b6;
    border-radius: 16px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.staff-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    border: 4px solid #e3d3b6;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.staff-card h4 {
    color: #2c2c2c;
    font-size: 20px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.staff-card .service-info {
    color: #9a6248;
    font-size: 16px;
    margin: 8px 0;
    font-weight: 500;
}

.staff-card .service-description {
    color: #666;
    font-size: 14px;
    margin: 12px 100px;
    line-height: 1.6;
    display: none;
}

.staff-card.selected {
    border: 2px solid #9a6248;
    background-color: #fdf8f3;
    transform: scale(1.02);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.time-slot {
    padding: 18px;
    border: 1px solid #e3d3b6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.time-slot:hover {
    background-color: #fdf8f3;
    border-color: #9a6248;
    transform: translateY(-2px);
}

.time-slot.selected {
    background-color: #fdf8f3;
    color: black;
    border-color: #9a6248;
    transform: scale(1.02);
}

.time-slot .time {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.time-slot.selected .time {
    color: black;
}

.time-slot .staff-info {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.time-slot .name {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 6px;
}

.time-slot .duration {
    font-size: 0.9em;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}

.appointment-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.booking-summary {
    margin-top: 25px;
    padding: 20px;
    background-color: #fdf8f3;
    border-radius: 12px;
    border: 1px solid #e3d3b6;
}

/* Book Button Base Styles */
#book-button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #9a6248 0%, #7d4e39 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(154, 98, 72, 0.2);
}

/* Hover State */
#book-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #875439 0%, #6d4230 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 98, 72, 0.3);
}

/* Active/Click State */
#book-button:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(154, 98, 72, 0.2);
}

/* Disabled State */
#book-button:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #b3b3b3 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Loading State */
#book-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

#book-button.loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    box-sizing: border-box;
}

/* Success State */
#book-button.success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

/* Error State */
#book-button.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    animation: shake 0.5s ease-in-out;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Ripple Effect */
#book-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease-out;
}

#book-button:active::before {
    transform: translate(-50%, -50%) scale(2);
}

/* Responsive Design */
@media (max-width: 768px) {
    #book-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

#confirmation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 4% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.scrollable-content {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #e3d3b6;
    border-radius: 8px;
    margin-bottom: 25px;
    background-color: #fdf8f3;
}

.terms-agreement {
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #9a6248;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #875439;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d1d1d1;
}

/* Terms content styling */
.terms-content h3 {
    color: #2c2c2c;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.terms-content p {
    font-weight: 600;
    margin: 20px 0 8px 0;
    color: #333;
}

.terms-content ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.terms-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .staff-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .staff-card img {
        width: 120px;
        height: 120px;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .modal-content {
        margin: 2% auto;
        padding: 20px;
        width: 95%;
    }

    .appointment-section {
        padding: 20px;
        margin: 20px auto;
    }
}

/* Form Group Styles */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

/* Label Styles */
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
}

/* Input and Select Styles */
.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e3d3b6;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
    color: #2c2c2c;
}

/* Select Specific Styles */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239a6248' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Focus States */
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #9a6248;
    box-shadow: 0 0 0 4px rgba(154, 98, 72, 0.1);
}

/* Hover States */
.form-group input:hover,
.form-group select:hover {
    border-color: #9a6248;
}

/* Placeholder Styles */
.form-group input::placeholder {
    color: #999;
}

/* Required Field Indicator */
.form-group label.required::after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

/* Date Picker Specific Styles */
.date-picker {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239a6248' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") no-repeat right 16px center;
    cursor: pointer;
}

/* Validation States */
.form-group.success input,
.form-group.success select {
    border-color: #198754;
}

.form-group.error input,
.form-group.error select {
    border-color: #dc3545;
}

/* Error Message */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Form Section Headers */
.form-section-header {
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3d3b6;
    color: #2c2c2c;
    font-size: 18px;
    font-weight: 600;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Booking Summary Styles */
.booking-summary {
    background: #fdf8f3;
    border: 2px solid #e3d3b6;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.booking-summary h3 {
    color: #2c2c2c;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.booking-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e3d3b6;
}

.booking-summary p:last-child {
    border-bottom: none;
}

.booking-summary span {
    color: #9a6248;
    font-weight: 500;
}

/* Submit Button Styles */
#book-button {
    width: 100%;
    padding: 16px;
    background: #9a6248;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#book-button:hover:not(:disabled) {
    background: #875439;
    transform: translateY(-2px);
}

#book-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Loading State */
#book-button.loading {
    position: relative;
    color: transparent;
}

#book-button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .appointment-section form {
        padding: 20px;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
    }

    .booking-summary {
        padding: 15px;
    }
}

/* Custom Select Dropdown Styling */
.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #9a6248;
    pointer-events: none;
}

/* Flatpickr Calendar Custom Styling */
.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.flatpickr-day.selected {
    background: #9a6248;
    border-color: #9a6248;
}

.flatpickr-day.selected:hover {
    background: #875439;
    border-color: #875439;
}

.flatpickr-day:hover {
    background: #fdf8f3;
}

.flatpickr-current-month {
    color: #2c2c2c;
    font-weight: 600;
}

.flatpickr-weekday {
    color: #9a6248;
}

