.tnf-event-review-gate-active {
    overflow: hidden;
}

.tnf-erg {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.tnf-erg__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
}

.tnf-erg__dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: 80vh;
    padding: 60px;
    overflow: auto;
    color: #111;
    background: #fff;
}

.tnf-erg__dialog--success {
    width: min(560px, 100%);
    text-align: center;
}

.tnf-erg__intro {
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.65;
    text-align: center;
}

.tnf-erg__meta {
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.65;
}

.tnf-erg__columns {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

.tnf-erg__columns--auth {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.tnf-erg__panel {
    padding: 0;
}

.tnf-erg--ready [data-tnf-erg-panel] {
    display: none;
}

.tnf-erg--ready [data-tnf-erg-panel].is-active {
    display: block;
}

.tnf-erg__panel h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.15;
}

.tnf-erg__panel>h3,
.tnf-erg__panel>p {
    display: none;
}

.tnf-erg label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
}

.tnf-erg label span {
    display: block;
    margin-bottom: 6px;
}

.tnf-erg input[type="tel"],
.tnf-erg input[type="text"],
.tnf-erg input[type="email"],
.tnf-erg input[type="password"],
.tnf-erg textarea,
.tnf-erg select {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccd5de;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
    appearance: none !important;
}

.tnf-erg select {
    background-color: #fff;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDggNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjgzIDE2LjQybDkuMTcgOS4xNyA5LjE3LTkuMTcgMi44MyAyLjgzLTEyIDEyLTEyLTEyeiIvPjxwYXRoIGQ9Ik0wLS43NWg0OHY0OGgtNDh6IiBmaWxsPSJub25lIi8+PC9zdmc+);
    background-position: right 10px top 50%;
    background-repeat: no-repeat;
    background-size: 20px;
}

.tnf-erg textarea {
    resize: vertical;
}

.tnf-erg__checkbox,
label.tnf-erg__checkbox {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 400;
}

.tnf-erg__checkbox input {
    margin: 0;
}

.tnf-erg__checkbox span,
label.tnf-erg__checkbox span {
    margin: 0;
}

.tnf-erg__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
}

.tnf-erg__actions--preview {
    justify-content: flex-start;
    margin-top: 16px;
}

.tnf-erg__button,
.tnf-erg__actions .tnf-erg__button,
.tnf-erg__switch-row .tnf-erg__switch {
    display: inline-flex;
    background-color: #6397cd;
    border-color: #6397cd;
}

.tnf-erg__button--ghost,
.tnf-erg__actions .tnf-erg__button--ghost,
.tnf-erg__switch-row .tnf-erg__button--ghost {
    color: #0e7490;
    background: white;
}

.tnf-erg__link {
    color: #6397cd;
    font-weight: 400;
    text-decoration: none;
}

.tnf-erg__switch-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(31, 43, 53, 0.08);
}

.tnf-erg__switch {
    padding: 0;
    color: #0e7490;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tnf-erg__notice {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
}

.tnf-erg__notice p {
    margin: 0 0 8px;
}

.tnf-erg__notice p:last-child {
    margin-bottom: 0;
}

.tnf-erg__notice--error {
    color: #7f1d1d;
    background: #fef2f2;
}

.tnf-erg__notice--preview {
    color: #0c4a6e;
    background: #e0f2fe;
}

.tnf-erg__questions {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.tnf-erg__question {
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(31, 43, 53, 0.08);
}

.tnf-erg--ready .tnf-erg__question--extra {
    display: none;
}

.tnf-erg--ready .tnf-erg__question--extra.is-revealed {
    display: block;
}

.tnf-erg__question-label {
    display: block;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.35;
}

.tnf-erg__options-list {
    display: grid;
    gap: 10px;
}

.tnf-erg__option,
label.tnf-erg__option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    font-weight: 400;
}

.tnf-erg__option input {
    margin-top: 3px;
}

.tnf-erg__join-form .evf-container,
.tnf-erg__join-form .everest-forms {
    margin-top: 16px;
}

.tnf-erg__join-form .evf-field-label {
    display: flex;
    gap: 6px;
}

.tnf-erg__join-form .evf-field-container .evf-frontend-row .evf-frontend-grid,
.tnf-erg__join-form .evf-submit-container {
    padding: 0;
}

.tnf-erg.is-closing {
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

@media (max-width: 900px) {
    .tnf-erg {
        padding: 12px;
        align-items: stretch;
    }

    .tnf-erg__dialog {
        max-height: none;
        padding: 22px;
    }
}