.survey-page-wrapper {
    max-width: 1170px;
    margin: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

.survey-header {
    background-color: #05538E;
    color: #fff;
    padding: 65px 20px;
    text-align: center;
}

.survey-header h1 {font-size: 30px;font-weight: 700;margin-bottom: 10px;}
.survey-header p {font-size: 16px;color: #E6F0FA;}

.survey-form { padding: 40px 60px; }

.question-wrapper{display: flex;justify-content: space-between;}

.question-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0E2551;
    margin-bottom: 20px;
    text-align: start;
}

/* --- Pill Selectors --- */
.pill-selector-group {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
    width: 600px;
    margin-inline: auto;
}

.pill-item {cursor: pointer;flex: 1;}
.pill-item input { display: none; }
.pill-item span {
    display: block;
    padding: 12px;
    border: 1px solid #E1E9F0;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.pill-item input:checked + span {
    background-color: #05538E;
    color: #fff;
    border-color: #05538E;
}

/* --- Rating Scale --- */
.rating-legend { display: flex; gap: 20px; margin-bottom: 15px; }
.legend-item {font-size: 12px;font-weight: 400;display: flex;align-items: center;gap: 5px;color: #373536;}
.legend-item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.legend-item.lime::before { background: #A9B724; }
.legend-item.orange::before { background: #F15A22; }

.rating-row {
    background-color: #F8FBFC;
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-flow: column;
    gap: 15px;
    font-size: 16px;
    color: #373536;
    font-weight: 500;
}

.number-scale {display: flex;gap: 20px;flex-direction: row-reverse;}
.num-item input { display: none; }
.num-item span {
    width: 40px;
    height: 40px;
    border: 1px solid #E1E9F0;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.num-item input:checked + span {
    background-color: #05538E;
    color: #fff;
    transform: scale(1.1);
}

/* --- Form Elements --- */
.survey-textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #E1E9F0;
    border-radius: 15px;
    padding: 15px;
    font-family: inherit;
    resize: none;
}

.survey-contact-box {
    background: #EDF3F7;
    padding: 25px;
    border-radius: 15px;
    margin: 40px 0;
}

.contact-title { font-size: 14px; font-weight: 700; color: #05538E; margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-field label {display: block;font-size: 14px;margin-bottom: 5px;text-align: start;font-weight: 500;color: #373536;}
.input-field input { width: 100%; padding: 10px; border: none; border-radius: 8px; }

.btn-survey-submit {
    display: block;
    width: 300px;
    margin: 0 auto;
    background: #05538E;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}


/* ── Mobile Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {

    .survey-header {
        padding: 35px 16px;
    }

    .survey-header h1 {
        font-size: clamp(20px, 5vw, 30px);
    }

    .survey-form {
        padding: 25px 16px;
    }

    /* Stack the two-column question wrapper */
    .question-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    /* Pill selector: let it fill the available width */
    .pill-selector-group {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
        margin-inline: 0;
    }

    /* Rating row: already column, just tighten padding */
    .rating-row {
        padding: 15px 16px;
    }

    /* Number scale: tighter gaps so 10 circles fit on screen */
    .number-scale {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .num-item span {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    /* Contact grid: single column */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Submit button: full width on mobile */
    .btn-survey-submit {
        width: 100%;
        max-width: 400px;
        font-size: clamp(15px, 4vw, 18px);
    }
}

@media (max-width: 480px) {

    /* Even smaller circles on very small screens */
    .num-item span {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .number-scale {
        gap: 5px;
    }

    .pill-item span {
        font-size: 14px;
        padding: 10px 8px;
    }
}