.m21-survey-wrapper,
.m21-results-wrapper {
    --m21-primary: #0a7f5a;
    --m21-primary-dark: #056447;
    --m21-surface: #ffffff;
    --m21-bg: #f5f7f6;
    --m21-border: #d7dfdb;
    --m21-text: #172026;

    color: var(--m21-text);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

.m21-survey-wrapper {
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
}

.m21-results-wrapper {
    background: linear-gradient(160deg, #f9fcfb 0%, #eff6f3 100%);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--m21-border);
}

.m21-survey-form {
    max-width: 920px;
    margin: 0 auto;
}

.m21-survey-cover img {
    width: 100%;
    border-radius: 12px;
    max-height: 280px;
    object-fit: cover;
    margin-bottom: 14px;
}

.m21-survey-header {
    background: var(--m21-surface);
    border: 1px solid var(--m21-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.m21-question {
    background: var(--m21-surface);
    border: 1px solid var(--m21-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.m21-question-title {
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.m21-question-description {
    color: #5f6d67;
    font-size: 14px;
    margin-bottom: 8px;
}

.m21-required {
    color: #d63638;
    margin-left: 4px;
}

.m21-question input[type="text"],
.m21-question input[type="email"],
.m21-question input[type="number"],
.m21-question input[type="date"],
.m21-question input[type="tel"],
.m21-question textarea,
.m21-question select {
    width: 100%;
    border: 1px solid #b8c9c2;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    box-sizing: border-box;
}

.m21-options,
.m21-stars,
.m21-scale-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.m21-contact-fields .m21-field-inline {
    display: block;
    margin-bottom: 10px;
}

.m21-contact-fields .m21-field-inline span {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.m21-contact-note {
    margin: 6px 0 10px;
    font-size: 13px;
    color: #466054;
}

.m21-options label,
.m21-stars label,
.m21-scale-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.m21-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #5f6d67;
}

.m21-honeypot {
    position: absolute;
    left: -9999px;
}

.m21-btn {
    background: var(--m21-primary);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.m21-btn:hover {
    background: var(--m21-primary-dark);
    color: #fff;
}

.m21-btn.m21-btn-light {
    background: #edf4f0;
    color: #0f5132;
    border: 1px solid #cadbd2;
}

.m21-form-message {
    margin-top: 10px;
    font-weight: 600;
}

.m21-form-message.m21-error,
.m21-error {
    color: #9f1d1d;
}

.m21-form-message.m21-success {
    color: #116329;
}

.m21-reward-result {
    margin-top: 14px;
}

.m21-reward-card {
    border: 1px solid #cbe2d8;
    border-radius: 12px;
    background: linear-gradient(160deg, #f7fcf9 0%, #edf7f2 100%);
    padding: 14px;
}

.m21-reward-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.m21-reward-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-bottom: 10px;
}

.m21-reward-item {
    background: #fff;
    border: 1px solid #d8e9e1;
    border-radius: 8px;
    padding: 8px 10px;
}

.m21-reward-item span {
    display: block;
    font-size: 12px;
    color: #4b6358;
}

.m21-reward-item strong {
    display: block;
    margin-top: 2px;
}

.m21-reward-points {
    font-size: 22px;
}

.m21-reward-note {
    margin: 0;
    color: #27483b;
}

.m21-reward-ebook {
    margin: 10px 0 0;
    padding: 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d6e6de;
}

.m21-reward-ebook p {
    margin: 0 0 6px;
}

.m21-reward-redirect {
    margin-top: 10px;
}

.m21-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.m21-summary-cards article {
    background: var(--m21-surface);
    border: 1px solid var(--m21-border);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.m21-summary-cards strong {
    font-size: 26px;
    line-height: 1;
}

.m21-question-card,
.m21-individual-card {
    background: var(--m21-surface);
    border: 1px solid var(--m21-border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.m21-results-header {
    background: var(--m21-surface);
    border: 1px solid var(--m21-border);
    border-radius: 12px;
    padding: 16px;
}

.m21-results-header .m21-inline-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 10px;
}

.m21-export-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.m21-results-individual-actions {
    margin: 14px 0 10px;
}

.m21-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.m21-bento-card {
    grid-column: span 6;
    margin-bottom: 0;
}

.m21-bento-card-wide {
    grid-column: span 12;
}

.m21-bento-card-tall {
    grid-row: span 2;
}

.m21-chart-shell {
    position: relative;
    min-height: 240px;
    height: 240px;
    margin-top: 10px;
}

.m21-question-chart {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
}

.m21-custom-chart {
    margin-top: 10px;
}

.m21-treemap-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 220px;
}

.m21-treemap-item {
    min-width: 140px;
    min-height: 88px;
    border-radius: 10px;
    color: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.m21-treemap-item strong {
    font-size: 13px;
}

.m21-treemap-item span {
    font-size: 12px;
    opacity: 0.95;
}

.m21-pictogram-list {
    display: grid;
    gap: 10px;
}

.m21-pictogram-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid #d9e3de;
    border-radius: 10px;
    padding: 8px 10px;
    background: #f7fbf9;
}

.m21-pictogram-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.m21-pictogram-meta strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m21-pictogram-meta span {
    color: #52635c;
    font-size: 12px;
}

.m21-pictogram-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.m21-picto-icon {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.m21-text-list p {
    background: #f5fbf8;
    border: 1px solid #e0ece6;
    border-radius: 8px;
    padding: 8px;
    margin: 6px 0;
}

.m21-individual-card header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.m21-individual-card ul {
    margin: 0;
    padding-left: 16px;
}

.m21-followup-activities {
    margin-top: 14px;
    background: var(--m21-surface);
    border: 1px solid var(--m21-border);
    border-radius: 12px;
    padding: 16px;
}

.m21-followup-activities h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.m21-followup-activities p {
    margin-top: 0;
    color: #5f6d67;
}

.m21-followup-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.m21-combo-wrapper {
    display: grid;
    gap: 12px;
}

.m21-combo-intro {
    background: var(--m21-surface);
    border: 1px solid var(--m21-border);
    border-radius: 10px;
    padding: 12px 14px;
}

.m21-combo-intro p {
    margin: 0;
}

.m21-results-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.m21-results-cover {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--m21-border);
    background: #f2f7f5;
}

.m21-results-cover img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.m21-results-hero-text h2 {
    margin: 0 0 6px;
}

.m21-report-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3d6455;
    font-weight: 700;
}

.m21-results-hero-text p {
    margin: 0 0 8px;
    color: #4b5b54;
}

.m21-report-description {
    margin-top: 10px;
    color: #304b40;
    line-height: 1.45;
}

.m21-print-actions {
    align-items: center;
}

.m21-form-section-card {
    background: #f6fbf8;
}

.m21-form-section-header {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.m21-form-section-header h4 {
    margin: 0 0 4px;
}

.m21-form-section-header p {
    margin: 0 0 6px;
    color: #4b5b54;
}

.m21-form-section-cover {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--m21-border);
}

.m21-form-section-cover img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.m21-results-auth {
    max-width: 920px;
    margin: 0 auto;
}

.m21-auth-header {
    text-align: center;
}

.m21-auth-note {
    margin-top: 6px;
    color: #455751;
    font-weight: 600;
}

.m21-auth-description {
    margin-top: 4px;
    color: #4b5b54;
}

.m21-auth-card {
    max-width: 520px;
    margin: 0 auto;
}

.m21-auth-card .m21-field-inline span {
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.m21-auth-card input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid #b8c9c2;
    box-sizing: border-box;
    margin-bottom: 10px;
}

@media print {
    .m21-public-shell {
        background: #fff;
    }

    .m21-results-wrapper {
        border: 0;
        background: #fff;
        padding: 0;
    }

    .m21-print-only-hide,
    .m21-export-actions,
    .m21-results-individual-actions {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .m21-survey-wrapper {
        padding: 0;
        border-radius: 0;
    }

    .m21-results-wrapper {
        padding: 14px;
        border-radius: 10px;
    }

    .m21-summary-cards {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }

    .m21-reward-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .m21-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .m21-bento-card,
    .m21-bento-card-wide,
    .m21-bento-card-tall {
        grid-column: span 2;
        grid-row: auto;
    }

    .m21-chart-shell {
        min-height: 220px;
        height: 220px;
    }

    .m21-results-header .m21-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .m21-form-section-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .m21-form-section-cover img {
        height: 180px;
    }

    .m21-pictogram-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .m21-pictogram-icons {
        justify-content: flex-start;
    }
}
