/* FS Form Builder - Frontend Styles */

.fs-form-wrapper {
    max-width: 100%;
    margin: 20px 0;
}

.fs-form-description {
    margin-bottom: 20px;
    color: #666;
}

.fs-form {
    width: 100%;
}

.fs-form-field {
    margin-bottom: 20px;
}

.fs-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.fs-required {
    color: #dc3232;
    margin-left: 2px;
}

.fs-form-input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
}

.fs-form-input:focus {
    border-color: #007cba;
    outline: 0;
    box-shadow: 0 0 0 1px #007cba;
}

.fs-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.fs-form-input[type="date"] {
    width: auto;
    min-width: 200px;
}

.fs-form-checkbox {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.fs-form-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.fs-form-checkbox span {
    vertical-align: middle;
}

.fs-form-submit {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
    background-color: #007cba;
    border: 1px solid #007cba;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.fs-form-submit:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.fs-form-submit:focus {
    outline: 0;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba;
}

.fs-form-submit:disabled,
.fs-form-submit[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #999;
    border-color: #999;
}

/* Success message */
.fs-form-success {
    padding: 15px 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Error messages */
.fs-form-errors {
    padding: 15px 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-bottom: 20px;
}

.fs-form-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fs-form-error {
    margin-bottom: 5px;
}

.fs-form-error:last-child {
    margin-bottom: 0;
}

/* Select field */
.fs-form-input[type="select"],
select.fs-form-input {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

/* Checkbox Singolo */
.fs-form-checkbox-singolo {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
}

.fs-form-link {
    margin: 0 0 8px 0;
}

.fs-form-link a {
    color: #007cba;
    text-decoration: underline;
}

.fs-form-link a:hover {
    color: #005a87;
}

.fs-form-link-description {
    margin: 0 0 8px 0;
    font-style: italic;
    color: #555;
}

.fs-form-checkbox-singolo-box {
    margin-bottom: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.fs-form-singolo-link {
    color: #007cba;
    text-decoration: underline;
    margin-left: 2px;
    font-weight: 600;
}

.fs-form-singolo-link:hover {
    color: #005a87;
}

/* Antispam indicator */
.fs-antispam-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.fs-antispam-badge.active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Verified delivery and server-priced license checkout */
.etv-funnel-download,
.etv-funnel-purchase {
    --etv-brand: #155eef;
    max-width: 1120px;
    margin: 36px auto;
    color: #172033;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.etv-download-head,
.etv-funnel-purchase > header {
    padding: clamp(30px, 6vw, 68px);
    overflow: hidden;
    border-radius: 28px;
    background: radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--etv-brand) 68%, #7c3aed) 0, transparent 34%), linear-gradient(135deg, #101828 0%, #1d2939 100%);
    color: #fff;
    box-shadow: 0 28px 70px rgba(16, 24, 40, .18);
}

.etv-download-logo { display: block; max-width: 220px; max-height: 70px; width: auto; height: auto; margin: 0 0 34px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.12)); }
.etv-download-kicker { display: inline-block; margin-bottom: 12px; color: #c7d7fe; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.etv-download-head h1, .etv-funnel-purchase h1 { max-width: 760px; margin: 0 0 14px; color: #fff; font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -.035em; }
.etv-download-head p, .etv-funnel-purchase > header p { max-width: 700px; margin: 0; color: #d0d5dd; font-size: 18px; line-height: 1.65; }
.etv-download-card { margin: -28px 28px 34px; padding: 26px; position: relative; border: 1px solid #e4e7ec; border-radius: 18px; background: #fff; box-shadow: 0 18px 45px rgba(16,24,40,.10); }
.etv-download-card h2 { margin: 0 0 16px; font-size: 22px; }
.etv-funnel-action { margin: 10px 0; }
.etv-funnel-action button,
.etv-buy-now { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 11px; background: var(--etv-brand); color: #fff !important; font-size: 15px; font-weight: 800; text-decoration: none !important; cursor: pointer; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; box-shadow: 0 10px 24px color-mix(in srgb, var(--etv-brand) 28%, transparent); }
.etv-funnel-action button:hover, .etv-buy-now:hover { transform: translateY(-1px); filter: brightness(.92); }
.etv-one-shot, .etv-offer-expired { margin: 34px 0 0; padding: clamp(28px, 5vw, 54px); border-radius: 24px; }
.etv-one-shot { border: 1px solid #fedf89; background: linear-gradient(135deg,#fffaeb,#fff 55%,#fef3c7); box-shadow: 0 22px 60px rgba(247,144,9,.13); }
.etv-offer-25 { border-color: #d6bbfb; background: linear-gradient(135deg,#f9f5ff,#fff 55%,#f4ebff); box-shadow: 0 22px 60px rgba(105,65,198,.12); }
.etv-one-shot h2, .etv-offer-expired h2 { margin: 10px 0 8px; font-size: clamp(27px,4vw,42px); line-height: 1.1; letter-spacing: -.025em; }
.etv-one-shot p, .etv-offer-expired p { max-width: 760px; color: #475467; font-size: 17px; line-height: 1.65; }
.etv-offer-badge { display: inline-block; padding: 7px 11px; border-radius: 999px; background: #f79009; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.etv-offer-25 .etv-offer-badge { background: #6941c6; }
.etv-offer-expired { border: 1px solid #e4e7ec; background: #f8fafc; }
.etv-funnel-purchase > .etv-plan-grid, .etv-plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 30px; }
.etv-plan-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid #e4e7ec; border-radius: 20px; background: #fff; box-shadow: 0 14px 36px rgba(16,24,40,.08); }
.etv-plan-card h3 { margin: 0 0 12px; font-size: 24px; }
.etv-plan-price { margin: 0 0 20px; font-size: 36px; font-weight: 850; letter-spacing: -.035em; }
.etv-plan-full { margin-left: 8px; color: #98a2b3; font-size: 15px; text-decoration: line-through; }
.etv-plan-card .etv-funnel-action { margin-top: auto; }
.etv-plan-card .etv-funnel-action button { width: 100%; }

@media screen and (max-width: 760px) {
    .etv-funnel-download, .etv-funnel-purchase { margin: 20px 12px; }
    .etv-download-head, .etv-funnel-purchase > header { border-radius: 20px; }
    .etv-download-card { margin: -18px 14px 24px; }
    .etv-funnel-purchase > .etv-plan-grid, .etv-plan-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media screen and (max-width: 600px) {
    .fs-form-input {
        font-size: 16px; /* Prevent zoom on mobile */
    }

    .fs-form-submit {
        width: 100%;
        text-align: center;
    }
}
/* Theme typography is inherited by the email-confirmed delivery widgets. */
.etv-funnel-download, .etv-thank-you, .etv-funnel-action button { font-family: inherit; }
.etv-funnel-action { margin: 1rem 0; }
.etv-funnel-action button { padding: .8rem 1.2rem; cursor: pointer; border-radius: .4rem; }
.etv-one-shot { padding: 1.5rem; border: 1px solid currentColor; border-radius: .6rem; margin-top: 2rem; }
.etv-offer-expired { color: #a12c24; }
