.survey-page {
    --survey-bg: #f4f7fb;
    --survey-card: #ffffff;
    --survey-border: #e6edf6;
    --survey-text: #1b2437;
    --survey-muted: #6b7a94;
    --survey-accent: #e94f43;
    --survey-accent-dark: #c84339;
    --survey-star: #e94f43;
    --survey-shadow: 0 14px 28px rgba(18, 38, 77, 0.08);
    padding: 70px 0 90px;
    color: var(--survey-text);
    font-family: "Poppins", "Segoe UI", sans-serif;
}

.survey-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 100px;
}

.survey-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.survey-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.survey-title {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    color: #224b8b;
}

.survey-subtitle {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--survey-muted);
    max-width: 920px;
}

.survey-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
}

.survey-alert-success {
    background: rgba(24, 181, 169, 0.12);
    border: 1px solid rgba(24, 181, 169, 0.25);
    color: #0f645c;
}

.survey-alert-error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.25);
    color: #8f2f27;
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.survey-card {
    background: var(--survey-card);
    border: 1px solid var(--survey-border);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: var(--survey-shadow);
}

.survey-card-head {
    margin-bottom: 16px;
}

.survey-card-title {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: #224b8b;
}

.survey-question {
    margin: 0;
    color: var(--survey-muted);
    font-size: 16px;
}

.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

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

.survey-field-label {
    font-size: 13px;
    color: #5f6f88;
    font-weight: 600;
}

.survey-field input,
.survey-field textarea {
    border: 1px solid #e94f43;
    background: #f9fbfe;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--survey-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.survey-field input[readonly] {
    background: #eef3f8;
    border-color: #e94f43;
    color: #6b7a94;
    pointer-events: none;
    box-shadow: none;
}

.survey-field textarea {
    min-height: 120px;
    resize: vertical;
}

.survey-field--textarea textarea:focus {
    border-color: #2f6fed;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.18);
}

.survey-field--textarea .survey-field-warning {
    display: none;
    font-size: 12px;
    color: #d0453b;
}

.survey-field--textarea.is-invalid textarea:not(:focus) {
    border-color: #e94f43;
    box-shadow: 0 0 0 3px rgba(233, 79, 67, 0.12);
}

.survey-field--textarea.is-invalid .survey-field-warning {
    display: block;
}

.survey-rating-box {
    background: #f2f5f9;
    border-radius: 16px;
    border: 1px solid #e94f43;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.survey-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 10px;
    font-size: 30px;
    position: relative;
}

.survey-rating input {
    position: absolute;
    opacity: 0;
}

.survey-rating label {
    color: #c8d2e1;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.survey-rating label:hover,
.survey-rating label:hover~label,
.survey-rating input:checked~label {
    color: var(--survey-star);
}

.survey-rating label:active {
    transform: scale(0.96);
}

.survey-rating-hint {
    color: #8a98b0;
    font-size: 14px;
}

.survey-optional {
    text-align: right;
    margin-top: 8px;
    font-size: 12px;
    color: #9aa7bd;
}

.survey-policy {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #5f6f88;
}

.survey-policy input {
    width: 16px;
    height: 16px;
    accent-color: var(--survey-accent);
}

.survey-policy a,
.survey-note a {
    color: var(--survey-accent);
    text-decoration: underline;
}

.survey-actions {
    display: flex;
    justify-content: center;
}

.survey-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    background: var(--survey-accent);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(24, 181, 169, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.survey-submit:hover {
    background: var(--survey-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(24, 181, 169, 0.3);
}

.survey-submit:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}
.survey-submit:disabled:hover {
    background: var(--survey-accent);
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.survey-note {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #8a98b0;
}

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

    .survey-page .container {
        padding: 0 20px;
    }

    .survey-title {
        font-size: 30px;
    }

    .survey-subtitle {
        font-size: 16px;
    }

    .survey-card {
        padding: 20px;
    }

    .survey-rating {
        font-size: 26px;
    }
}

@media (max-width: 520px) {
    .survey-title {
        font-size: 26px;
    }

    .survey-submit {
        width: 100%;
        justify-content: center;
    }

    .survey-page .container {
        padding: 0 20px;
    }
}