html {
    scroll-behavior: smooth;
}

/* FLOT Logo Styling */
.flot-logo {
    font-family: 'Euclid Circular B', 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.flot-f {
    color: #ffffff;
    font-size: 1.15em;
    text-transform: uppercase;
}

.flot-l {
    color: #ffffff;
    text-transform: lowercase;
}

/* Form Mode Toggle Buttons */
.mode-btn {
    background: transparent;
    color: #6b7280;
    border: 1px solid transparent;
}

.mode-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 133, 0.15) 0%, rgba(0, 255, 133, 0.05) 100%);
    color: #00FF85;
    border-color: rgba(0, 255, 133, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 133, 0.1);
}

.mode-btn:hover:not(.active) {
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.03);
}

/* Animazioni */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 133, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 255, 133, 0.5);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes draw-line {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes number-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    pointer-events: none;
}

.btn-shine:hover::before {
    animation: shine 1.5s infinite linear;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Animazioni scroll-triggered */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Glassmorphism */
/* Glassmorphism Refined */
.glass {
    background: rgba(20, 20, 28, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Utility per effetto "clear" su mobile se necessario */
.glass-clear {
    background: rgba(20, 20, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Effetti */
.text-gradient {
    background: linear-gradient(135deg, #00FF85 0%, #00cc6a 50%, #00FF85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 255, 133, 0.3));
}

.box-glow {
    box-shadow: 0 0 60px rgba(0, 255, 133, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Pattern di sfondo */
.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Form styling */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300FF85'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #252532;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00FF85;
}

/* Step connector line */
.step-line {
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(100% - 2rem);
    height: 2px;
    background: linear-gradient(90deg, #00FF85 0%, transparent 100%);
    transform: translateY(-50%);
}


/* Micro-interactions */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0, 255, 133, 0.2);
}

/* Input focus glow */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(0, 255, 133, 0.15) !important;
    border-color: #00FF85 !important;
}

/* Ottimizzazione Mobile */
@media (max-width: 768px) {
    .glass {
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        background: rgba(20, 20, 28, 0.85);
        /* Leggermente più trasparente per far vedere il blur */
    }

    .glass-light {
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        background: rgba(255, 255, 255, 0.05);
    }

    .animate-float {
        animation: none !important;
    }

    /* Float è pesante su mobile a volte */

    .reveal {
        transition: opacity 0.3s ease;
        /* Animazioni più semplici */
        transform: none !important;
    }

    /* Rimuovi blur dagli orbs decorativi */
    [class*="blur-"] {
        filter: none !important;
        display: none !important;
    }

    .box-glow {
        box-shadow: none !important;
    }

    /* Form input mobile - centramento e larghezza */
    #bookingForm {
        padding: 0 !important;
        width: 100% !important;
    }

    #bookingForm input,
    #bookingForm select,
    #bookingForm .group {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #bookingForm .grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        /* Spaziatura aumentata per touch */
    }

    /* Mobile Form UX Enhancements */
    #bookingForm input,
    #bookingForm select {
        scroll-margin-top: 140px;
        /* Evita che la tastiera copra il campo */
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 16px !important;
        /* Previene zoom automatico su iOS */
    }

    /* FIX: Allineamento verticale Data/Ora su iOS/Mobile */
    #bookingForm input[type="date"],
    #bookingForm input[type="time"] {
        appearance: none;
        -webkit-appearance: none;
        min-height: 3.625rem;
        /* ~58px per matchare gli altri input */
        display: block;
        line-height: normal;
    }

    /* Allinea il testo/placeholder nativo di iOS */
    #bookingForm input[type="date"]::-webkit-date-and-time-value,
    #bookingForm input[type="time"]::-webkit-date-and-time-value {
        text-align: left;
        display: block;
        padding-top: 2px;
        /* Micro-aggiustamento ottico */
    }

    #bookingForm input:focus,
    #bookingForm select:focus {
        transform: scale(1.02);
        background-color: rgba(30, 30, 40, 1) !important;
        /* Più chiaro */
        border-color: #00FF85 !important;
        box-shadow: 0 0 20px rgba(0, 255, 133, 0.2), inset 0 0 0 1px rgba(0, 255, 133, 0.1);
        z-index: 10;
        position: relative;
    }

    /* Icone più visibili in focus */
    .group:focus-within i {
        color: #00FF85 !important;
        filter: drop-shadow(0 0 5px rgba(0, 255, 133, 0.5));
        transform: translateY(-50%) scale(1.2);
    }

    /* Etichette più leggibili */
    #bookingForm label {
        font-size: 0.8rem !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 0.75rem !important;
    }

    /* Place picker container mobile fix */
    #place-picker-container {
        width: 100% !important;
    }

    /* Tasto Blocca Prezzo Mobile - Più evidente */
    #submitBtn {
        position: relative;
        overflow: hidden;
        font-size: 1.1rem !important;
        padding: 1.25rem !important;
        box-shadow: 0 0 15px rgba(0, 255, 133, 0.3) !important;
        animation: mobile-pulse 2s infinite;
    }

    @keyframes mobile-pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(0, 255, 133, 0.4);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(0, 255, 133, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(0, 255, 133, 0);
        }
    }
}

/* Tablet - blur ridotto */
@media (max-width: 1024px) and (min-width: 769px) {
    .glass {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .glass-light {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

/* ============================================
   INTL-TEL-INPUT CUSTOM STYLES (DARK MODE)
   ============================================ */
.iti {
    width: 100% !important;
    display: block !important;
}

.iti__flag-container {
    background-color: transparent !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    padding: 0 !important;
    z-index: 20 !important;
    /* Fix: deve stare sopra l'input quando è in focus (z-index: 10) */
}

.iti__selected-flag {
    background-color: transparent !important;
    padding: 0 8px 0 16px !important;
    border: none !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.iti__selected-dial-code {
    color: #ffffff !important;
    font-weight: 500 !important;
    margin-left: 0 !important;
    font-size: 1rem !important;
}

.iti__arrow {
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 5px solid #9ca3af !important;
    border-bottom: none !important;
    margin-left: 4px !important;
}

.iti__country-list {
    background-color: #1a1a24 !important;
    border: 2px solid #00FF85 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
    max-height: 220px !important;
    border-radius: 0.75rem !important;
    margin-top: 4px !important;
    z-index: 1000 !important;
}

.iti__country {
    padding: 12px 16px !important;
    color: #fff !important;
    transition: all 0.15s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Fix per input di ricerca paesi */
.iti__search-input {
    background-color: #0a0a0f !important;
    border: 1px solid #333 !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 8px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
    outline: none !important;
}

.iti__search-input:focus {
    border-color: #00FF85 !important;
    box-shadow: 0 0 0 2px rgba(0, 255, 133, 0.2) !important;
}

.iti__country:hover {
    background-color: rgba(0, 255, 133, 0.15) !important;
}

/* === ANIMATIONS FOR VIRAL SUCCESS PAGE === */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 2s infinite linear;
}

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

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

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.iti__country.iti__highlight {
    background-color: rgba(0, 255, 133, 0.25) !important;
}

.iti__country-name {
    color: #fff !important;
    font-weight: 500 !important;
}

.iti__dial-code {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

.iti--allow-dropdown input,
.iti--allow-dropdown input[type=text],
.iti--allow-dropdown input[type=tel] {
    padding-left: 90px !important;
    padding-right: 16px !important;
    color: #ffffff !important;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: transparent !important;
}

.iti--separate-dial-code .iti__selected-dial-code {
    margin-left: 0 !important;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
    background-color: rgba(0, 255, 133, 0.08) !important;
}

.iti__flag {
    transform: scale(1.2) !important;
}

/* Fix per mobile */
@media (max-width: 768px) {
    .iti__country-list {
        max-height: 180px !important;
    }

    .iti--allow-dropdown input {
        padding-left: 85px !important;
    }

    .iti__selected-flag {
        padding: 0 6px 0 12px !important;
    }
}

/* STILE CHECKBOX RESPONSIVE */

/* Fix specifico per checkbox privacy - FORZATURA QUADRATA */
#privacy {
    -webkit-appearance: none;
    appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    background-color: #1a1a24;
    border: 2px solid #374151;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 768px) {
    #privacy {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
        flex: 0 0 22px !important;
    }
}

#privacy:checked {
    background-color: #00FF85;
    border-color: #00FF85;
}

#privacy:checked::after {
    content: "✓";
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #0a0a0f;
    font-weight: bold;
    font-size: 14px;
}

@media (min-width: 768px) {
    #privacy:checked::after {
        font-size: 16px;
    }
}


.custom-checkbox {
    -webkit-appearance: none;
    appearance: none;
    background-color: #1a1a24;
    /* bg-dark-800 */
    margin: 0;

    /* Layout */
    display: grid;
    place-content: center;

    /* Dimensioni fisse per il contenitore esterno */
    width: 1rem;
    /* 20px */
    height: 1rem;
    /* 20px */
    min-width: 1rem;
    /* IMPORTANTE: impedisce lo schiacciamento su mobile */
    min-height: 1rem;

    border: 0.3px solid #374151;
    /* border-gray-700 */
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Stato Checked */
.custom-checkbox:checked {
    background-color: #00FF85;
    /* bg-neon */
    border-color: #00FF85;
}

/* La spunta (icona interna) */
.custom-checkbox::before {
    content: "";
    /* SOLUZIONE: Usa percentuali invece di rem fissi */
    width: 65%;
    height: 65%;

    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #0a0a0f;
    /* Colore della spunta */
    transform-origin: center;
    /* La forma della spunta */
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.custom-checkbox:checked::before {
    transform: scale(1);
}