/* ── "Preview the Questions" — multi-page Gravity Form question list ──────── */

.tbc-gfq-trigger-wrap {
    margin-block: 2rem;
    text-align: right;
}

.tbc-gfq-trigger {
    gap: 0.75rem;
    background-color: transparent;
    margin-top: 2rem;
    padding: .5rem 1rem;
}

.tbc-gfq-trigger svg {
    display: none;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.tbc-gfq-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.tbc-gfq-modal[hidden] {
    display: none;
}

.tbc-gfq-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.tbc-gfq-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.tbc-gfq-modal__panel {
    position: relative;
    width: 100%;
    max-width: 52rem;
    max-height: min(80vh, 46rem);
    background: var(--tbc-color-bg, #ffffff);
    border-radius: 16px;
    overflow: hidden;
}

.tbc-gfq-modal__scroll {
    height: 100%;
    max-height: min(80vh, 46rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2.5rem;
}

.tbc-gfq-modal__title {
    font-family: var(--tbc-font-heading);
    font-size: var(--fs-22-18);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.tbc-gfq-modal__subtext {
    font-family: var(--tbc-font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--tbc-color-text);
    margin: 0 0 2rem;
}

.tbc-gfq-sections {
    column-count: 2;
    column-gap: 2.5rem;
}

.tbc-gfq-section {
    margin-bottom: 1.75rem;
    break-inside: avoid;
}

.tbc-gfq-section:last-child {
    margin-bottom: 0;
}

.tbc-gfq-section__title {
    display: inline-block;
    font-family: var(--tbc-font-body);
    font-size: 1rem;
    font-weight: 900;
    color: var(--tbc-color-black);
    border-bottom: 1px solid var(--tbc-color-black);
    padding-bottom: 0.75rem;
    margin: 0 0 0.75rem;
}

.tbc-gfq-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tbc-gfq-row {
    display: flex;
    align-items: baseline;
}

/* Fixed-width, left-aligned number — native <ol> markers right-align within
   a shared slot, and in this font "1"/"7" are visibly narrower glyphs than
   "2"/"8" etc, so they end up sitting with more leading gap than the rest. */
.tbc-gfq-num {
    flex-shrink: 0;
    width: 1.25rem;
}

.tbc-gfq-row__text,
.tbc-gfq-num {
    font-family: var(--tbc-font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--tbc-color-text);
}

.tbc-gfq-tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #f0f0f0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tbc-color-text);
    vertical-align: middle;
}

.tbc-gfq-tag--optional {
    background: transparent;
    border: 1px solid #d5d5d5;
}

@media (max-width: 600px) {
    .tbc-gfq-modal__scroll {
        padding: 1.75rem;
    }

    .tbc-gfq-sections {
        column-count: 1;
    }
}
