* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background: linear-gradient(135deg, #7eb89b 0%, #34495e 100%);
            min-height: 100vh;
            padding: 20px;
            color: #2c3e50;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .header h1 {
            font-size: 28px;
            font-weight: 500;
            margin-bottom: 15px;
        }

        .header p {
            opacity: 0.9;
            font-size: 16px;
        }

        .breadcrumb {
            padding: 20px 30px 0;
            font-size: 14px;
        }

        .breadcrumb a {
            color: #3498db;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: color 0.3s ease;
        }

        .breadcrumb a:hover {
            color: #2980b9;
        }

        .form-container {
            padding: 30px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .required {
            color: #e67e22;
        }

        .input-wrapper {
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #3498db;
            font-size: 18px;
        }

        input[type="text"], 
        input[type="email"], 
        input[type="tel"],
        input[type="date"],
        select, 
        textarea {
            width: 100%;
            padding: 15px 15px 15px 50px;
            border: 2px solid #bdc3c7;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #ecf0f1;
            color: #2c3e50;
        }

        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: #3498db;
            background: white;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .error {
            border-color: #e74c3c !important;
        }

        .error-message {
            color: #e74c3c;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .time-slots {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .time-slot {
            padding: 12px;
            border: 2px solid #bdc3c7;
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #ecf0f1;
            font-size: 14px;
            color: #2c3e50;
        }

        .time-slot:hover {
            border-color: #3498db;
            background: #ebf3fd;
            transform: translateY(-2px);
        }

        .time-slot.selected {
            background: #3498db;
            color: white;
            border-color: #3498db;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        }

        .time-slot.unavailable {
            background: #95a5a6;
            color: #7f8c8d;
            cursor: not-allowed;
        }

        .availability-info {
            background: #d5f4e6;
            border: 1px solid #27ae60;
            border-radius: 8px;
            padding: 12px;
            margin-top: 10px;
            font-size: 14px;
            color: #1e8449;
        }

        .submit-btn {
            width: 100%;
            /*background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);   COLORE ARANCIONE CON GRADIENTE*/
            background:  #27ae60 ; /* Colore verde */
            color: white;
            padding: 18px;
            border: none;
            border-radius: 12px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            /*box-shadow: 0 10px 20px rgba(230, 126, 34, 0.4); COLORE ARANCIONE CON EFFETTO SHADOW*/
            box-shadow: 0 10px 20px rgba(39, 174, 96, 0.4); /* Colore verde con effetto shadow */
        }

        .submit-btn:disabled {
            background: #95a5a6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .loading {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid #fff;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

    
        .view-bookings {
            text-align: center;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #bdc3c7;
        }

        .view-bookings a {
            color: #3498db;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .view-bookings a:hover {
            color: #2980b9;
        }

        .info-box {
            background: #ebf3fd;
            border: 1px solid #3498db;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
        }

        .info-box h3 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 16px;
        }

        .info-box ul {
            list-style: none;
            padding: 0;
        }

        .info-box li {
            padding: 5px 0;
            font-size: 14px;
            color: #34495e;
        }

        .info-box li::before {
            content: "✓";
            color: #27ae60;
            font-weight: bold;
            margin-right: 8px;
        }

        .success-message {
            display: none;
            background: #d5f4e6;
            border: 1px solid #27ae60;
            color: #1e8449;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            margin-bottom: 20px;
        }

        .success-message h3 {
            margin-bottom: 10px;
        }

        /* Stili specifici per i diversi servizi */
        .service-dichiarazione .time-slot.selected {
            background: #3498db;
            border-color: #3498db;
        }

        .service-reddito .time-slot.selected {
            background: #27ae60;
            border-color: #27ae60;
        }

        .service-isee .time-slot.selected {
            background: #9b59b6;
            border-color: #9b59b6;
        }

        @media (max-width: 768px) {
            .container {
                margin: 10px;
                border-radius: 15px;
            }
            
            .header {
                padding: 20px;
            }
            
            .header h1 {
                font-size: 24px;
            }
            
            .form-container {
                padding: 20px;
            }
            
            .time-slots {
                grid-template-columns: repeat(2, 1fr);
            }
        }