.tq-wrap, .tq-wrap * { box-sizing: border-box; }
.tq-wrap {
    --tq-font-family: inherit;
    --tq-orange-1: #ffb33d;
    --tq-orange-2: #ff9f1c;
    --tq-blue: #5978f6;
    position: relative;
    width: 100%;
    min-height: 32vw;
    margin: 0 auto;
    padding: 2.4vw 3.7vw 3.2vw;
    background: #fff;
    border-radius: 1.35vw;
    color: #2b2b2b;
    font-family: var(--tq-font-family), Inter, Arial, sans-serif;
    overflow: hidden;
}
.tq-progress-head { margin-bottom: 1.85vw; }
.tq-step-label { display: block; margin-bottom: .42vw; color: #4d4d4d; font-size: .82vw; line-height: 1.2; }
.tq-progress { height: .52vw; min-height: 8px; width: 100%; background: #f3f2e9; border-radius: 99px; overflow: hidden; }
.tq-progress-bar {
    height: 100%;
    min-width: 2.2vw;
    background: repeating-linear-gradient(-45deg, #496cf3 0 .42vw, #5d7bfb .42vw .84vw);
    border-radius: 99px;
    transition: width .28s ease;
    text-align: right;
    color: #fff;
    font-size: .58vw;
    line-height: .52vw;
    padding-right: .42vw;
}
.tq-title {
    margin: 0 0 2.1vw;
    font-size: 1.55vw;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #282828;
}
.tq-step { display: none; }
.tq-step.is-active { display: block; animation: tqFadeIn .28s ease both; }
.tq-step.is-leaving { display: block; animation: tqFadeOut .18s ease both; }
@keyframes tqFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tqFadeOut { from { opacity: 1; } to { opacity: 0; } }

.tq-logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25vw; max-width: 45.8vw; }
.tq-logo-option { display: grid; justify-items: center; cursor: pointer; }
.tq-logo-option input { position: absolute; opacity: 0; pointer-events: none; }
.tq-logo-card {
    display: block;
    width: 100%;
    height: 8.95vw;
    border: .14vw solid #e9e9e9;
    border-radius: .94vw;
    background: #f7f7f7;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    padding: 0 !important;
}
.tq-logo-card img { width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover !important; display: block; border-radius: .8vw; }
.tq-logo-option input:checked + .tq-logo-card { border-color: var(--tq-blue); background: #fff; box-shadow: 0 0 0 .05vw var(--tq-blue) inset; }
.tq-dot, .tq-choice-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.4vw;
    height: 2.4vw;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: #efefef;
    color: #fff;
    transition: background .2s ease, box-shadow .2s ease;
}
.tq-dot { margin-top: -1.25vw; position: relative; }
.tq-dot::after, .tq-choice-dot::after { content: "✓"; font-weight: 800; font-size: .84vw; opacity: 0; }
.tq-logo-option input:checked ~ .tq-dot, .tq-choice input:checked + .tq-choice-dot { background: linear-gradient(180deg, var(--tq-orange-1) 0%, var(--tq-orange-2) 100%); box-shadow: 0 .42vw .94vw rgba(255, 159, 28, .28); }
.tq-logo-option input:checked ~ .tq-dot::after, .tq-choice input:checked + .tq-choice-dot::after { opacity: 1; }
.tq-caption { margin-top: .72vw; font-size: 1.05vw; line-height: 1.2; font-weight: 650; color: #2d2d2d; text-align: center; }

.tq-choice-grid { display: grid; gap: 1.15vw; max-width: 51vw; }
.tq-choice-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tq-choice {
    display: flex;
    align-items: center;
    min-height: 4.05vw;
    padding: .95vw 1.35vw;
    border: .05vw solid #ececec;
    border-radius: .72vw;
    background: #fff;
    color: #4a4a4a;
    font-size: 1.08vw;
    line-height: 1.25;
    font-weight: 560;
    cursor: pointer;
    box-shadow: 0 .42vw .94vw rgba(17, 24, 39, .035);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.tq-choice:hover { border-color: #dedede; }
.tq-choice:has(input:checked) { border-color: #f3a02c; background: #fffdf9; }
.tq-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tq-choice-dot { margin-right: 1.15vw; }
.tq-extra {
    display: none;
    margin-top: 1vw;
    max-width: 32vw;
    opacity: 0;
}
.tq-extra.is-visible { display: block; animation: tqExtraIn .18s ease both; }
@keyframes tqExtraIn { to { opacity: 1; } }
.tq-input-box { max-width: 37.5vw; }
.tq-input-box input, .tq-extra input, .tq-contact-fields input {
    width: 100%;
    height: 3.65vw;
    min-height: 58px;
    padding: 0 1.65vw;
    border: .05vw solid #e3e3e3;
    border-radius: .72vw;
    background: #fff;
    color: #262626;
    font-size: 1vw;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
}
.tq-input-box input:focus, .tq-extra input:focus, .tq-contact-fields input:focus { border-color: var(--tq-blue); box-shadow: 0 0 0 .22vw rgba(89, 120, 246, .12); }

.tq-contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17vw, 22.4vw); gap: 3.1vw; align-items: start; }
.tq-contact-copy .tq-title { margin-bottom: 1.05vw; }
.tq-subtitle { margin: 0 0 1.45vw; color: #5a5a5a; font-size: 1vw; line-height: 1.55; }
.tq-contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .75vw; color: #3d3d3d; font-size: .94vw; line-height: 1.35; }
.tq-contact-list li { position: relative; padding-left: 1.45vw; }
.tq-contact-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .52vw; height: .52vw; border-radius: 50%; background: linear-gradient(180deg, var(--tq-orange-1) 0%, var(--tq-orange-2) 100%); }
.tq-contact-formbox { padding: 1.25vw; border: .05vw solid #ececec; border-radius: .94vw; background: #fbfbfb; box-shadow: 0 .62vw 1.77vw rgba(17, 24, 39, .04); }
.tq-form-title { margin: 0 0 1vw; font-size: 1.14vw; line-height: 1.25; color: #292929; }
.tq-contact-fields { display: grid; gap: .85vw; }
.tq-contact-field { display: none; }
.tq-contact-field.is-visible { display: block; animation: tqExtraIn .18s ease both; }

.tq-actions { display: flex; align-items: center; justify-content: flex-start; gap: 3.1vw; margin-top: 4.8vw; }
.tq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 6.45vw;
    height: 3.65vw;
    min-height: 58px;
    padding: 0 1.45vw;
    border: 0;
    border-radius: .47vw;
    font-size: 1.08vw;
    font-weight: 800;
    letter-spacing: .13em;
    cursor: pointer;
    transition: box-shadow .18s ease, opacity .18s ease;
    font-family: inherit;
}
.tq-btn--back { background: #efefef !important; color: #2e2e2e !important; box-shadow: 0 .31vw 0 #dedede !important; }
.tq-btn--next, .tq-btn--submit { background: linear-gradient(180deg, var(--tq-orange-1) 0%, var(--tq-orange-2) 100%); color: #fff; box-shadow: 0 .36vw 0 #dc7800; }
.tq-btn[disabled] { opacity: .55; cursor: not-allowed; }
.tq-btn--submit { display: inline-flex; }
.tq-btn[hidden] { display: none !important; }
.tq-error { display: none; margin-top: 1.15vw; padding: .72vw .84vw; border-radius: .62vw; background: #fff0f0; color: #b42318; font-size: .84vw; }
.tq-error.is-visible { display: block; }
.tq-success p { max-width: 32vw; margin: -1vw 0 0; color: #5f5f5f; font-size: 1.04vw; line-height: 1.5; }
.tq-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

@media (max-width: 900px) {
    .tq-wrap {
        width: 100%;
        min-height: auto;
        padding: 6vw 4.5vw 8vw;
        border-radius: 5vw;
    }
    .tq-progress-head { margin-bottom: 6vw; }
    .tq-step-label { margin-bottom: 1.6vw; font-size: 3.4vw; }
    .tq-progress { height: 2.2vw; }
    .tq-progress-bar { min-width: 10vw; font-size: 2.5vw; line-height: 2.2vw; padding-right: 2vw; }
    .tq-title { font-size: 5vw; margin-bottom: 7vw; }
    .tq-logo-grid, .tq-choice-grid--two, .tq-contact-layout { grid-template-columns: 1fr; }
    .tq-logo-grid, .tq-choice-grid, .tq-input-box, .tq-extra, .tq-success p { max-width: none; }
    .tq-logo-grid { gap: 5vw; }
    .tq-logo-card { height: 40vw; border-width: .5vw; border-radius: 4vw; }
    .tq-logo-card img { border-radius: 3.6vw; }
    .tq-dot, .tq-choice-dot { width: 10vw; height: 10vw; min-width: 38px; min-height: 38px; }
    .tq-dot { margin-top: -5vw; }
    .tq-dot::after, .tq-choice-dot::after { font-size: 4vw; }
    .tq-caption { margin-top: 3vw; font-size: 4.2vw; }
    .tq-choice-grid { gap: 4vw; }
    .tq-choice { min-height: 16vw; font-size: 4.2vw; padding: 3.6vw 4vw; border-radius: 3.5vw; }
    .tq-choice-dot { margin-right: 4vw; }
    .tq-extra { margin-top: 4vw; }
    .tq-input-box input, .tq-extra input, .tq-contact-fields input { height: 14vw; min-height: 54px; padding: 0 5vw; border-radius: 3.5vw; font-size: 4vw; }
    .tq-contact-layout { gap: 7vw; }
    .tq-subtitle { margin-bottom: 5vw; font-size: 4vw; }
    .tq-contact-list { gap: 3vw; font-size: 3.8vw; }
    .tq-contact-list li { padding-left: 6vw; }
    .tq-contact-list li::before { width: 2.4vw; height: 2.4vw; }
    .tq-contact-formbox { padding: 4.5vw; border-radius: 4vw; }
    .tq-form-title { margin-bottom: 4vw; font-size: 4.4vw; }
    .tq-contact-fields { gap: 3.5vw; }
    .tq-actions { margin-top: 9vw; gap: 4vw; }
    .tq-btn { min-width: 0; flex: 1; height: 14vw; min-height: 54px; padding: 0 4vw; border-radius: 2.2vw; font-size: 3.9vw; letter-spacing: .08em; }
    .tq-error { margin-top: 4vw; padding: 3.2vw 3.6vw; border-radius: 3vw; font-size: 3.6vw; }
}

/* v1.6 refinements */
.tq-wrap {
    --tq-font-family: 'Open Sans';
    font-family: 'Open Sans', Arial, sans-serif !important;
}
.tq-wrap input,
.tq-wrap button,
.tq-wrap textarea,
.tq-wrap select {
    font-family: 'Open Sans', Arial, sans-serif !important;
}
.tq-input-box input,
.tq-extra input,
.tq-contact-fields input {
    padding-left: 1.9vw;
    padding-right: 1.9vw;
}
.tq-input-box input:hover,
.tq-extra input:hover,
.tq-contact-fields input:hover,
.tq-choice:hover,
.tq-logo-card:hover,
.tq-btn:hover {
    transform: none !important;
}
.tq-processing-step {
    min-height: 18vw;
}
.tq-processing-box {
    display: grid;
    justify-items: center;
    text-align: center;
    max-width: 34vw;
    margin: 1vw auto 0;
    padding: 2.1vw 2vw;
}
.tq-processing-box .tq-title {
    margin-bottom: .72vw;
}
.tq-processing-box p {
    margin: 0 0 1.45vw;
    color: #5a5a5a;
    font-size: .98vw;
    line-height: 1.45;
}
.tq-spinner {
    width: 3.1vw;
    height: 3.1vw;
    min-width: 46px;
    min-height: 46px;
    margin-bottom: 1.15vw;
    border-radius: 50%;
    border: .32vw solid #f0f0f0;
    border-top-color: var(--tq-orange-2);
    animation: tqSpin .8s linear infinite;
}
@keyframes tqSpin { to { transform: rotate(360deg); } }
.tq-processing-progress {
    width: 100%;
    height: .52vw;
    min-height: 8px;
    border-radius: 99px;
    overflow: hidden;
    background: #f3f2e9;
}
.tq-processing-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tq-orange-1), var(--tq-orange-2));
    animation: tqProcessingBar 1.15s ease both;
}
@keyframes tqProcessingBar { to { width: 100%; } }

@media (max-width: 900px) {
    .tq-input-box input,
    .tq-extra input,
    .tq-contact-fields input {
        padding-left: 5.6vw;
        padding-right: 5.6vw;
    }
    .tq-processing-step { min-height: 66vw; }
    .tq-processing-box {
        max-width: none;
        margin-top: 3vw;
        padding: 8vw 2vw;
    }
    .tq-processing-box .tq-title { margin-bottom: 3vw; }
    .tq-processing-box p {
        margin-bottom: 6vw;
        font-size: 4vw;
    }
    .tq-spinner {
        width: 13vw;
        height: 13vw;
        margin-bottom: 5vw;
        border-width: 1.1vw;
    }
    .tq-processing-progress { height: 2.2vw; }
}

/* v1.8 refinements */
.tq-logo-grid--text-only .tq-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1vw !important;
    background: #fff;
}
.tq-logo-grid--text-only .tq-logo-text {
    display: block;
    color: #333;
    font-size: 1.18vw;
    line-height: 1.2;
    font-weight: 750;
    text-align: center;
}
.tq-logo-option--text .tq-dot,
.tq-choice-dot {
    width: 1.68vw;
    height: 1.68vw;
    min-width: 25px;
    min-height: 25px;
}
.tq-logo-option--text .tq-dot { margin-top: -.84vw; }
.tq-logo-option--text .tq-dot::after,
.tq-choice-dot::after { font-size: .62vw; }
.tq-btn {
    min-width: 4.55vw;
    height: 2.55vw;
    min-height: 41px;
    padding-left: 1.05vw;
    padding-right: 1.05vw;
    font-size: .86vw;
    border-radius: .38vw;
}
.tq-contact-list { margin-top: 2.1vw; }

@media (max-width: 900px) {
    .tq-logo-grid--text-only {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4vw;
    }
    .tq-logo-grid--text-only .tq-logo-card {
        height: 26vw;
        padding: 3vw !important;
    }
    .tq-logo-grid--text-only .tq-logo-text {
        font-size: 4.1vw;
    }
    .tq-logo-option--text .tq-dot,
    .tq-choice-dot {
        width: 7vw;
        height: 7vw;
        min-width: 28px;
        min-height: 28px;
    }
    .tq-logo-option--text .tq-dot { margin-top: -3.5vw; }
    .tq-logo-option--text .tq-dot::after,
    .tq-choice-dot::after { font-size: 3vw; }
    .tq-choice-dot { margin-right: 3vw; }
    .tq-actions { gap: 3vw; }
    .tq-btn {
        height: 10vw;
        min-height: 40px;
        padding: 0 3vw;
        border-radius: 1.7vw;
        font-size: 4vw;
        letter-spacing: .05em;
    }
    .tq-contact-list { margin-top: 7vw; }
}


/* v1.8 final contact step fixes */
.tq-btn--submit:not([hidden]) { display: inline-flex !important; }
.tq-contact-formbox .tq-form-title { margin-bottom: 1.15vw; }
.tq-contact-copy .tq-subtitle { margin-bottom: 2.1vw; }

@media (max-width: 900px) {
    .tq-btn--submit:not([hidden]) { display: inline-flex !important; }
    .tq-contact-formbox .tq-form-title { margin-bottom: 4.5vw; }
    .tq-contact-copy .tq-subtitle { margin-bottom: 7vw; }
}

/* v1.9 corrections */
.tq-contact-submit {
    width: 100%;
    margin-top: .25vw;
}
.tq-contact-fields .tq-contact-submit[hidden] {
    display: none !important;
}
.tq-logo-card img {
    object-fit: cover !important;
}

@media (max-width: 900px) {
    .tq-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4vw !important;
    }
    .tq-logo-card {
        height: 26vw !important;
    }
    .tq-caption {
        font-size: 3.7vw;
        margin-top: 2.5vw;
    }
    .tq-dot {
        width: 7vw;
        height: 7vw;
        min-width: 28px;
        min-height: 28px;
        margin-top: -3.5vw;
    }
    .tq-dot::after {
        font-size: 3vw;
    }
    .tq-btn {
        height: 10vw;
        min-height: 40px;
        font-size: 3.9vw;
    }
    .tq-contact-submit {
        margin-top: 1.5vw;
    }
}


/* v1.10 mobile button hard override */
@media (max-width: 900px) {
    .tq-wrap .tq-actions .tq-btn,
    .tq-wrap button.tq-btn,
    .tq-wrap .tq-contact-fields .tq-contact-submit,
    .tq-wrap .tq-btn--back,
    .tq-wrap .tq-btn--next,
    .tq-wrap .tq-btn--submit {
        font-family: 'Open Sans', Arial, sans-serif !important;
        font-size: 3.9vw !important;
        line-height: 1 !important;
        height: 10.8vw !important;
        min-height: 42px !important;
        padding: 0 3.2vw !important;
        border-radius: 1.8vw !important;
        letter-spacing: .04em !important;
        font-weight: 800 !important;
        text-indent: 0 !important;
        transform: none !important;
        zoom: 1 !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    .tq-wrap .tq-contact-fields .tq-contact-submit {
        width: 100% !important;
        margin-top: 1.8vw !important;
    }

    .tq-wrap .tq-btn--back {
        background: #efefef !important;
        color: #2e2e2e !important;
        box-shadow: 0 1vw 0 #dedede !important;
    }

    .tq-wrap .tq-btn--next,
    .tq-wrap .tq-btn--submit {
        background: linear-gradient(180deg, var(--tq-orange-1) 0%, var(--tq-orange-2) 100%) !important;
        color: #fff !important;
        box-shadow: 0 1vw 0 #dc7800 !important;
    }
}
