/* ==========================================================================
   TUTOR LAB ONBOARDING - HYPER PREMIUM DELUXE v2.2 (Icon & Logo Polish)
   ========================================================================== */

:root {
    --tl-brand-blue: #0d2e57;
    --tl-brand-yellow: #fec10d;
    --tl-text-dark: #0f172a;
    --tl-text-soft: #94a3b8; 
    --tl-text-light: #e2e8f0;
    --tl-bg-page: #f0f2f5;
    --tl-bg-card-light: #ffffff;
    --tl-border-light: #4a5568;
    --tl-radius-md: 12px;
    --tl-radius-lg: 24px;
    --tl-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.onboarding-active.wizard-open { overflow: hidden !important; }
*, *::before, *::after { box-sizing: border-box; }

/* ==========================================================================
   1. PAGINA DI SCELTA (con Logo)
   ========================================================================== */
.tutor-lab-registration-choice-page.deluxe-theme {
    padding: 40px 20px;
    min-height: 100vh;
    width: 100%;
    display: block;
    background-color: var(--tl-bg-page);
    position: relative;
}
html:has(.tutor-lab-registration-choice-page),
body:has(.tutor-lab-registration-choice-page) {
    overflow: auto !important;
    height: auto !important;
    min-height: 100vh;
}
#choice-main-panel {
    width: 100%;
    max-width: 960px;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 60px;
}
.choice-page-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
}
.choice-page-header h1 { font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 800; color: var(--tl-text-dark); margin: 0 0 10px 0; letter-spacing: -1.5px; }
.choice-page-header p { font-size: 1.1rem; color: var(--tl-text-soft); margin: 0 auto 60px; max-width: 550px; }
.pricing-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 30px; }
.pricing-card { flex: 1; min-width: 320px; max-width: 410px; border-radius: var(--tl-radius-lg); padding: 35px; display: flex; flex-direction: column; text-align: center; transition: var(--tl-transition); }

@media (max-width: 768px) {
    .tutor-lab-registration-choice-page.deluxe-theme {
        padding: 30px 15px;
        min-height: auto;
        display: block;
        overflow-y: visible;
    }

    /* Fix double scroll issue on mobile */
    html:has(.tutor-lab-registration-choice-page),
    body:has(.tutor-lab-registration-choice-page) {
        overflow-y: visible;
        overflow-x: hidden !important;
        height: auto !important;
        position: relative !important;
        touch-action: pan-y !important;
    }


    .choice-page-logo {
        max-width: 150px;
        margin: 0 auto 20px;
    }

    .choice-page-header h1 {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .choice-page-header p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .pricing-container {
        gap: 20px;
    }

    .pricing-card {
        min-width: 280px;
        padding: 25px 20px;
    }
}
@media (max-width: 480px) {
    .tutor-lab-registration-choice-page.deluxe-theme {
        padding: 20px 10px;
    }

    /* Ensure no double scroll on smaller mobile devices */
    html:has(.tutor-lab-registration-choice-page),
    body:has(.tutor-lab-registration-choice-page) {
        overflow-y: visible !important;
        overflow-x: hidden !important;
    }


    #choice-main-panel {
        padding-bottom: 40px;
    }

    .pricing-card {
        min-width: 100%;
        width: 100%;
    }

    .choice-page-header h1 {
        font-size: 1.75rem;
    }

    .choice-page-header p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
}

.rapid-card { background: var(--tl-bg-card-light); border: 1px solid #e2e8f0; box-shadow: 0 10px 25px -10px rgba(0, 46, 91, 0.07); }
.rapid-card:hover { transform: translateY(-8px); box-shadow: 0 20px 35px -15px rgba(0, 46, 91, 0.12); }
.pro-card { background: var(--tl-brand-blue); color: white; box-shadow: 0 20px 40px -15px rgba(0, 46, 91, 0.3); border: 1px solid var(--tl-brand-blue); }
.pro-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -20px rgba(0, 46, 91, 0.4); border-color: var(--tl-brand-yellow); }
.icon-circle { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px; }
.rapid-card .icon-circle { background: #eef2ff; color: #4338ca; }
.pro-card .icon-circle { background: linear-gradient(135deg, #fde047, #f97316); color: var(--tl-brand-blue); }
.pricing-card h3 { font-size: 1.8rem; font-weight: 700; margin: 0 0 10px; }
.rapid-card h3 { color: var(--tl-text-dark); } .pro-card h3 { color: white; }
.badge-pill { font-size: 0.75rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; display: inline-block; }
.rapid-card .badge-pill { background: #eef2ff; color: #4338ca; } .pro-card .badge-pill { background: var(--tl-brand-yellow); color: var(--tl-brand-blue); }
.card-features-list { list-style: none; padding: 0; margin: 30px 0; flex-grow: 1; display: flex; flex-direction: column; gap: 15px; text-align: left; }
.feature-row { display: flex; align-items: center; gap: 12px; font-size: 1rem; } .feature-row i { font-size: 1.3rem; line-height: 1; }
.rapid-card .feature-row { color: var(--tl-text-soft); } .rapid-card .feature-row i.ph-bold.ph-check { color: #22c55e; } .rapid-card .feature-row i.ph-bold.ph-x { color: #ef4444; }
.pro-card .feature-row { color: var(--tl-text-light); } .pro-card .feature-row i.ph-fill.ph-check-circle { color: #22c55e; }
.pricing-btn { width: 100%; padding: 16px; border-radius: var(--tl-radius-md); font-size: 1rem; font-weight: 700; border: none; cursor: pointer; transition: var(--tl-transition); }
.pricing-btn:hover { transform: translateY(-3px); }
.solid-gold { background: var(--tl-brand-yellow); color: var(--tl-brand-blue); } .solid-gold:hover { background: #ffcf40; }
.ghost-dark { background: #f1f5f9; color: var(--tl-text-dark); } .ghost-dark:hover { background: #e2e8f0; }
.back-to-site-link { color: #94a3b8; text-decoration: none; font-size: 0.9rem; margin-top: 50px; display: inline-flex; align-items: center; gap: 8px; }
.back-to-site-link:hover { color: var(--tl-text-dark); }


/* ==========================================================================
   2. WIZARD IMMERSIVO
   ========================================================================== */
#tutor-lab-full-onboarding-wizard,
#tutor-lab-rapid-onboarding-wizard {
    position: fixed !important; top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    z-index: 999999999 !important;
    display: none; align-items: center !important; justify-content: center !important;
    font-family: var(--tl-font-family, sans-serif);
}
#tutor-lab-full-onboarding-wizard.is-visible,
#tutor-lab-rapid-onboarding-wizard.is-visible { display: flex !important; }
.wizard-background { position: absolute; inset: 0; background: linear-gradient(315deg, #4f46e5, #7c3aed, #002e5b, #1e3a8a); background-size: 400% 400%; animation: gradientAnimation 25s ease infinite; z-index: 1; }
@keyframes gradientAnimation { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.wizard-split-container { display: flex !important; width: 90vw !important; max-width: 1300px !important; height: 90vh !important; max-height: 800px !important; background: rgba(15, 23, 42, 0.5) !important; backdrop-filter: blur(32px) !important; -webkit-backdrop-filter: blur(32px) !important; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--tl-radius-lg); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6); position: relative !important; z-index: 2; margin: 0 auto !important; overflow: hidden; transform: scale(0.95); opacity: 0; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease; }
.is-visible .wizard-split-container { transform: scale(1); opacity: 1; }
.wizard-left-col { flex: 1 1 55% !important; padding: 40px 50px !important; display: flex !important; flex-direction: column !important; height: 100% !important; z-index: 3; }
.wizard-right-col { flex: 1 1 45% !important; border-left: 1px solid rgba(255, 255, 255, 0.1) !important; justify-content: center; align-items: center; display: flex !important; flex-direction: column !important; }
@media (max-width: 991px) { .wizard-right-col { display: none !important; } .wizard-left-col { flex: 1 1 100% !important; width: 100% !important; max-width: 600px !important; margin: auto; } .wizard-split-container { width: 95vw !important; max-width: 600px !important; } }

@media (max-width: 768px) {
    #tutor-lab-full-onboarding-wizard,
    #tutor-lab-rapid-onboarding-wizard {
        align-items: flex-start !important;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        padding: 20px 0 !important;
    }

    .wizard-split-container {
        width: 95vw !important;
        height: auto !important;
        min-height: 90vh !important;
        max-height: none !important;
        margin: 20px auto !important;
        overflow: visible !important;
    }

    .wizard-left-col {
        height: auto !important;
        min-height: 0 !important;
        padding: 30px 25px !important;
        overflow: visible !important;
    }

    .wizard-content-wrapper {
        justify-content: flex-start !important;
        min-height: 0 !important;
    }

    .wizard-title {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
    }

    .wizard-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .wizard-logo-img {
        height: 48px !important;
    }

    .wizard-nav-row {
        flex-direction: column;
        gap: 12px;
    }

    .wizard-nav-btn {
        width: 100%;
        padding: 14px 25px;
        font-size: 1rem;
    }

    .wizard-nav-btn.prev {
        order: 2;
    }

    .wizard-nav-btn.next {
        order: 1;
    }

    .form-field input {
        padding: 14px;
        font-size: 16px;
    }

    .checkbox-card {
        width: 100%;
        padding: 15px 18px;
    }

    .feature-glass-card {
        width: 95%;
        padding: 30px 25px;
    }

    .feature-icon-large {
        font-size: 4.5rem !important;
    }

    .wizard-inline-footer {
        font-size: 0.75rem;
    }

    .wizard-mini-header {
        margin-bottom: 15px;
    }

    .progress-steps {
        font-size: 0.8rem;
    }

    .summary-box {
        padding: 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .wizard-split-container {
        width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
        min-height: 100vh !important;
    }

    .wizard-left-col {
        padding: 20px 15px !important;
    }

    .wizard-title {
        font-size: 1.75rem !important;
        letter-spacing: -0.5px;
    }

    .wizard-subtitle {
        font-size: 0.95rem !important;
    }

    .form-field input {
        padding: 12px;
    }

    .wizard-nav-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .pricing-card {
        min-width: 100%;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .pricing-card h3 {
        font-size: 1.5rem;
    }

    .card-features-list {
        gap: 12px;
    }

    .feature-row {
        font-size: 0.95rem;
    }
}
.wizard-mini-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-shrink: 0; }
.wizard-logo-img { height: 48px; width: auto; opacity: 0.95; }
.header-controls { display: flex; align-items: center; gap: 15px; }
.progress-steps { font-size: 0.9rem; font-weight: 600; color: var(--tl-text-soft); }
.control-btn { background: rgba(255,255,255,0.08); border: 1px solid var(--tl-border-light); color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: var(--tl-transition); }
.control-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.1) rotate(3deg); }
.wizard-progress-bar { position: relative; height: 5px; background: rgba(255,255,255,0.1); border-radius: 2.5px; margin-bottom: 25px; flex-shrink: 0; overflow: hidden; }
.progress-indicator { height: 100%; width: 0%; background: var(--tl-brand-yellow); transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1); border-radius: 2.5px; }
.wizard-content-wrapper { text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.wizard-slide { display: none; animation: fadeIn 0.7s ease-in-out; } .wizard-slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
.wizard-title { font-size: clamp(2.8rem, 5vw, 3.5rem); font-weight: 800; color: white; margin: 0 0 15px 0; line-height: 1.1; letter-spacing: -1.8px; }
.wizard-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.3rem); color: var(--tl-text-soft); line-height: 1.6; margin: 0 auto 40px; max-width: 520px; }
.feature-glass-card { width: 85%; max-width: 400px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 30px; padding: 40px; text-align: center; animation: floatCard 8s ease-in-out infinite; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* === MODIFICA ICONA DELUXE === */
.feature-icon-large {
    font-size: 6.5rem; /* Aumentata la dimensione */
    color: var(--tl-brand-yellow);
    margin-bottom: 25px;
    display: block;
    text-shadow: 0 0 45px rgba(254, 193, 13, 0.75); /* Aumentato l'effetto "glow" */
}
.feature-title { font-size: 1.6rem; font-weight: 700; color: white; margin-bottom: 12px; }
.feature-desc { font-size: 1.05rem; color: var(--tl-text-light); line-height: 1.7; }
.wizard-left-footer { padding-top: 25px; flex-shrink: 0; margin-top: auto; }
.wizard-nav-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 25px; }
.wizard-nav-btn { padding: 15px 30px; font-size: 1.05rem; font-weight: 700; border-radius: var(--tl-radius-md); border: none; cursor: pointer; transition: all 0.2s ease; text-decoration: none !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wizard-nav-btn i { font-size: 1.2em; }
.wizard-nav-btn.prev { background-color: rgba(255,255,255,0.1); color: var(--tl-text-light); } .wizard-nav-btn.prev:hover { background-color: rgba(255,255,255,0.2); color: white; }
.wizard-nav-btn.next { background-color: var(--tl-brand-yellow); color: var(--tl-brand-blue) !important; box-shadow: 0 6px 20px -5px rgba(254, 193, 13, 0.4); }
.wizard-nav-btn.next:hover { background-color: #ffcf40; transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 25px -8px rgba(254, 193, 13, 0.5); }
.wizard-inline-footer { text-align: center; font-size: 0.85rem; color: var(--tl-text-soft); } .wizard-inline-footer p { margin-bottom: 10px; line-height: 1.5; }
.wizard-inline-footer a { color: var(--tl-text-light); text-decoration: none; margin: 0 8px; transition: color 0.2s ease; } .wizard-inline-footer a:hover { color: var(--tl-brand-yellow); text-decoration: underline; }
.form-field { text-align: left; margin-bottom: 20px; } .form-field label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--tl-text-light); }
.form-field input { width: 100%; padding: 16px; font-size: 1rem; border: 1px solid var(--tl-border-light); border-radius: var(--tl-radius-md); background: rgba(0,0,0,0.25); color: white; transition: var(--tl-transition); }
.form-field input::placeholder { color: var(--tl-text-soft); }
.form-field input:focus { border-color: var(--tl-brand-yellow); box-shadow: 0 0 0 4px rgba(254, 193, 13, 0.25); background-color: rgba(0, 0, 0, 0.3); outline: none; }
.form-field.input-error input, .privacy-field.input-error { border-color: #ef4444 !important; }
.final-state-feedback .ph-fill { font-size: 4.5rem; display: block; margin: 0 auto 30px; }
.spinner-deluxe { width: 48px; height: 48px; border: 5px solid rgba(255,255,255,0.2); border-top-color: white; border-radius: 50%; display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkbox-card { display: inline-block; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--tl-radius-md); background: rgba(0,0,0,0.2); cursor: pointer; transition: var(--tl-transition); }
.checkbox-card:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(0,0,0,0.3); }
.checkbox-card input[type="checkbox"] { display: none; }
.checkbox-card input[type="checkbox"]:checked + strong { color: var(--tl-brand-yellow); }
.checkbox-card input[type="checkbox"]:checked + strong::before { background-color: var(--tl-brand-yellow); border-color: var(--tl-brand-yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2e57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-size: 16px; background-repeat: no-repeat; background-position: center; }
.checkbox-card strong { font-size: 1.1rem; color: white; display: flex; align-items: center; gap: 15px; transition: color 0.2s ease; }
.checkbox-card strong::before { content: ''; display: inline-block; width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 8px; background-color: rgba(0,0,0,0.2); transition: all 0.2s ease; }
.summary-box { background: rgba(0,0,0,0.2); padding: 20px; border-radius: var(--tl-radius-md); margin-bottom: 20px; text-align: left; }
.summary-box p { color: var(--tl-text-soft); } .summary-box strong { color: white; }
.privacy-field.input-error label { color: #f87171; } .privacy-field a { color: var(--tl-brand-yellow); font-weight: 600; }
#wizard-help-modal { display: none; position: fixed; inset: 0; z-index: 9999999999 !important; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
#wizard-help-modal.is-visible { display: flex; opacity: 1; }
.help-modal-content { background: #1e293b; color: white; padding: 30px; border-radius: var(--tl-radius-lg); max-width: 550px; width: 90%; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.help-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.8rem; color: #94a3b8; cursor: pointer; }
.help-modal-content h3 { margin-top: 0; font-size: 1.5rem; color: white; }
.help-modal-content div { font-size: 1rem; color: #cbd5e1; line-height: 1.6; }

@media (max-width: 768px) {
    #wizard-help-modal {
        align-items: flex-start;
        padding: 20px 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .help-modal-content {
        padding: 25px 20px;
        width: 95%;
        margin: auto;
    }

    .help-modal-content h3 {
        font-size: 1.3rem;
        padding-right: 30px;
    }

    .help-modal-content div {
        font-size: 0.95rem;
    }
}
.wizard-logo-img {
  height: 78px;
  width: auto;
  opacity: 0.95;
}
/* Nasconde SOLO il checkbox vero della newsletter */
.checkbox-newsletter::before {
    display: none !important;
}
.wizard-feature-icon {
    font-size: 100px !important;  /* dimensione grande */
    color: #EAB701 !important;   /* giallo oro */
    display: inline-block;
}
