@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;800&display=swap");

/*
 * Shared iTech public form theme.
 * Loaded by all Form Builder public/embedded forms.
 */
:root {
    --itc-form-navy: #071c44;
    --itc-form-text: #53647a;
    --itc-form-blue: #1769e0;
    --itc-form-bright: #0d8bff;
    --itc-form-cyan: #08d8e8;
    --itc-form-soft: #eff7ff;
    --itc-form-pale: #edfcfe;
    --itc-form-border: #dce7f2;
    --itc-form-shadow: 0 18px 45px rgba(7, 28, 68, .10);
}

html {
    min-height: 100%;
    margin: 0;
}

body.web-to-lead {
    min-height: 100%;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(237, 252, 254, .82), rgba(255, 255, 255, .94) 42%, rgba(239, 247, 255, .88)),
        linear-gradient(rgba(23, 105, 224, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 105, 224, .055) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    color: var(--itc-form-navy);
    font-family: "Roboto", Arial, sans-serif !important;
    font-size: 17px;
    line-height: 1.65;
}

body.web-to-lead *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: "Roboto", Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

body.web-to-lead .fa,
body.web-to-lead .fas,
body.web-to-lead .fa-solid {
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

body.web-to-lead .far,
body.web-to-lead .fa-regular {
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 400 !important;
}

body.web-to-lead .fab,
body.web-to-lead .fa-brands {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

body.web-to-lead .container-fluid {
    max-width: 920px;
    padding: 40px 20px;
}

body.web-to-lead.embed .container-fluid {
    max-width: 100%;
    padding: 0;
}

body.web-to-lead.embed {
    background: none !important;
    background-color: transparent !important;
}

html:has(body.web-to-lead.embed),
body.web-to-lead.embed {
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html:has(body.web-to-lead.embed),
body.web-to-lead.embed .itc-public-form-only {
    background: none !important;
    background-color: transparent !important;
}

body.web-to-lead.embed .itc-public-form-only {
    width: 100%;
    margin: 0;
    padding: 0;
}

body.web-to-lead .row {
    margin-left: -10px;
    margin-right: -10px;
}

body.web-to-lead [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
}

body.web-to-lead.styled > .container-fluid > .row > .itc-public-form-frame,
body.web-to-lead.embed > .container-fluid > .row > .itc-public-form-frame {
    float: none !important;
    width: 100% !important;
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.web-to-lead.embed > .container-fluid > .row > .itc-public-form-frame {
    max-width: 100%;
}

body.web-to-lead .form-col {
    width: 100%;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--itc-form-border);
    border-radius: 18px;
    box-shadow: var(--itc-form-shadow);
    padding: 28px;
}

body.web-to-lead.embed .form-col {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

body.web-to-lead .form-wrapper.styled {
    margin-bottom: 10px;
}

body.web-to-lead .logo img {
    max-height: 54px;
    width: auto;
    margin: 0 auto 14px;
}

body.web-to-lead h1,
body.web-to-lead h2,
body.web-to-lead h3,
body.web-to-lead h4,
body.web-to-lead h5,
body.web-to-lead h6 {
    margin: 0 0 16px;
    color: var(--itc-form-navy);
    font-weight: 800 !important;
    line-height: 1.16 !important;
}

body.web-to-lead h1 { font-size: 38px !important; }
body.web-to-lead h2 { font-size: 32px !important; }
body.web-to-lead h3 { font-size: 26px !important; }
body.web-to-lead h4 { font-size: 22px !important; }

body.web-to-lead.embed h1,
body.web-to-lead.embed h2,
body.web-to-lead.embed h3,
body.web-to-lead.embed h4,
body.web-to-lead.embed h5,
body.web-to-lead.embed h6 {
    font-family: "Roboto", Arial, sans-serif !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
}

body.web-to-lead p,
body.web-to-lead li,
body.web-to-lead .form-builder-html-block {
    color: var(--itc-form-text);
    font-size: 17px;
    line-height: 1.65;
}

body.web-to-lead .form-group {
    margin-bottom: 18px;
}

body.web-to-lead .control-label,
body.web-to-lead .stripe-field-label {
    display: block;
    margin-bottom: 8px;
    color: var(--itc-form-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

body.web-to-lead .text-danger {
    color: #ef4444 !important;
}

body.web-to-lead .form-control,
body.web-to-lead input[type="text"],
body.web-to-lead input[type="email"],
body.web-to-lead input[type="number"],
body.web-to-lead input[type="tel"],
body.web-to-lead input[type="url"],
body.web-to-lead input[type="password"],
body.web-to-lead input[type="date"],
body.web-to-lead select,
body.web-to-lead textarea,
body.web-to-lead .stripe-text-input,
body.web-to-lead .StripeElement,
body.web-to-lead .stripe-card-element {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--itc-form-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--itc-form-navy) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.web-to-lead .form-control {
    overflow: hidden;
    text-overflow: ellipsis;
}

body.web-to-lead .form-control,
body.web-to-lead input[type="text"],
body.web-to-lead input[type="email"],
body.web-to-lead input[type="number"],
body.web-to-lead input[type="tel"],
body.web-to-lead input[type="url"],
body.web-to-lead input[type="password"],
body.web-to-lead input[type="date"],
body.web-to-lead select {
    height: 48px;
    padding: 11px 14px;
}

body.web-to-lead textarea,
body.web-to-lead textarea.form-control {
    min-height: 120px;
    height: auto;
    padding: 12px 14px;
    resize: vertical;
}

body.web-to-lead .form-control:focus,
body.web-to-lead input:focus,
body.web-to-lead select:focus,
body.web-to-lead textarea:focus,
body.web-to-lead .StripeElement--focus,
body.web-to-lead .stripe-card-element:focus {
    border-color: var(--itc-form-blue) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, .10) !important;
}

body.web-to-lead ::placeholder {
    color: #8fa0b6 !important;
    opacity: 1;
}

/* The app's global assets/builds/tailwind.css ships a legacy Bootstrap
   "awesome-checkbox" skin (.checkbox label:before/:after) that draws its
   own box on every label after a checkbox/radio, site-wide. It's what was
   rendering underneath/behind .itc-check-box — neutralize it here rather
   than touching the shared compiled bundle. */
body.web-to-lead .checkbox label::before,
body.web-to-lead .checkbox label::after,
body.web-to-lead .radio label::before,
body.web-to-lead .radio label::after {
    content: none !important;
    display: none !important;
}

body.web-to-lead .checkbox,
body.web-to-lead .radio {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0;
    padding: 0;
}

/* Native input is visually hidden with the standard "clip" technique
   (position/clip/overflow) rather than opacity — this cannot be partially
   painted by OS/browser accessibility rendering the way opacity-hiding can.
   The actual visible box is the sibling .itc-check-box/.itc-radio-box span,
   a real DOM element so nothing depends on generated-content-on-<input>
   support. */
body.web-to-lead .checkbox input[type="checkbox"],
body.web-to-lead .radio input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    /* Windows "forced colors" / high-contrast mode otherwise still paints
       the native checkbox glyph on top of our custom box regardless of
       the clip hiding above — this opts the element out of that override. */
    forced-color-adjust: none;
    -moz-forced-color-adjust: none;
    -ms-high-contrast-adjust: none;
}

body.web-to-lead .itc-check-box,
body.web-to-lead .itc-radio-box {
    position: relative;
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 1px;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid #a9bfdb;
    box-shadow: 0 1px 3px rgba(7, 28, 68, .10);
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body.web-to-lead .itc-check-box {
    border-radius: 6px;
}

body.web-to-lead .itc-radio-box {
    border-radius: 50%;
}

/* Checkmark / dot */
body.web-to-lead .itc-check-box::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .14s ease;
}

body.web-to-lead .itc-radio-box::after {
    content: "";
    position: absolute;
    top: 3.5px;
    left: 3.5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    transition: transform .14s ease;
}

body.web-to-lead .checkbox:hover .itc-check-box,
body.web-to-lead .radio:hover .itc-radio-box {
    border-color: var(--itc-form-blue);
}

body.web-to-lead .checkbox input[type="checkbox"]:checked + .itc-check-box,
body.web-to-lead .radio input[type="radio"]:checked + .itc-radio-box {
    background: linear-gradient(135deg, var(--itc-form-blue), var(--itc-form-bright));
    border-color: var(--itc-form-blue);
}

body.web-to-lead .radio input[type="radio"]:checked + .itc-radio-box::after {
    transform: scale(1);
}

body.web-to-lead .checkbox input[type="checkbox"]:checked + .itc-check-box::after {
    transform: rotate(45deg) scale(1);
}

body.web-to-lead .checkbox input[type="checkbox"]:focus-visible + .itc-check-box,
body.web-to-lead .radio input[type="radio"]:focus-visible + .itc-radio-box {
    border-color: var(--itc-form-blue);
    box-shadow: 0 0 0 4px rgba(23, 105, 224, .16);
}

body.web-to-lead .has-error .itc-check-box,
body.web-to-lead .has-error .itc-radio-box {
    border-color: #ef4444;
}

body.web-to-lead .checkbox label,
body.web-to-lead .radio label {
    flex: 1 1 auto;
    margin: 0;
    padding-top: 1px;
    color: var(--itc-form-text);
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

body.web-to-lead .checkbox label a,
body.web-to-lead .radio label a {
    color: var(--itc-form-blue);
    font-weight: 700;
    text-decoration: none;
}

body.web-to-lead .checkbox label a:hover,
body.web-to-lead .radio label a:hover {
    text-decoration: underline;
}

body.web-to-lead .checkbox-inline,
body.web-to-lead .radio-inline {
    display: inline-block;
    margin: 6px 18px 6px 0;
}

body.web-to-lead .chk {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

body.web-to-lead .form-group[data-type="terms-checkbox"] > .control-label {
    display: none !important;
}

body.web-to-lead .form-group[data-type="terms-checkbox"] .checkbox {
    margin-top: 8px !important;
    margin-bottom: 20px;
}

body.web-to-lead .form-group[data-name*="sms"],
body.web-to-lead .form-group[data-name*="email_marketing"],
body.web-to-lead .form-group[data-name*="terms"] {
    margin-bottom: 18px;
}

body.web-to-lead .btn,
body.web-to-lead button,
body.web-to-lead input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 48px !important;
    min-width: 140px !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--itc-form-blue), var(--itc-form-bright) 58%, var(--itc-form-cyan)) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: transform .18s ease, opacity .18s ease;
}

body.web-to-lead .btn:hover,
body.web-to-lead button:hover,
body.web-to-lead input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: none !important;
}

body.web-to-lead .btn:focus,
body.web-to-lead button:focus,
body.web-to-lead input[type="submit"]:focus {
    outline: 3px solid rgba(8, 216, 232, .28) !important;
    outline-offset: 3px;
}

body.web-to-lead .btn:disabled,
body.web-to-lead button:disabled {
    cursor: not-allowed;
    opacity: .68;
    transform: none;
}

body.web-to-lead .btn-step-prev {
    background: #fff !important;
    color: var(--itc-form-navy) !important;
    border: 1px solid #bad2f2 !important;
    box-shadow: none !important;
}

body.web-to-lead .submit-btn-wrapper {
    margin-top: 6px;
}

body.web-to-lead .alert {
    border: 1px solid var(--itc-form-border);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.55;
}

body.web-to-lead .alert-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

body.web-to-lead .alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

body.web-to-lead .alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

body.web-to-lead .help-block,
body.web-to-lead .step-error-msg {
    margin-top: 6px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
}

body.web-to-lead .has-error .form-control,
body.web-to-lead .has-error input,
body.web-to-lead .has-error textarea,
body.web-to-lead .has-error select {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .08) !important;
}

body.web-to-lead .itc-phone-field {
    display: flex;
    gap: 8px;
    width: 100%;
}

body.web-to-lead .itc-phone-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 48px;
    border: 1px solid var(--itc-form-border);
    border-radius: 12px;
    background: var(--itc-form-soft);
    color: var(--itc-form-navy);
    font-size: 16px;
    font-weight: 800;
}

body.web-to-lead .stripe-payment-wrapper,
body.web-to-lead .step-form-card {
    border: 1px solid var(--itc-form-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 30px rgba(7, 28, 68, .08);
    padding: 20px;
}

body.web-to-lead .stripe-payment-wrapper {
    margin: 8px 0 22px;
}

body.web-to-lead .stripe-payment-box,
body.web-to-lead .stripe-form-wrapper {
    border: 1px solid var(--itc-form-border);
    border-radius: 14px;
    background: #fff;
    padding: 16px;
}

body.web-to-lead .payment-header-bar,
body.web-to-lead .stripe-secure-badge,
body.web-to-lead .stripe-checkout-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--itc-form-navy);
    font-weight: 800;
}

body.web-to-lead .payment-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--itc-form-soft);
    color: var(--itc-form-blue);
}

body.web-to-lead .payment-details-grid {
    margin-top: 14px;
}

body.web-to-lead .payment-line-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    color: var(--itc-form-text);
    font-size: 15px;
}

body.web-to-lead .payment-separator {
    height: 1px;
    margin: 8px 0;
    background: var(--itc-form-border);
}

body.web-to-lead .payment-total-line {
    color: var(--itc-form-navy);
    font-weight: 800;
}

body.web-to-lead .stripe-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.web-to-lead .stripe-field-group,
body.web-to-lead .stripe-field-half {
    margin-bottom: 14px;
}

body.web-to-lead .stripe-secure-badge,
body.web-to-lead .stripe-checkout-info {
    margin-top: 14px;
    color: #0f766e;
    font-size: 13px;
}

body.web-to-lead .step-progress::before {
    background: var(--itc-form-border);
}

body.web-to-lead .step-progress-fill,
body.web-to-lead .step-indicator.completed .step-circle {
    background: linear-gradient(135deg, var(--itc-form-blue), var(--itc-form-cyan));
}

body.web-to-lead .step-circle {
    border-color: var(--itc-form-border);
    color: var(--itc-form-text);
}

body.web-to-lead .step-indicator.active .step-circle {
    border-color: var(--itc-form-blue);
    color: var(--itc-form-blue);
    box-shadow: 0 0 0 5px rgba(23, 105, 224, .12);
}

body.web-to-lead .step-label {
    color: var(--itc-form-text);
    font-weight: 700;
}

body.web-to-lead .step-title {
    border-bottom-color: var(--itc-form-border);
}

body.web-to-lead .g-recaptcha {
    transform-origin: left top;
    max-width: 100%;
}

@media (max-width: 767px) {
    html,
    body.web-to-lead {
        font-size: 16px;
    }

    body.web-to-lead .container-fluid {
        padding: 18px 12px;
    }

    body.web-to-lead .form-col,
    body.web-to-lead.embed .form-col {
        padding: 18px;
        border-radius: 14px;
    }

    body.web-to-lead h1 { font-size: 32px !important; }
    body.web-to-lead h2 { font-size: 28px !important; }
    body.web-to-lead h3 { font-size: 23px !important; }

    body.web-to-lead p,
    body.web-to-lead li,
    body.web-to-lead .form-builder-html-block {
        font-size: 16px;
    }

    body.web-to-lead .stripe-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.web-to-lead .step-progress {
        overflow-x: auto;
        gap: 12px;
        padding: 0 4px 8px;
    }

    body.web-to-lead .step-indicator {
        min-width: 74px;
    }

    body.web-to-lead .step-navigation {
        flex-direction: column;
    }

    body.web-to-lead .step-navigation .btn,
    body.web-to-lead .submit-btn-wrapper .btn {
        width: 100%;
    }

    body.web-to-lead .checkbox label,
    body.web-to-lead .radio label {
        font-size: 15px;
        line-height: 1.5;
    }
}
