/* Appointment Form New Design - Horizontal Time Slots Layout */

/* Form Section Styling */
.form-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title.justify-content-center {
    justify-content: center;
}

.form-section-title i {
    color: #d4a574;
    font-size: 22px;
}

/* Procedure Select Wrapper */
.procedure-select-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

/* Custom Select Styling */
.custom-select-new {
    width: 100%;
    padding: 15px 20px;
    font-size: 17px;
    font-weight: 500;
    border: 2px solid #d4a574;
    border-radius: 8px;
    background-color: #fff;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a574' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.custom-select-new:hover {
    border-color: #c8955f;
    background-color: #fef9f3;
}

.custom-select-new:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
    background-color: #fff;
}

/* Dropdown options styling */
.custom-select-new option {
    padding: 12px;
    background-color: #fff;
    color: #2c3e50;
    font-size: 16px;
}

.custom-select-new option:hover {
    background-color: #fef9f3;
}

/* Disable nice-select for our custom select */
.procedure-select-wrapper .nice-select {
    display: none !important;
}

.procedure-select-wrapper select.custom-select-new {
    display: block !important;
}

/* Date Control Wrapper */
.date-control-wrapper-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.date-arrow-btn-new {
    background: transparent;
    border: 2px solid #d4a574;
    color: #d4a574;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.date-arrow-btn-new:hover {
    background: #d4a574;
    color: #fff;
    transform: scale(1.05);
}

.date-display-new {
    padding: 12px 30px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    text-align: center !important;
    min-width: 180px !important;
    background: #fff !important;
    cursor: pointer !important;
    height: auto !important;
    line-height: normal !important;
}

.date-display-new:focus {
    border-color: #d4a574 !important;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2) !important;
    outline: none !important;
}

.day-of-week-display {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    text-align: center;
}

/* Barber Section */
.barber-section {
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid #f0f0f0;
}

.barber-section:last-child {
    border-bottom: none;
}

.barber-name {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #d4a574;
}

/* Time Slots Horizontal Grid */
.time-slots-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    padding: 10px 0;
}

/* Time Slot Box */
.time-slot-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border: 2px solid #d4a574;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.time-slot-box:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.3);
    border-color: #c8955f;
}

/* Available Slot */
.time-slot-box.available {
    border-color: #d4a574;
    background: #fff;
}

.time-slot-box.available:hover {
    background: #fef9f3;
}

/* Booked Slot */
.time-slot-box.booked {
    border-color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.time-slot-box.booked:hover {
    transform: none;
    box-shadow: none;
}

.time-slot-box.booked .time-label {
    color: #999;
}

.time-slot-box.booked .time-icon i {
    color: #999;
    opacity: 0.5;
}

/* Selected Slot - Darker shade in same tone */
.time-slot-box.selected {
    background: #d4a574;
    border-color: #c8955f;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
}

.time-slot-box.selected .time-label {
    color: #fff;
    font-weight: 700;
}

.time-slot-box.selected .time-icon i {
    color: #fff;
}

/* Time Label */
.time-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
}

/* Time Icon */
.time-icon {
    font-size: 28px;
    color: #d4a574;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-icon i {
    transition: all 0.3s ease;
}

/* Available slot icon - normal colors */
.time-slot-box.available .time-icon i {
    color: #d4a574;
}

.time-slot-box.available:hover .time-icon i {
    transform: scale(1.1);
}

/* Selection Summary */
.selection-summary {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
}

.selection-summary strong {
    color: #d4a574;
    font-size: 16px;
}

/* Submit Button Styling */
#submit_btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#submit_btn:not(:disabled):hover {
    background: #c8955f;
    border-color: #c8955f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .time-slots-horizontal {
        justify-content: center;
    }

    .time-slot-box {
        width: 90px;
        height: 90px;
    }

    .time-label {
        font-size: 14px;
    }

    .time-icon {
        font-size: 24px;
    }

    .time-icon img {
        width: 28px;
        height: 28px;
    }

    .barber-name {
        font-size: 18px;
    }

    .date-display-new {
        font-size: 16px;
        min-width: 150px;
        padding: 10px 20px;
    }

    .date-arrow-btn-new {
        width: 50px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .time-slot-box {
        width: 75px;
        height: 75px;
    }

    .time-label {
        font-size: 12px;
    }

    .time-icon {
        font-size: 20px;
    }

    .time-icon img {
        width: 24px;
        height: 24px;
    }

    .barber-section {
        padding: 15px 0;
    }

    .form-section {
        padding: 15px;
    }
}

/* Animation for slot selection */
@keyframes pulseSelection {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.time-slot-box.selected {
    animation: pulseSelection 0.3s ease-in-out;
}

/* Insufficient Time Styling */
.time-slot-box.insufficient-time {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.time-slot-box.insufficient-time .time-label {
    color: #721c24;
    text-decoration: line-through;
}

/* GDPR Checkbox Link Styling */
.form-check-label a {
    color: #d4a574;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.form-check-label a:hover {
    color: #c8955f;
    text-decoration: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .form-check-label a {
        color: #e0b380;
    }

    .form-check-label a:hover {
        color: #f0c090;
    }
}
