/* ===== PRENOTA - CSS LAYOUT OTTIMIZZATO ===== */
/* Nuovo flusso: Servizio → Data/Ora → Zona/Modalità → Professionisti → Pagamento */

/* BREADCRUMB PRENOTA */
.prenota-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
}

.prenota-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.prenota-breadcrumb a:hover {
    color: #2E7D32;
}

.prenota-breadcrumb span {
    color: #999;
}

/* STEP INDICATOR */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    padding: 0 20px;
    overflow-x: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    min-width: 80px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E0E0E0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: #2E7D32;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

.step.active .step-label {
    color: #2E7D32;
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #E0E0E0;
    margin: 0 8px;
    flex-shrink: 0;
}

.step.active+.step-line,
.step-line.completed {
    background: #2E7D32;
}

/* CONTENUTO PRENOTA */
.prenota-content {
    max-width: 2000px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.step-content {
    display: none;
    padding: 40px;
}

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

/* STEP 4 - ALLARGATO PER CARD FISIO */
#step4 .step-content {
    max-width: 2000px;
    margin: 0 auto;
    padding: 40px 24px;
}

.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.step-header p {
    font-size: 16px;
    color: #666;
}

/* ===== STEP 1: SELEZIONE SERVIZIO ===== */
.service-categories h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.service-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card.selected {
    outline: 3px solid #2E7D32;
    outline-offset: 2px;
}

.service-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 12px;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* ===== STEP 2: DATA E ORA ===== */
.datetime-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.calendar-section,
.time-section {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 24px;
}

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

.calendar-nav {
    width: 40px;
    height: 40px;
    border: none;
    background: #2E7D32;
    color: white;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.calendar-nav:hover {
    background: #1B5E20;
}

.calendar-month {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day.header {
    font-weight: 600;
    color: #666;
    cursor: default;
}

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

.calendar-day.available {
    background: white;
    color: #333;
    border: 1px solid #E0E0E0;
}

.calendar-day.available:hover {
    border-color: #2E7D32;
    color: #2E7D32;
}

.calendar-day.selected {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
}

.calendar-day.few-slots {
    background: #FFF3E0;
    color: #F57C00;
    border-color: #FFB74D;
}

.calendar-day.few-slots::after {
    content: '!';
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 10px;
    color: #F57C00;
}

/* Slot orari */
.time-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
}

.selected-date-info {
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
    color: #2E7D32;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}

.time-slot {
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot.available {
    background: white;
    color: #333;
    border: 1px solid #E0E0E0;
}

.time-slot.available:hover {
    border-color: #2E7D32;
    color: #2E7D32;
}

.time-slot.selected {
    background: #2E7D32;
    color: white;
    border-color: #2E7D32;
}

.time-slot.busy {
    background: #F5F5F5;
    color: #999;
    cursor: not-allowed;
}

/* ===== STEP 3: ZONA E MODALITÀ ===== */
.location-selection {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.location-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 16px;
}

.location-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.location-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #DDD;
    border-radius: 8px;
    font-size: 14px;
}

.location-input:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.detect-location-btn {
    padding: 12px 16px;
    background: #2E7D32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.detect-location-btn:hover {
    background: #1B5E20;
}

/* Raggio ricerca */
.radius-section {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 12px;
}

.radius-section label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

#radiusValue {
    color: #2E7D32;
    font-weight: 700;
}

.radius-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E0E0E0;
    outline: none;
    margin-bottom: 12px;
    -webkit-appearance: none;
    appearance: none;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2E7D32;
    cursor: pointer;
}

.radius-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2E7D32;
    cursor: pointer;
    border: none;
}

.radius-marks {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* Modalità servizio */
.service-modes-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 16px;
}

.service-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.mode-option {
    cursor: pointer;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mode-option input[type="radio"]:checked+.mode-card {
    border-color: #2E7D32;
    background: #F8FDF8;
}

.mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E7D32;
}

.mode-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.mode-info p {
    font-size: 14px;
    color: #666;
}

/* Indirizzo specifico */
.address-section {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 12px;
}

.address-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.address-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DDD;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.address-input:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.address-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* ===== STEP 4: PROFESSIONISTI - LAYOUT PRENOTA SPECIFICO ===== */
.professionals-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Filtri rapidi - RIMUOVO "Solo disponibili ora" */
.quick-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 12px;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-size: 14px;
}

.sort-select:focus {
    outline: none;
    border-color: #2E7D32;
}

/* GRIGLIA PROFESSIONISTI - 3 COLONNE IDENTICHE FISIOTERAPIA */
.professionals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 24px;
}

/* ===== CARDS PROFESSIONISTI - TAG PRENOTA-* SPECIFICI ===== */
.professionals-grid .prenota-professional-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 420px;
}

.professionals-grid .prenota-professional-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.professionals-grid .prenota-professional-card.prenota-premium {
    border-color: var(--color-primary, #2d5a3d);
}

/* Premium badge */
.professionals-grid .prenota-premium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary, #2d5a3d);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(45, 90, 61, 0.3);
    line-height: 1;
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cuore preferiti */
.professionals-grid .prenota-premium-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary, #2d5a3d);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(45, 90, 61, 0.3);
    line-height: 1;
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CUORE PREFERITI */
.professionals-grid .prenota-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.professionals-grid .prenota-favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.professionals-grid .prenota-favorite-btn.active {
    background: #fce7e6;
    color: #dc2626;
    border-color: #fce7e6;
}

/* Header card - foto + info */
.professionals-grid .prenota-card-header {
    display: flex;
    gap: 20px;
    padding: 24px;
    padding-bottom: 0;
    align-items: flex-start;
    flex-shrink: 0;
}

/* FOTO GRANDE SINISTRA */
.professionals-grid .prenota-card-image {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
}

.professionals-grid .prenota-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info header */
.professionals-grid .prenota-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 8px;
    margin-left: 8px;
}

.professionals-grid .prenota-header-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a2e;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.professionals-grid .prenota-header-info p {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.professionals-grid .prenota-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.professionals-grid .prenota-stars {
    color: #fbbf24;
    font-size: 16px;
    line-height: 1;
}

.professionals-grid .prenota-rating-value {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.professionals-grid .prenota-reviews-count {
    font-size: 13px;
    color: #666;
}

/* Contenuto card */
.professionals-grid .prenota-card-content {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* Specializzazioni - VERDE COME SERVIZI */
.professionals-grid .prenota-specializations {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-left: 12px;
}

.professionals-grid .prenota-tag {
    background: #E8F5E8;
    color: #2E7D32;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #C8E6C9;
    line-height: 1.2;
}

/* Dettagli servizio */
.professionals-grid .prenota-service-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.professionals-grid .prenota-location,
.professionals-grid .prenota-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.professionals-grid .prenota-location span,
.professionals-grid .prenota-pricing span {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.professionals-grid .prenota-pricing span {
    color: #2d5a3d;
    font-weight: 600;
}

.professionals-grid .prenota-packages {
    font-size: 13px;
    color: #2d5a3d;
    font-weight: 500;
    margin: 0;
}

/* ===== FOOTER CARD ===== */
.professionals-grid .prenota-card-footer {
    margin-top: auto;
    position: relative;
}

/* Disponibilità */
.professionals-grid .prenota-availability {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.professionals-grid .prenota-availability.has-last-minute {
    justify-content: flex-start;
    gap: 12px;
}

.professionals-grid .prenota-available {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    background: #d1fae5;
    color: #065f46;
}

/* LAST MINUTE - TAG STANDARD */
.professionals-grid .last-minute {
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    animation: blink 1.5s infinite;
    margin-right: 8px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.professionals-grid .prenota-distance {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* ===== BOTTONI ORIZZONTALI ===== */
.professionals-grid .prenota-card-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.professionals-grid .prenota-profile-btn,
.professionals-grid .prenota-book-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1.2;
    text-align: center;
}

.professionals-grid .prenota-profile-btn {
    background: white;
    color: #2d5a3d;
    border: 1px solid #2d5a3d;
}

.professionals-grid .prenota-profile-btn:hover {
    background: #f8fdf8;
}

.professionals-grid .prenota-book-btn {
    background: #2d5a3d;
    color: white;
}

.professionals-grid .prenota-book-btn:hover {
    background: #1e3a2e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .professionals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .professionals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* MOBILE: TRANSIZIONE A LAYOUT VERTICALE */
    .professionals-grid .prenota-card-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        align-items: center;
    }

    .professionals-grid .prenota-card-image {
        width: 140px;
        height: 140px;
        border-radius: 20px;
    }

    .professionals-grid .prenota-header-info {
        text-align: center;
        align-items: center;
        margin-left: 0;
    }

    .professionals-grid .prenota-rating {
        justify-content: center;
    }

    .professionals-grid .prenota-specializations {
        justify-content: center;
        margin-left: 0;
    }

    .professionals-grid .prenota-card-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .professionals-grid .prenota-card-image {
        width: 120px;
        height: 120px;
    }

    .professionals-grid .prenota-tag {
        font-size: 10px;
        padding: 4px 10px;
    }
}



/* STEP ACTIONS */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid #E0E0E0;
    gap: 16px;
    margin-top: 32px;
}

/* EMPTY STATES */
.no-professionals {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-professionals h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.no-professionals p {
    font-size: 16px;
    margin-bottom: 16px;
}

.no-professionals .btn-secondary {
    margin: 0 auto;
}

/* LOADING STATES */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E0E0E0;
    border-top: 4px solid #2E7D32;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* TOAST NOTIFICATIONS */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    border-left: 4px solid #2E7D32;
}

.toast.toast-error {
    border-left-color: #D32F2F;
}

.toast.toast-success {
    border-left-color: #2E7D32;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-message {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* ANIMAZIONI */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.step-content.active {
    animation: fadeIn 0.3s ease-out;
}

.professionals-grid .fisio-professional-card {
    animation: slideIn 0.3s ease-out;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .professionals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    #step4 .step-content {
        max-width: 2000px;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .step-indicator {
        padding: 0 10px;
        gap: 4px;
    }

    .step-line {
        width: 30px;
        margin: 0 4px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-content {
        padding: 24px 20px;
    }

    #step4 .step-content {
        padding: 24px 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .datetime-selection {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-modes {
        grid-template-columns: 1fr;
    }

    .location-input-group {
        flex-direction: column;
    }

    .quick-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .professionals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Layout verticale mobile per fisio cards */
    .professionals-grid .fisio-card-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        align-items: center;
    }

    .professionals-grid .fisio-card-image {
        width: 140px;
        height: 140px;
        border-radius: 20px;
    }

    .professionals-grid .fisio-header-info {
        text-align: center;
        align-items: center;
        margin-left: 0;
    }

    .professionals-grid .fisio-rating {
        justify-content: center;
    }

    .professionals-grid .fisio-specializations {
        justify-content: center;
        margin-left: 0;
    }

    .professionals-grid .fisio-card-actions {
        flex-direction: column;
        gap: 10px;
    }

    .step-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step-content {
        padding: 20px 16px;
    }

    .step-header h2 {
        font-size: 24px;
    }

    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .detect-location-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .radius-section {
        padding: 16px;
    }

    .professionals-grid .fisio-card-image {
        width: 120px;
        height: 120px;
    }

    .professionals-grid .fisio-tag {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* ACCESSIBILITY */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FOCUS STYLES */
.service-card:focus,
.professionals-grid .fisio-professional-card:focus,
.calendar-day:focus,
.time-slot:focus {
    outline: 2px solid #2E7D32;
    outline-offset: 2px;
}

/* STATI SPECIALI */
.step-content.has-error .step-header h2 {
    color: #D32F2F;
}

.error-message {
    background: #FFEBEE;
    color: #C62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid #D32F2F;
}

.success-message {
    background: #F8FDF8;
    color: #2E7D32;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid #2E7D32;
}

/* ===========================
   MODAL PACCHETTI CREDITI
   =========================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal-dialog-pacchetti {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content-pacchetti {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header-pacchetti {
    padding: 24px 28px;
    border-bottom: 2px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-pacchetti h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
}

.btn-close-modal {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-gray-light);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-modal:hover {
    background: var(--color-border);
    transform: rotate(90deg);
}

.modal-body-pacchetti {
    padding: 28px;
}

.modal-intro {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 24px;
    text-align: center;
}

.pacchetti-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.pacchetto-modal-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pacchetto-modal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.pacchetto-badge-consigliato {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pacchetto-modal-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 16px 0;
}

.pacchetto-modal-card .pacchetto-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.pacchetto-detail {
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.7;
    margin: 8px 0;
}

.pacchetto-risparmio {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.btn-seleziona-pacchetto {
    width: 100%;
    padding: 14px 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.btn-seleziona-pacchetto:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 90, 61, 0.3);
}

.modal-footer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.modal-footer-info svg {
    flex-shrink: 0;
}

.modal-footer-info p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-dialog-pacchetti {
        width: 95%;
    }

    .pacchetti-modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-body-pacchetti {
        padding: 20px;
    }
}