/* Shared colors resolve from the public theme or the private portal, then local fallbacks. */
.tqcr-section,
.tqcr-form,
.tqcr-notice {
    --tqcr-ink: var(--ink, var(--tqcp-ink, #101014));
    --tqcr-deep: var(--ink-deep, var(--tqcp-deep, #0b0b0e));
    --tqcr-paper: var(--paper, var(--tqcp-paper, #f7f6f8));
    --tqcr-muted: var(--muted, var(--tqcp-muted, #beb8c6));
    --tqcr-lilac: var(--lilac, var(--tqcp-lilac, #c388f3));
    --tqcr-line: rgba(195, 136, 243, .25);
    color: var(--tqcr-paper);
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

.tqcr-section {
    padding-block: clamp(46px, 6vw, 78px);
    background: var(--tqcr-ink);
    scroll-margin-top: 110px;
}

.tqcr-section .tqcr-wrap {
    width: min(calc(100% - var(--gutter, 24px) * 2), var(--wrap, 1280px));
    margin-inline: auto;
}

.tqcr-section .tqcr-header {
    margin-bottom: clamp(27px, 3vw, 40px);
}

.tqcr-section .tqcr-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    color: var(--tqcr-lilac);
    font-size: 10px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.tqcr-section .tqcr-eyebrow::after {
    content: '';
    width: 80px;
    height: 1px;
    background: var(--tqcr-line);
}

.tqcr-section .tqcr-heading {
    margin: 0;
    color: var(--tqcr-paper);
    font-size: clamp(32px, 3.15vw, 47px);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -.04em;
}

.tqcr-section .tqcr-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
}

.tqcr-section .tqcr-review {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 18px;
    margin: 0;
    padding: 23px 0 0;
    border: 0;
    border-top: 1px solid var(--tqcr-line);
    background: transparent;
    box-shadow: none;
}

.tqcr-review .tqcr-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.tqcr-review .tqcr-stars {
    padding: 0;
    color: var(--tqcr-lilac);
    background: transparent;
    border: 0;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: .12em;
    white-space: nowrap;
}

.tqcr-review .tqcr-stars-empty,
.tqcr-review .tqcr-rating-value {
    color: var(--tqcr-muted);
}

.tqcr-review .tqcr-rating-value {
    font-size: 12px;
    letter-spacing: 0;
}

.tqcr-review .tqcr-quote {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: #ded7e6;
    font-size: 16px;
    line-height: 1.75;
    font-style: normal;
    overflow-wrap: anywhere;
}

.tqcr-quote p {
    margin: 0 0 14px;
    color: inherit;
    font: inherit;
}

.tqcr-quote p:last-child {
    margin-bottom: 0;
}

.tqcr-review .tqcr-attribution {
    display: grid;
    gap: 4px;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.tqcr-attribution .tqcr-name {
    color: var(--tqcr-paper);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}

.tqcr-attribution .tqcr-service {
    color: var(--tqcr-muted);
    font-size: 12px;
    line-height: 1.5;
}

.tqcr-screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Native portal review controls; publication and consent are handled by the backend. */
.tqcr-form {
    display: grid;
    gap: 20px;
    min-width: 0;
    max-width: 680px;
    margin: 28px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--tqcr-line);
    font-size: 14px;
    line-height: 1.6;
}

.tqcr-form *,
.tqcr-form *::before,
.tqcr-form *::after {
    box-sizing: border-box;
}

.tqcr-form .tqcr-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.tqcr-field label,
.tqcr-field legend {
    padding: 0;
    color: var(--tqcr-paper);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 650;
}

.tqcr-form input[type='text'],
.tqcr-form input[type='email'],
.tqcr-form input[type='url'],
.tqcr-form input:not([type]),
.tqcr-form textarea,
.tqcr-form select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    max-width: 100%;
    padding: 11px 13px;
    color: var(--tqcr-paper);
    background: #17131c;
    border: 1px solid #80638f;
    border-radius: 3px;
    font: inherit;
    line-height: 1.5;
    color-scheme: dark;
}

.tqcr-form textarea {
    min-height: 150px;
    resize: vertical;
}

.tqcr-form input::placeholder,
.tqcr-form textarea::placeholder,
.tqcr-field small,
.tqcr-form .tqcr-help {
    color: var(--tqcr-muted);
}

.tqcr-field small,
.tqcr-form .tqcr-help {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.tqcr-form .tqcr-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    color: var(--tqcr-muted);
    font-size: 13px;
    line-height: 1.65;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.tqcr-consent input[type='checkbox'],
.tqcr-field input[type='radio'] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--tqcr-lilac);
}

.tqcr-consent label {
    min-height: 44px;
    color: inherit;
    font: inherit;
}

.tqcr-form button[type='submit'],
.tqcr-form button:not([type]),
.tqcr-form input[type='submit'] {
    justify-self: start;
    min-width: 44px;
    min-height: 49px;
    max-width: 100%;
    padding: 12px 21px;
    color: #fff;
    background: linear-gradient(115deg, #9420e4, #8212d4);
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 650;
    cursor: pointer;
}

.tqcr-form button[type='submit']:hover,
.tqcr-form button:not([type]):hover,
.tqcr-form input[type='submit']:hover {
    background: linear-gradient(115deg, #a135ed, #921fe3);
}

.tqcr-form :focus-visible {
    outline: 2px solid var(--tqcr-lilac);
    outline-offset: 4px;
}

.tqcr-field [aria-invalid='true'] {
    border-color: #d890a6;
}

.tqcr-form :disabled {
    cursor: default;
    opacity: .65;
}

.tqcr-notice {
    margin: 20px 0;
    padding: 14px 18px;
    color: #dfcbed;
    background: #18111f;
    border-left: 2px solid var(--tqcr-lilac);
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.tqcr-notice p {
    margin: 0;
}

.tqcr-notice--error,
.tqcr-form .tqcr-error {
    color: #f1d7de;
    border-color: #d890a6;
}

.tqcr-form a,
.tqcr-notice a {
    color: var(--tqcr-lilac);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 760px) {
    .tqcr-section .tqcr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .tqcr-section .tqcr-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 34px;
    }
}

@media (max-width: 640px) {
    .tqcr-section .tqcr-heading {
        font-size: 33px;
    }
    .tqcr-section .tqcr-grid {
        gap: 26px;
    }
    .tqcr-form {
        max-width: none;
        gap: 18px;
    }
    .tqcr-form button[type='submit'],
    .tqcr-form button:not([type]),
    .tqcr-form input[type='submit'] {
        justify-self: stretch;
        width: 100%;
    }
}
