/* Страница опроса — в общем chrome сайта (как contacts / about) */

.survey-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 24px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Unbounded', sans-serif;
    color: #333;
}

.survey-card.content-card {
    padding: 28px 32px;
    font-family: 'Unbounded', sans-serif;
}

.survey-loading-text {
    text-align: center;
    color: #888;
    margin: 0;
    font-family: 'Unbounded', sans-serif;
}

.survey-progress {
    height: 8px;
    background: #ece6ff;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.survey-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #7231FF 0%, #9B59B6 100%);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.survey-step-label {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 8px;
    font-family: 'Unbounded', sans-serif;
}

.survey-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Unbounded', sans-serif;
}

.survey-info-callout {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #d4c4ff;
    background: linear-gradient(135deg, #f8f4ff 0%, #f0ebff 100%);
}

.survey-info-callout__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.survey-info-callout__body {
    margin: 0 0 14px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #555;
    font-family: 'Unbounded', sans-serif;
}

.survey-info-callout__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: #7231FF;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
    transition: background 0.15s ease;
}

.survey-info-callout__link:hover {
    background: #6220ef;
    color: #fff !important;
}

.survey-question {
    margin-bottom: 24px;
}

.survey-question__label {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.45;
}

.survey-question__required {
    color: #d32f2f;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survey-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e8e0ff;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    background: #faf8ff;
    color: #333;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.survey-option:hover {
    border-color: #c4b5fd;
    background: #f3edff;
    box-shadow: 0 2px 8px rgba(114, 49, 255, 0.08);
}

.survey-option input {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: #7231FF;
}

.survey-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.survey-scale__btn {
    min-width: 44px;
    height: 44px;
    border: 1px solid #e0d4ff;
    border-radius: 12px;
    background: #faf8ff;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    transition: all 0.15s;
}

.survey-scale__btn:hover {
    border-color: #7231FF;
    background: #f3edff;
}

.survey-scale__btn.is-selected {
    background: #7231FF;
    border-color: #7231FF;
    color: #fff;
    box-shadow: 0 2px 8px rgba(114, 49, 255, 0.25);
}

.survey-textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid #e0d4ff;
    border-radius: 12px;
    background: #fff;
    color: #333;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.survey-textarea:focus {
    outline: none;
    border-color: #7231FF;
    box-shadow: 0 0 0 3px rgba(114, 49, 255, 0.15);
}

.survey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    padding-top: 0;
}

.survey-card--reward [data-survey-actions],
.survey-card--success [data-survey-actions],
.survey-card--terminal [data-survey-actions] {
    display: none !important;
}

.survey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    cursor: pointer;
    min-height: 44px;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.survey-btn--primary {
    background: linear-gradient(135deg, #7231FF 0%, #9B59B6 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(114, 49, 255, 0.2);
}

.survey-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #9B59B6 0%, #7231FF 100%);
    box-shadow: 0 4px 12px rgba(114, 49, 255, 0.3);
}

.survey-btn--secondary {
    background: #fff;
    color: #7231FF;
    border: 2px solid #7231FF;
}

.survey-btn--secondary:hover:not(:disabled) {
    background: #f8f4ff;
}

.survey-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.survey-error {
    color: #d32f2f;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-family: 'Unbounded', sans-serif;
}

.survey-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 12px 8px 8px;
    box-sizing: border-box;
    color: #333;
    font-family: 'Unbounded', sans-serif;
}

/* Перебиваем .content-card h2 / p из pages.css внутри опроса */
.survey-card .survey-success__title,
.survey-modal .survey-success__title,
.survey-card .survey-completed-info__title,
.survey-modal .survey-completed-info__title {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0 0 10px !important;
    padding: 0;
    text-align: center !important;
    color: #333 !important;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    gap: 0;
}

.survey-card .survey-success__text,
.survey-modal .survey-success__text,
.survey-card .survey-completed-info__text,
.survey-modal .survey-completed-info__text,
.survey-card .survey-ineligible p,
.survey-modal .survey-ineligible p {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0;
    text-align: center !important;
    color: #555 !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

.survey-success__title {
    font-family: 'Unbounded', sans-serif;
}

.survey-success__text {
    font-family: 'Unbounded', sans-serif;
}

.survey-card--reward,
.survey-card--success,
.survey-card--terminal {
    display: flex;
    flex-direction: column;
}

.survey-card--reward [data-survey-body],
.survey-card--success [data-survey-body],
.survey-card--terminal [data-survey-body] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.survey-card--success [data-survey-body],
.survey-card--terminal [data-survey-body] {
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 8px 0 4px;
}

#survey-app.survey-card--success.content-card,
#survey-app.survey-card--terminal.content-card {
    min-height: 220px;
}

#survey-app.survey-card--success.content-card .survey-completed-info__title,
#survey-app.survey-card--terminal.content-card .survey-completed-info__title,
#survey-app.survey-card--success.content-card .survey-success__title {
    display: block !important;
    width: 100%;
    text-align: center !important;
    color: #333 !important;
}

#survey-app.survey-card--success [data-survey-body] .survey-completed-info,
#survey-app.survey-card--success [data-survey-body] .survey-ineligible,
#survey-app.survey-card--success [data-survey-body] .survey-success,
#survey-app.survey-card--terminal [data-survey-body] .survey-completed-info,
#survey-app.survey-card--terminal [data-survey-body] .survey-ineligible,
#survey-app.survey-card--terminal [data-survey-body] .survey-success {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
}

.survey-card--success[data-survey-form],
.survey-card.survey-card--success,
#survey-app.survey-card--success,
.survey-card--terminal[data-survey-form],
.survey-card.survey-card--terminal,
#survey-app.survey-card--terminal {
    text-align: center;
}

.survey-card--reward[data-survey-form],
.survey-card.survey-card--reward,
#survey-app.survey-card--reward {
    text-align: left;
}

.survey-card--success [data-survey-body],
.survey-modal.survey-card--success [data-survey-body] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 200px;
}

.survey-card--terminal [data-survey-body],
.survey-modal.survey-card--terminal [data-survey-body] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 200px;
}

.survey-card--success > .survey-completed-info,
.survey-card--success > .survey-ineligible,
.survey-card--success > .survey-success,
.survey-card--terminal > .survey-completed-info,
.survey-card--terminal > .survey-ineligible,
.survey-card--terminal > .survey-success {
    width: 100%;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.survey-ineligible p + p {
    margin-top: 14px !important;
}

.survey-ineligible,
.survey-completed-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    color: #333;
    font-family: 'Unbounded', sans-serif;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.survey-success h2,
.survey-success p {
    width: 100%;
    text-align: center;
}

.survey-success__icon {
    font-size: 2.75rem;
    color: #4CAF50;
    margin: 0 0 12px;
    line-height: 1;
    display: block;
}

.survey-reward-choice {
    width: 100%;
    margin: 0;
    padding: 4px 0 0;
    color: #333;
    font-family: 'Unbounded', sans-serif;
    box-sizing: border-box;
}

.survey-reward-choice__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.4;
}

.survey-reward-choice__intro {
    color: #555;
    line-height: 1.55;
    margin: 0 0 16px;
    font-size: 0.9rem;
}

.survey-reward-choice .survey-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.survey-reward-choice__notice {
    margin: 0 0 12px;
    color: #555;
    font-size: 0.88rem;
    line-height: 1.45;
    font-family: 'Unbounded', sans-serif;
}

.survey-reward-choice__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 4px;
    position: relative;
    z-index: 2;
}

.survey-reward-choice__error {
    margin: 12px 0 0;
    color: #d32f2f;
    font-size: 0.9rem;
    line-height: 1.45;
    font-family: 'Unbounded', sans-serif;
}

.survey-reward-choice__error[hidden] {
    display: none;
}

.survey-reward-choice__actions .survey-btn {
    min-width: 140px;
}

.survey-debug {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e8e0ff;
    font-size: 0.8rem;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-word;
    color: #333;
}

.survey-ineligible a {
    color: #7231FF;
    font-weight: 600;
}

/* Модалка */
.survey-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(34, 16, 85, 0.55);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.survey-modal-overlay.active {
    display: flex;
}

.survey-modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 28px 24px 24px;
    position: relative;
    color: #333;
    font-family: 'Unbounded', sans-serif;
    box-sizing: border-box;
}

.survey-modal--teaser {
    text-align: center;
}

.survey-modal__teaser {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.survey-modal__teaser-icon {
    font-size: 2.5rem;
    color: #7231FF;
    margin: 0 0 12px;
    line-height: 1;
}

.survey-modal__cta {
    width: 100%;
    margin: 20px 0 8px;
}

.survey-modal__cta-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.survey-modal [data-survey-body] {
    width: 100%;
    margin-top: 4px;
}

.survey-modal.survey-card--reward .survey-modal__subtitle,
.survey-modal.survey-card--success .survey-modal__subtitle,
.survey-modal.survey-card--terminal .survey-modal__subtitle {
    display: none;
}

.survey-modal.survey-card--reward .survey-modal__dismiss-row,
.survey-modal.survey-card--success .survey-modal__dismiss-row,
.survey-modal.survey-card--terminal .survey-modal__dismiss-row {
    display: none;
}

.survey-modal.survey-card--reward,
.survey-modal.survey-card--success,
.survey-modal.survey-card--terminal {
    padding-bottom: 24px;
}

.survey-modal__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #333;
    line-height: 1.35;
    text-align: center;
    width: 100%;
}

.survey-modal__subtitle {
    color: #555;
    margin: 0;
    line-height: 1.55;
    font-size: 0.9rem;
    font-family: 'Unbounded', sans-serif;
    text-align: center;
    max-width: 26rem;
}

.survey-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f3edff;
    color: #7231FF;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.survey-modal__close:hover {
    background: #e8deff;
}

.survey-modal__dismiss-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    width: 100%;
    align-items: center;
}

.survey-modal__dismiss-row button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    font-family: 'Unbounded', sans-serif;
    padding: 4px 8px;
}

.survey-modal__dismiss-row button[data-survey-dismiss="not_interested"] {
    color: #777;
}

.survey-modal__dismiss-row button:hover {
    color: #7231FF;
}

.account-survey-banner {
    position: relative;
    margin: 0 0 16px;
    padding: 14px 44px 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(114, 49, 255, 0.12), rgba(155, 89, 182, 0.1));
    border: 1px solid rgba(114, 49, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.account-survey-banner__close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: #7231FF;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-survey-banner__close:hover {
    background: #fff;
    color: #6220ef;
}

.account-survey-banner__text {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    font-family: 'Unbounded', sans-serif;
    flex: 1 1 12rem;
}

.account-survey-banner__btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    background: #7231FF;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
}

.account-survey-banner__btn:hover {
    background: #6220ef;
    color: #fff;
}

@media (max-width: 768px) {
    .survey-section {
        padding: 0;
    }

    .survey-card.content-card {
        padding: 20px 16px;
    }

    .survey-reward-choice__actions {
        justify-content: stretch;
    }

    .survey-reward-choice__actions .survey-btn {
        width: 100%;
        min-width: 0;
    }

    .survey-card--success [data-survey-body],
    .survey-card--terminal [data-survey-body] {
        min-height: 160px;
        padding: 4px 0;
    }
}
