   /* Reset de bază */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-overflow-scrolling: touch; /* Safari iOS smooth scrolling */
        }
        
        /* Body fix pentru Safari */
        body {
            overflow-x: hidden;
            position: relative;
        }
        
        /* Secțiune principală pentru a plasa conținutul central */
            .reservation-container {
                max-width: 600px;
                margin: 40px auto;
                padding: 20px;
                background-color: #000000;
                border-radius: 8px;
                border: 2px solid #ffffff;
                color: #fff;
                box-shadow: 0 4px 6px rgba(0,0,0,0.1);
                overflow: hidden !important;
                position: relative;
                z-index: 10 !important;
                min-height: auto;
                height: auto;
            }                       
        
        .reservation-container h1 {
            text-align: center;
            margin-bottom: 20px;
            color: #ff1d46;
            font-size: 24px;
        }
        .reservation-container h2 {
            margin-top: 20px;
            margin-bottom: 10px;
            color: #ff1d46;
            font-size: 18px;
        }
        label {
            display: block;
            margin: 10px 0 5px;
            font-weight: bold;
            color: #fff;
        }
        
        /* Input-uri generale */
        select,
        input[type="date"],
        input[type="text"],
        input[type="tel"],
        input[type="email"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #444;
            border-radius: 4px;
            font-size: 14px;
            background-color: #333;
            color: #fff;
            transition: border-color 0.3s ease;
        }
        
        /* Fix specific pentru input date Safari */
        input[type="date"] {
            background-color: #333 !important;
            color: #fff !important;
            border: 1px solid #444 !important;
            padding: 10px !important;
            border-radius: 4px !important;
            -webkit-appearance: none !important;
            appearance: none !important;
            font-size: 16px !important; /* Previne zoom-ul pe iOS */
            -webkit-text-fill-color: #fff !important;
            position: relative;
            margin-bottom: 20px;
        }
        
        /* Stiluri specifice pentru WebKit (Safari) */
        @supports (-webkit-appearance: none) {
            input[type="date"] {
                background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="white"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>');
                background-repeat: no-repeat;
                background-position: right 10px center;
                padding-right: 40px;
            }
            
            input[type="date"]::-webkit-calendar-picker-indicator {
                opacity: 0;
                cursor: pointer;
                position: absolute;
                right: 10px;
                width: 30px;
                height: 30px;
            }
        }
        
        /* iOS Safari specific */
        @media screen and (-webkit-min-device-pixel-ratio: 2) {
            input[type="date"] {
                background-color: #333 !important;
                color: white !important;
                text-align: left !important;
            }
        }
        
        /* Fix pentru iOS Safari specific */
        @supports (-webkit-touch-callout: none) {
            .reservation-container {
                transform: none !important;
                position: static !important;
                overflow: visible !important;
            }
        }
        
        select:focus,
        input:focus {
            outline: none;
            border-color: #ff1d46;
        }
        
        /* Butoane */
        button {
            background-color: #ff1d46;
            color: #fff;
            border: none;
            border-radius: 4px;
            padding: 12px 20px;
            margin-top: 10px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s ease;
            width: 100%;
        }
        button:hover {
            background-color: #005da8;
        }
        
        /* Pașii (step) */
        .step {
            display: none;
        }
        .step.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        
        /* Fix pentru step1 cu spațiu pentru calendar Safari */
        #step1 {
            position: relative;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
               /* Pop-up */
        .popup {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999999;
            min-height: 100vh;
                transform: translateZ(0);  
        }

                        .popup-content {
                    background-color: #000000;
                    padding: 30px;
                    border-radius: 8px;
                    width: 90%;                                    /* ← PĂSTREAZĂ doar această */
                    max-width: 400px;
                    text-align: center;
                    color: #fff;
                    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
                    position: relative;
                    border: 2px solid #ffffff;
                    max-height: calc(100vh - 40px);
                    overflow-y: auto;
                    -webkit-overflow-scrolling: touch;
                    z-index: 10000000;
                }

                .popup-open .reservation-container {
            position: static !important;
            z-index: auto !important;
            overflow: visible !important;
        }


        .popup-content h3 {
            margin-bottom: 20px;
            color: #ff1d46;
        }
        
        /* Stiluri pentru butonul X de închidere */
        .popup-close {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            color: #fff;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: auto;
            height: auto;
            margin: 0;
            line-height: 1;
            transition: color 0.3s ease;
        }
        
        .popup-close:hover {
            color: #ff1d46;
            background: none;
        }
        
        /* Radio inputs container */
        #oreDisponibile {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        #oreDisponibile label {
            background-color: #333;
            padding: 10px;
            border-radius: 4px;
            text-align: center;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        #oreDisponibile input[type="radio"] {
            display: none;
        }
        #oreDisponibile input[type="radio"]:checked + span {
            background-color: #ff1d46;
            display: block;
            border-radius: 4px;
            padding: 5px;
        }
        #oreDisponibile label span {
            display: block;
            color: #fff;
        }
        
        /* Stiluri îmbunătățite pentru step4 */
        #step4 {
            text-align: center;
        }
        
        #step4 h2 {
            margin-bottom: 25px;
            font-size: 22px;
        }
        
        #step4 .success-message {
            background-color: #1a4d1a;
            border-left: 4px solid #4CAF50;
            padding: 20px;
            margin: 40px 0 20px 0;
            border-radius: 6px;
            text-align: left;
        }
        
        #step4 .success-message p {
            margin-bottom: 12px;
            line-height: 1.6;
            color: #fff;
        }
        
        #step4 .success-message p:last-child {
            margin-bottom: 0;
        }
        
        #step4 .info-highlight {
            background-color: #1a3d5c;
            border-left: 4px solid #2196F3;
            padding: 15px;
            margin: 15px 0;
            border-radius: 6px;
            text-align: left;
        }
        
        #step4 .info-highlight p {
            margin: 0;
            color: #fff;
            font-weight: 500;
        }
        
        /* Stil pentru link-ul de retrimitere cod */
        #retrimiteCod {
            color: #007bff;
            text-decoration: none;
            display: inline-block;
            margin-top: 10px;
        }
        #retrimiteCod:hover {
            text-decoration: underline;
        }
        
        /* Stiluri pentru mesajul de duminică */
        .sunday-message {
            background-color: #1a1a1a;
            border-left: 4px solid #ff9800;
            padding: 15px;
            margin: 15px 0;
            border-radius: 4px;
            text-align: center;
        }
        
        .sunday-message h3 {
            color: #ff9800;
            margin-bottom: 10px;
            font-size: 16px;
        }
        
        .sunday-message p {
            margin-bottom: 10px;
            line-height: 1.5;
        }
        
        /* Stiluri pentru butonul înapoi */
        .btn-back {
            background-color: #333;
            color: #fff;
            border: none;
            border-radius: 4px;
            padding: 10px 15px;
            margin-top: 10px;
            cursor: pointer;
            font-size: 14px;
            transition: background-color 0.3s ease;
            width: 100%;
        }
        
        .btn-back:hover {
            background-color: #444;
        }
        
        /* Stil pentru countdown */
        #countdown {
            font-size: 14px;
            color: #ff1d46;
            margin-top: 5px;
            text-align: center;
            font-weight: normal;
        }
        
        #resendWrapper {
            margin-top: 10px;
            min-height: 40px; /* Înălțime minimă pentru a evita săriturile de conținut */
        }

        /* Stiluri pentru inputul de telefon cu prefix de țară */
        .phone-input-container {
            margin-bottom: 15px;
        }

        .phone-wrapper {
            display: flex;
            gap: 10px;
            align-items: stretch;
        }

        .country-code {
            width: 88px;
            padding: 10px;
            background-color: #333;
            color: #fff;
            border: 1px solid #444;
            border-radius: 4px;
            margin-bottom: 0;
            height: 42px;
            font-size: 14px;
        }

        .phone-wrapper input[type="tel"] {
            flex: 1;
            margin-bottom: 0;
            height: 42px;
        }

        /* Stiluri pentru notificări moderne */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            max-width: 400px;
            padding: 16px 20px;
            border-radius: 12px;
            color: white;
            font-weight: 500;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            z-index: 10000;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            display: flex;
            align-items: center;
            gap: 12px;
            backdrop-filter: blur(10px);
        }

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

        .notification.error {
            background: linear-gradient(135deg, #ff6b6b, #ee5a52);
            border-left: 4px solid #ff4757;
        }

        .notification.success {
            background: linear-gradient(135deg, #51cf66, #40c057);
            border-left: 4px solid #37b24d;
        }

        .notification.info {
            background: linear-gradient(135deg, #74c0fc, #339af0);
            border-left: 4px solid #228be6;
        }

        .notification .icon {
            font-size: 20px;
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
        }

        .notification .content {
            flex: 1;
            line-height: 1.4;
        }

        .notification .close-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 16px;
            cursor: pointer;
            padding: 4px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            margin: 0;
            opacity: 0.8;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .notification .close-btn:hover {
            opacity: 1;
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        /* Responsivitate generală */
        @media (max-width: 480px) {
            .reservation-container {
                margin: 20px;
                padding: 15px;
            }
            #oreDisponibile {
                grid-template-columns: repeat(2, 1fr);
            }
            button {
                font-size: 13px;
                padding: 10px 15px;
            }
            
            /* Responsive pentru notificări */
            .notification {
                top: 10px;
                right: 10px;
                left: 10px;
                max-width: none;
                transform: translateY(-100%);
            }
            
            .notification.show {
                transform: translateY(0);
            }
        }
        
        /* Fix specific pentru mobile Safari - calendar positioning */
        @media screen and (max-width: 768px) {
            .reservation-container {
                margin: 10px;
                padding: 15px;
                overflow: visible;
                position: static; /* Schimbă la static pentru a permite overflow */
                max-width: none;
                width: calc(100vw - 20px);
            }
            
            /* Spațiu extra pentru calendar */
            #step1 {
                padding-bottom: 320px; /* Adaugă spațiu pentru calendar */
                position: relative;
            }
            
            input[type="date"] {
                position: relative;
                margin-bottom: 20px;
            }
        }