.tie-app {
    max-width: 980px;
    margin: 30px auto;
    color: #1f2937;
}

.tie-form,
.tie-result,
.tie-excluded,
.tie-declined {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: clamp(20px, 4vw, 42px);
}

.tie-progress {
    height: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #e5e7eb;
    border-radius: 999px;
}

.tie-progress__bar {
    width: 0;
    height: 100%;
    background: #173f8f;
    transition: width 0.25s ease;
}

.tie-progress-text {
    margin-bottom: 16px;
    font-weight: 600;
    color: #4b5563;
}

.tie-step {
    display: none;
}

.tie-step.is-active {
    display: block;
}

.tie-consent-text {
    max-height: 360px;
    overflow: auto;
    padding: 18px;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.tie-question {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #dbe1ea;
    border-radius: 14px;
}

.tie-question legend {
    padding: 0 8px;
    font-weight: 700;
}

.tie-question__code {
    display: inline-block;
    margin-right: 8px;
    color: #173f8f;
}

.tie-choice-list,
.tie-scale {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.tie-scale {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tie-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tie-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 14px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: 0.2s ease;
}

.tie-option input:checked + label {
    color: #ffffff;
    background: #173f8f;
    border-color: #173f8f;
}

.tie-option input:focus-visible + label {
    outline: 3px solid rgba(23, 63, 143, 0.25);
    outline-offset: 2px;
}

.tie-option__number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 700;
    border-radius: 50%;
    background: rgba(23, 63, 143, 0.1);
}

.tie-option input:checked + label .tie-option__number {
    background: rgba(255, 255, 255, 0.2);
}

.tie-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}

.tie-actions--end {
    justify-content: flex-end;
}

.tie-btn {
    min-height: 46px;
    padding: 12px 22px;
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
}

.tie-btn--primary {
    color: #ffffff;
    background: #173f8f;
}

.tie-btn--secondary {
    color: #1f2937;
    background: #e5e7eb;
}

.tie-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.tie-counter {
    margin-top: 14px;
    font-weight: 600;
    color: #4b5563;
}

.tie-scale-info {
    padding-left: 24px;
}

.tie-result--success {
    border-left: 6px solid #15803d;
}

.tie-result--error {
    margin-bottom: 20px;
    border-left: 6px solid #b91c1c;
}

@media (max-width: 760px) {
    .tie-scale {
        grid-template-columns: 1fr;
    }

    .tie-actions {
        flex-direction: column-reverse;
    }

    .tie-btn {
        width: 100%;
    }
}


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


.tie-consent-proof {
    margin: 24px 0 8px;
    text-align: center;
}

.tie-consent-proof img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid #dbe1ea;
    border-radius: 12px;
}

.tie-consent-proof figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #4b5563;
}
