/* Modulo contatti + pagina di ringraziamento – Goinweb 2026 */

/* ---------- Modulo nella sezione #contatti (sfondo scuro) ---------- */
.tv-form-wrap {
    max-width: 860px;
    margin: 0 auto 56px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius, 16px);
    color: #fff;
}
.tv-form-wrap h3 {
    font-size: 27px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0 0 8px;
}
.tv-form-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 28px;
}
.tv-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.tv-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.tv-field--full { grid-column: 1 / -1; }
.tv-field label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}
.tv-field input,
.tv-field textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm, 8px);
    padding: 13px 16px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.tv-field textarea { resize: vertical; min-height: 130px; }
.tv-field input::placeholder,
.tv-field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.tv-field input:focus,
.tv-field textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent, #0dcaf0);
    box-shadow: 0 0 0 3px var(--accent-glow, rgba(13, 202, 240, 0.25));
}
.tv-field input.tv-touched:invalid,
.tv-field textarea.tv-touched:invalid { border-color: #ff8a8a; }

.tv-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px; height: 1px; overflow: hidden;
}

.tv-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}
.tv-privacy input {
    flex: 0 0 auto;
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--accent, #0dcaf0);
}
.tv-privacy a { color: var(--accent, #0dcaf0); text-decoration: underline; }

.tv-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 28px;
}
.tv-submit {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.tv-submit[disabled] { opacity: .65; cursor: wait; }
.tv-required-note { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 700px) {
    .tv-form-wrap { padding: 28px 20px; margin-bottom: 40px; }
    .tv-form-grid { grid-template-columns: 1fr; gap: 16px; }
    .tv-submit { width: 100%; justify-content: center; }
}

/* ---------- Pagina di ringraziamento / errore ---------- */
.tv-esito-body { background: var(--bg-light, #f0f7fa); }
.tv-esito {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 16px 80px;
}
.tv-esito-card {
    max-width: 640px;
    width: 100%;
    background: #fff;
    border-radius: var(--radius-lg, 24px);
    box-shadow: var(--shadow, 0 8px 32px rgba(3, 65, 93, 0.08));
    padding: 56px 40px;
    text-align: center;
}
.tv-esito-icona {
    width: 76px; height: 76px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent, #0dcaf0), var(--primary-light, #0a6b8a));
    box-shadow: var(--shadow-glow, 0 0 40px rgba(13, 202, 240, 0.15));
}
.tv-esito-icona--errore { background: #d9534f; }
.tv-esito h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: var(--primary, #03415d);
    margin: 0 0 16px;
    line-height: 1.15;
}
.tv-esito p {
    color: var(--text-light, #5a6a7a);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 16px;
}
.tv-esito .btn { margin-top: 12px; }
.tv-esito .btn-primary {
    background: var(--primary, #03415d);
    color: #fff;
}
.tv-esito-alt { font-size: 15px !important; margin-top: 24px !important; }
.tv-esito-alt a { color: var(--primary-light, #0a6b8a); font-weight: 600; }
@media (max-width: 600px) {
    .tv-esito-card { padding: 40px 22px; }
}
