﻿.tp-lead-form {
    --tp-lead-primary: #0f4c81;
    --tp-lead-primary-dark: #0b3b64;
    --tp-lead-text: #1f2937;
    --tp-lead-muted: #5b6472;
    --tp-lead-border: #d6dee8;
    --tp-lead-surface: #ffffff;
    --tp-lead-soft: #f4f7fb;
    max-width: 560px;
    margin: 0 auto;
    color: var(--tp-lead-text);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

    .tp-lead-form .tp-lead-form-header {
        text-align: center;
        margin-bottom: 16px;
    }


    .tp-lead-form .tp-lead-title {
        margin: 0;
        font-size: 1.9rem;
        font-weight: 700;
        color: var(--tp-lead-primary-dark);
    }

tp-lead-form .tp-lead-subtitle {
    margin: 6px 0 0;
    font-size: 1rem;
    color: var(--tp-lead-muted);
}

.tp-lead-form .tp-lead-trustpilot {
    text-align: center;
    margin: -4px 0 14px;
    font-size: .9rem;
}

.tp-lead-form .tp-lead-trustpilot-link {
    color: var(--tp-lead-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .tp-lead-form .tp-lead-trustpilot-link:hover {
        color: var(--tp-lead-primary-dark);
    }

.tp-lead-form .tp-lead-card {
    background: var(--tp-lead-surface);
    border: 1px solid #e5ebf2;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 35, 62, 0.12);
    padding: 20px;
}
.tp-lead-form .tp-lead-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: .86rem;
    color: var(--tp-lead-primary-dark);
}

    .tp-lead-form .tp-lead-trust span {
        background: var(--tp-lead-soft);
        border: 1px solid #e5ebf2;
        border-radius: 999px;
        padding: 6px 10px;
    }
.tp-lead-form .tp-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 18px;
    padding: 4px 0 10px;
    max-width: 320px;
}

.tp-lead-form .tp-step {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-lead-form .tp-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 600;
    border: 1.5px solid #1d5aa6;
    background: #fff;
    color: #1d5aa6;
    box-sizing: border-box;
}

.tp-lead-form .tp-step-line {
    width: 34px;
    height: 1px;
    background: #b8c4d6;
    margin: 0 8px;
    flex: 0 0 auto;
}

.tp-lead-form .tp-step-active .tp-step-circle,
.tp-lead-form .tp-step-done .tp-step-circle {
    background: #1d5aa6;
    color: #fff;
    border-color: #1d5aa6;
}

.tp-lead-form .tp-step-line-done {
    background: #1d5aa6;
}

.tp-lead-form .tp-lead-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tp-lead-form .tp-lead-step-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--tp-lead-primary-dark);
    display:none;
}

.tp-lead-form .tp-lead-field {
    width: 100%;
    margin: 0;
}

.tp-lead-form .tp-lead-label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .93rem;
    color: var(--tp-lead-text);
}

.tp-lead-form .tp-lead-input,
.tp-lead-form .tp-lead-select {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--tp-lead-border);
    background: #fff;
    padding: 11px 14px;
    font-size: .98rem;
    color: var(--tp-lead-text);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

    .tp-lead-form .tp-lead-input:focus,
    .tp-lead-form .tp-lead-select:focus,
    .tp-lead-form .tp-lead-button:focus,
    .tp-lead-form .tp-lead-helper-link:focus,
    .tp-lead-form .tp-lead-trustpilot-link:focus {
        outline: 3px solid #93c5fd;
        outline-offset: 2px;
        border-color: #4d8fd1;
    }

.tp-lead-form .tp-lead-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.tp-lead-form .tp-lead-actions-end {
    justify-content: flex-end;
}

.tp-lead-form .tp-lead-actions-between {
    justify-content: space-between;
}

.tp-lead-form .tp-lead-actions-back {
    justify-content: flex-start;
    margin-bottom: 12px;
}

.tp-lead-form .tp-lead-submit-row {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.tp-lead-form .tp-lead-submit-button {
    width: 80%;
    min-height: 50px;
}

.tp-lead-form .tp-lead-button {
    min-height: 48px;
    min-width: 150px;
    border: 1px solid var(--tp-lead-primary);
    border-radius: 12px;
    background: var(--tp-lead-primary);
    color: #fff;
    padding: 0 18px;
    font-size: .97rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

    .tp-lead-form .tp-lead-button:hover {
        background: var(--tp-lead-primary-dark);
        border-color: var(--tp-lead-primary-dark);
    }

tp-lead-form .tp-lead-button-secondary {
    background: #fff;
    color: var(--tp-lead-primary-dark);
    border-color: #b6c8dc;
}

.tp-lead-form .tp-lead-button-secondary:hover {
    background: #f5f9ff;
}

.tp-lead-form .tp-lead-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0;
}

.tp-lead-form .tp-lead-checkbox {
    margin-top: 2px;
}

.tp-lead-form .tp-lead-privacy-label {
    margin: 0;
    font-size: .88rem;
    line-height: 1.35;
    color: #374151;
    font-weight: 500;
}

.tp-lead-form .tp-lead-helper-wrap {
    margin-top: 12px;
}

.tp-lead-form .tp-lead-helper {
    border-top: 1px solid #e9eef5;
    padding-top: 10px;
}

.tp-lead-form .tp-lead-helper-text {
    margin: 0 0 8px;
    font-size: .85rem;
    color: #566174;
}

.tp-lead-form .tp-lead-helper-link {
    color: var(--tp-lead-primary);
    font-size: .88rem;
    font-weight: 600;
}

._col-flex-form {
    /* margin-top: 20px; */
    box-sizing: border-box;
    padding: 10px;
    flex-grow: 1;
    max-width: 100%;
    width: 45%;
    /* border: 1px solid var(--colore1-sito); */
    box-shadow: 0 12px 32px rgba(15,35,62,0.12);
    border-radius: 10px;
    margin: 50px 0 !important;
    height: 100%;
    background: var(--tp-lead-form-container-bg, transparent);
}

@media (max-width: 580px) {
    .tp-lead-form {
        max-width: 520px;
        margin-top:10px !important;
    }

        .tp-lead-form .tp-lead-card {
            padding: 16px;
            border-radius: 14px;
        }

        .tp-lead-form .tp-stepper {
            max-width: 300px;
        }
}

@media (max-width: 400px) {
    .tp-lead-form .tp-lead-title {
        font-size: 1.6rem;
    }

    .tp-lead-form .tp-lead-subtitle {
        font-size: .92rem;
    }

    .tp-lead-form .tp-lead-card {
        padding: 12px;
    }

    .tp-lead-form .tp-stepper {
        max-width: 260px;
        margin-bottom: 14px;
    }

    .tp-lead-form .tp-step-circle {
        width: 30px;
        height: 30px;
        font-size: .9rem;
    }

    .tp-lead-form .tp-step-line {
        width: 24px;
        margin: 0 6px;
    }

    .tp-lead-form .tp-lead-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .tp-lead-form .tp-lead-actions-between {
        gap: 10px;
    }

        .tp-lead-form .tp-lead-actions-between .tp-lead-button {
            flex: 1 1 auto;
        }

    .tp-lead-form .tp-lead-submit-button {
        width: 100%;
    }
}

.tp-lead-form .tp-lead-field {
    position: relative;
}

.tp-lead-form .tp-lead-field-valid .tp-lead-input,
.tp-lead-form .tp-lead-field-valid .tp-lead-select {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.tp-lead-form .tp-lead-field-invalid .tp-lead-input,
.tp-lead-form .tp-lead-field-invalid .tp-lead-select {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.tp-lead-form .tp-lead-feedback {
    display: block;
    min-height: 16px;
    margin-top: 4px;
    font-size: .78rem;
}

.tp-lead-form .tp-lead-feedback-success {
    color: #15803d;
}

.tp-lead-form .tp-lead-feedback-error {
    color: #b91c1c;
}

.tp-lead-form .tp-lead-check {
    position: absolute;
    right: 12px;
    top: 39px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}
.tp-lead-form .tp-lead-field-valid::after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 36px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
}
.tp-lead-form .tp-lead-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.tp-lead-form .tp-lead-duplicate-modal.mod-none {
     display: none;
    
}
.tp-lead-form .tp-lead-duplicate-modal:not(.mod-none) {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(15, 23, 42, 0.72);
    box-sizing: border-box;
    opacity: 1 !important;
}

.tp-lead-form .tp-lead-duplicate-card {
    width: min(520px, calc(100% - 20px));
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    padding: 22px;
    color: #1e293b;
    text-align: center;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}
.tp-lead-form .tp-lead-duplicate-modal:not(.mod-none) .tp-lead-duplicate-card,
.tp-lead-form .tp-lead-duplicate-modal:not(.mod-none) .modale-item {
    background: #ffffff !important;
    opacity: 1 !important;
}
    .tp-lead-form .tp-lead-duplicate-card h3,
    .tp-lead-form .tp-lead-duplicate-card h4 {
        margin: 10px 0;
        line-height: 1.35;
    }

    .tp-lead-form .tp-lead-duplicate-card .bottone-email {
        min-height: 44px;
        border-radius: 999px;
        padding: 10px 22px;
        margin-top: 14px;
    }

@media (max-width: 420px) {
    .tp-lead-form .tp-lead-duplicate-modal:not(.mod-none) {
        align-items: flex-start;
        padding-top: 18px;
    }

    .tp-lead-form .tp-lead-duplicate-card {
        width: calc(100% - 20px);
        margin: 10px auto;
        padding: 16px;
        border-radius: 14px;
        border-width: 1px;
    }

        .tp-lead-form .tp-lead-duplicate-card .bottone-email {
            width: 100%;
        }
}
.tp-lead-form .tp-lead-button-loading,
.tp-lead-form .tp-lead-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}
