/*
 * Author: Luca Arzilli, ALSolutions
 *
 * Project Name: SD Fisioterapia
 *
 */

/* HOME PAGE */

/* prenotazione */

/* Booking Page Styles */
.booking-form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.booking-form-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 5vh 6vw 0vh 6vw;
    border-radius: 0px;
	border:0px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: fixed;
    top: 70px;
    left: 0;
    width: 50%;
    padding: 0 8rem;
    z-index: 1000;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8rem;
    right: 8rem;
    height: 2px;
    background: #D6D6D6;
    z-index: 1;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #D6D6D6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: white;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* Aggiungiamo un pseudo-elemento per il bordo distanziato */
.step.active::before,
.step.completed::before {
    content: '';
    position: absolute;
    top: -2px; /* 1px di bordo + 1px di spazio */
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid #2A3C51;
    border-radius: 50%;
    z-index: 1;
}

.step.active {
    background: #2A3C51;
}

.step.completed {
    background: #618ECA;
}

.step.completed .step-number {
    display: none;
}

.step.completed::after {
    content: '✔';
    color: white;
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    margin-top: 10px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: #2A3C51;
}

.step.completed .step-label {
    color: #618ECA;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.image-container {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.logo {
    position: absolute;
    bottom: 5vh;
    right: 5vw;
    width: 230px;
    height: auto;
    z-index: 2;
}

.btn-1 {
    margin-left:0px !important;
}

.form-group span {
   font-size: 14px !important;
   font-weight:bold !important;
}
#privacy-checkbox {
    width: 20px;
    height: 20px !important;
    display: inline-block;
}
h3 {
    margin-bottom: 30px !important;
}
.form-group label {
    font-size:14px !important;
    line-height:100%;
}

/* Altezza textarea aumentata */
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Calendario Styles */
.calendar-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.btn-nav {
    background: none;
    border: none;
    color: #2A3C51;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: #e9ecef;
    color: #618ECA;
}

.btn-nav:disabled {
    color: #adb5bd;
    cursor: not-allowed;
}

.current-month {
    font-weight: 600;
    color: #2A3C51;
    font-size: 16px;
}

.calendar-grid {
    padding: 15px;
}

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

.calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 12px;
    padding: 8px 0;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    position: relative;
    width: 35px;
    height: 35px;
    margin: 0 auto;
}

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

.calendar-day.past {
    color: #adb5bd;
    cursor: default;
    background: #f8f9fa;
}

.calendar-day.weekend {
    color: #adb5bd;
    cursor: default;
    background: #f8f9fa;
}

.calendar-day.available {
    background: #d4edda;
    color: #155724;
    cursor: pointer;
}

.calendar-day.available:hover {
    background: #c3e6cb;
    transform: scale(1.1);
}

.calendar-day.selected {
    background: #618ECA;
    color: white;
    font-weight: 600;
}

.calendar-day.unavailable {
    color: #adb5bd;
    cursor: default;
    background: #f8f9fa;
}

/* Loading e messaggi di stato */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Riepilogo prenotazione */
.booking-summary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.summary-item {
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-item strong {
    color: #2A3C51;
    display: inline-block;
    min-width: 120px;
}

/* Alert messages */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .booking-form-container {
        min-height: auto;
        padding: 1rem;
        padding-top: 100px;
    }

    .image-container {
        min-height: 50vh;
    }

    .logo {
        width: 100px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .step-indicator {
        position: fixed;
        width: 100%;
        padding: 0 2rem;
        justify-content: center;
        top: 20px;
        left: 0;
        margin-bottom: 0;
    }

    .step-indicator::before {
        display: none;
    }

    .step {
        position: absolute;
        opacity: 0;
        transform: translateX(-100%);
        transition: all 0.3s ease;
    }

    .step.active {
        position: relative;
        opacity: 1;
        transform: translateX(0);
    }

    .step.completed {
        position: absolute;
        opacity: 0;
        transform: translateX(-100%);
    }

    .step-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .booking-form-wrapper {
        padding: 1rem;
    }

    .step {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }
}
