/**
 * vendi.css — Stili Modulari Wizard e Landing Page Pubblicazione Annuncio AstaCerta
 */

/* ==========================================================================
   LANDING PAGE PERSUASIVA (STILE COCHES.NET)
   ========================================================================== */
.vendi-landing-container {
    padding-bottom: 70px;
}

.vendi-landing-hero {
    position: relative;
    background: linear-gradient(135deg, #0b192c 0%, #153050 60%, #1d4ed8 100%);
    color: #ffffff;
    padding: 120px 20px 80px;
    margin-top: -70px; /* Raggiunge la navbar senza strisce bianche */
    clip-path: ellipse(130% 75% at 50% 20%);
    overflow: hidden;
}

.vendi-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.vendi-hero-title {
    font-size: clamp(24px, 4.5vw, 42px);
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.5px;
    max-width: 820px;
    margin: 0 auto;
}

.vendi-hero-subtitle {
    font-size: clamp(14px, 2.2vw, 17px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 660px;
    line-height: 1.6;
}

.vendi-landing-cards-section {
    margin-top: 45px; /* Distanziamento arioso ed elegante sotto la curva blu */
    position: relative;
    z-index: 2;
}

.vendi-option-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 38px 30px;
    box-shadow: 0 15px 35px -5px rgba(15, 30, 50, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vendi-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px -8px rgba(15, 30, 50, 0.14);
}

.vendi-option-card--featured {
    border: 2px solid var(--accent-color) !important;
    box-shadow: 0 18px 40px -5px rgba(212, 178, 78, 0.22), 0 5px 15px rgba(0, 0, 0, 0.04);
}

.vendi-option-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background-color: var(--accent-color) !important;
    color: #0d1e33 !important;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(212, 178, 78, 0.4);
}

.vendi-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.vendi-check-icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.btn-vendi-cta-primary {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #0d1e33 !important;
    font-size: clamp(0.85rem, 3.6vw, 1.02rem);
    white-space: nowrap !important;
    padding-left: clamp(10px, 2.8vw, 24px) !important;
    padding-right: clamp(10px, 2.8vw, 24px) !important;
    transition: all 0.2s ease;
}

.btn-vendi-cta-primary span {
    white-space: nowrap;
}

@media (max-width: 420px) {
    .vendi-option-card {
        padding: 28px 16px !important;
    }
    .btn-vendi-cta-primary {
        gap: 6px !important;
        font-size: 0.84rem !important;
    }
}

.btn-vendi-cta-primary:hover {
    background-color: #c4a13e !important;
    border-color: #b39134 !important;
    color: #050e19 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 178, 78, 0.4) !important;
}

.vendi-trust-item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.vendi-trust-icon {
    font-size: 1.8rem;
}

/* ==========================================================================
   WIZARD COMPILAZIONE (STEP GUIDATI)
   ========================================================================== */
.wizard-container {
    max-width: 820px;
    margin: 100px auto 50px;
    padding: 0 15px;
}

.wizard-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    padding: 36px 32px;
}

/* Alert Errore Rosso AstaCerta (.alert-danger / .alert-warning / .alert-rosso): gradiente #ee5f5b -> #c43c35 con text-shadow */
.wizard-card .alert.alert-danger,
.wizard-card .alert.alert-warning,
.wizard-card .alert.alert-rosso {
    color: #ffffff !important;
    background: linear-gradient(to bottom, #ee5f5b, #c43c35) repeat-x !important;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25) !important;
    border-radius: 12px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(196, 60, 53, 0.32) !important;
    padding: 13px 18px !important;
}

.wizard-card .alert.alert-danger strong,
.wizard-card .alert.alert-warning strong,
.wizard-card .alert.alert-rosso strong {
    color: #ffffff !important;
}

/* Evidenziazione Bordo Rosso e Glow per campi non validi (.is-invalid) */
.wizard-card .form-control.is-invalid,
.wizard-card .form-select.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fffafb !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

.wizard-card .targa-box.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25) !important;
}

.wizard-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
    width: 100%;
}

.step-indicator {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 0;
    flex: 0 0 auto;
    width: 68px;
}

.step-connector {
    flex: 1 1 0;
    height: 3px;
    background: #cbd5e1;
    margin-top: 17px;
    border-radius: 2px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 0 0 3px #ffffff;
}

.step-indicator.active .step-circle {
    background: #153050;
    color: #ffffff;
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px rgba(21, 48, 80, 0.2);
}

.step-indicator.completed .step-circle {
    background: #10B981;
    color: #ffffff;
    box-shadow: 0 0 0 3px #ffffff;
}

.step-label {
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}

.step-indicator.active .step-label {
    color: #0F172A;
    font-weight: 700;
}

.dropzone-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropzone-area:hover, .dropzone-area.dragover {
    border-color: #153050;
    background: #eff6ff;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.photo-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #e2e8f0;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
}

.photo-preview-item .main-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: #153050;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

/* TARGA ITALIANA REALISTICA V3 WIZARD (FEDELE ALLA SCHEDA DETTAGLIO) */
.targa-box {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    border-radius: 6px;
    padding: 3px;
    display: inline-flex;
    align-items: stretch;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 52px;
    max-width: 290px;
    width: 100%;
    position: relative;
    user-select: none;
    box-sizing: border-box;
}

.targa-band-left,
.targa-band-right {
    background-color: #003399;
    border-radius: 3px;
    width: 32px;
    min-width: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.targa-eu-stars-svg {
    width: 20px;
    height: 20px;
    display: block;
}

.targa-country-code {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    margin-top: 1px;
}

.targa-year-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.8px solid #ffd700;
    display: block;
}

.targa-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0f172a;
    width: 100%;
    flex: 1 1 auto;
    text-align: center;
    padding: 0 6px;
}

.wizard-month-select {
    max-width: 95px !important;
    padding-left: 10px !important;
    padding-right: 28px !important;
    background-position: right 8px center !important;
    background-size: 14px 10px !important;
    font-size: 14px;
    text-align: left;
}

/* ==========================================================================
   SELETTORE TIPOLOGIA VEICOLO (STEP 1)
   ========================================================================== */
.vehicle-type-selector {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.btn-vehicle-type {
    background: transparent;
    color: #475569;
    border: none;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.btn-vehicle-type:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
}

.btn-vehicle-type.active {
    background: #ffffff !important;
    color: #153050 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    font-weight: 700;
}

.btn-vehicle-type.active .material-icons-outlined {
    color: #2563eb;
}

/* Documenti PDF (Step 5) */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.doc-preview-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.doc-preview-item .doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.doc-preview-item .doc-badge {
    background: #fee2e2;
    color: #ef4444;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.doc-preview-item .doc-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-preview-item .doc-size {
    font-size: 12px;
    color: #64748b;
}

.doc-preview-item .remove-doc-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.doc-preview-item .remove-doc-btn:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* ==========================================================================
   DISCLAIMER PRIVACY TARGA & RESPONSIVE POLISH WIZARD (AC-081)
   ========================================================================== */
.targa-privacy-hint {
    margin: 16px auto 24px auto;
    max-width: 420px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.targa-privacy-hint .material-icons-outlined {
    font-size: 18px !important;
    line-height: 1;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .wizard-card {
        padding: 24px 16px !important;
    }

    .vehicle-type-selector {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        border-radius: 14px !important;
        padding: 6px !important;
        gap: 6px !important;
    }

    .btn-vehicle-type {
        width: 100% !important;
        border-radius: 10px !important;
        justify-content: center !important;
        padding: 11px 16px !important;
        font-size: 0.95rem !important;
    }

    .targa-privacy-hint {
        margin: 18px auto 26px auto;
        padding: 0 4px;
        text-align: left;
        align-items: flex-start;
    }

    .targa-privacy-hint .material-icons-outlined {
        margin-top: 1px;
    }

    /* Step indicator compatto ed ergonomico su mobile con trattini ben proporzionati */
    .wizard-steps {
        margin-bottom: 22px;
        padding: 0 4px;
    }

    .step-indicator {
        width: 48px;
    }

    .step-connector {
        height: 2px;
        margin-top: 14px;
        background: #cbd5e1;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-bottom: 3px;
        box-shadow: 0 0 0 2px #ffffff;
    }

    .step-label {
        font-size: 10px;
        line-height: 1.2;
        max-width: 52px;
        word-break: normal;
    }

    /* Bottoni navigazione wizard su mobile: grandi, centrati e facili da premere */
    .wizard-step-section .d-flex.justify-content-between {
        gap: 10px;
    }

    .wizard-step-section .d-flex.justify-content-between .btn {
        flex: 1 1 50%;
        justify-content: center;
        padding: 10px 14px !important;
        font-size: 0.92rem;
    }

    #btnNext1 {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    #btnSubmitAll {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   COMPONENTE TELAIO VIN SCOLPITO IN METALLO (AC-082)
   ========================================================================== */
.ac-vin-chassis-plate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #f2ece1 0%, #e0d5c3 30%, #cdc1ad 70%, #b8ab96 100%);
    border: 1px solid #b3a591;
    border-top: 1.5px solid #faf7f2;
    border-bottom: 2px solid #8c7e6a;
    border-radius: 6px;
    padding: 6px 14px;
    box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 3px rgba(80, 68, 52, 0.35), 0 3px 8px rgba(0, 0, 0, 0.12);
    max-width: 100%;
    position: relative;
    user-select: all;
    overflow: hidden;
}

.ac-vin-chassis-plate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, transparent 100%);
    pointer-events: none;
}

.ac-vin-stamp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #7c6f5d;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 1px 2px rgba(60, 50, 40, 0.5);
    color: #4a4033;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ac-vin-text {
    font-family: 'Space Mono', 'Consolas', 'Courier New', monospace;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 2.2px;
    color: #4a4033;
    text-transform: uppercase;
    text-shadow: 0 1.5px 0 rgba(255, 255, 255, 0.85), 0 -1.5px 1px rgba(60, 50, 40, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

