.mrp-planner {
    max-width: 860px;
    margin: 2rem auto;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.mrp-planner__header h2 {
    margin-top: 0;
}

.mrp-progress {
    margin: 1rem 0 1.5rem;
}

.mrp-progress__bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #f0f0f1;
    overflow: hidden;
}

.mrp-progress__fill {
    width: 12.5%;
    height: 100%;
    background: #2271b1;
    transition: width 0.2s ease;
}

.mrp-steps-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mrp-step {
    display: none;
}

.mrp-step.is-active {
    display: block;
}

.mrp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mrp-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.mrp-field input,
.mrp-field select,
.mrp-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #8c8f94;
    border-radius: 8px;
}

.mrp-note,
.mrp-help {
    color: #50575e;
    font-size: 0.95rem;
}

.mrp-debt-card {
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
}

.mrp-review-box {
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 1rem;
    background: #f6f7f7;
}

@media (max-width: 700px) {
    .mrp-grid {
        grid-template-columns: 1fr;
    }

    .mrp-steps-nav {
        flex-direction: column;
    }
}

.mrp-review-list {
    margin: 0;
    padding-left: 1.25rem;
}

.mrp-review-list li {
    margin-bottom: 0.5rem;
}

.mrp-review-section {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dcdcde;
}

.mrp-review-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.mrp-review-section h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.mrp-review-list {
    margin: 0;
    padding-left: 1.25rem;
}

.mrp-review-list li {
    margin-bottom: 0.4rem;
}


.mrp-review-totals {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mrp-review-total-card {
    border: 1px solid #dcdcde;
    border-radius: 10px;
    padding: 0.85rem;
    background: #f6f7f7;
}

.mrp-review-total-card span {
    display: block;
    font-size: 0.9rem;
    color: #50575e;
    margin-bottom: 0.35rem;
}

.mrp-review-total-card strong {
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .mrp-review-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .mrp-review-totals {
        grid-template-columns: 1fr;
    }
}


.mrp-consent-row {
    margin-bottom: 0.75rem;
}

.mrp-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.45;
    cursor: pointer;
}

.mrp-consent-label input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    margin: 0.15rem 0 0;
}

.mrp-consent-label span {
    display: block;
}

.mrp-calculation-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.mrp-calculation-card {
    border: 1px solid #b8e6c1;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.85rem;
}

.mrp-calculation-card span {
    display: block;
    font-size: 0.9rem;
    color: #50575e;
    margin-bottom: 0.35rem;
}

.mrp-calculation-card strong {
    font-size: 1.05rem;
}

.mrp-summary-status {
    margin: 0.9rem 0 0;
}

@media (max-width: 900px) {
    .mrp-calculation-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .mrp-calculation-summary {
        grid-template-columns: 1fr;
    }
}

.mrp-notice--success {
    background: #edfaef !important;
    border: 1px solid #6cc27e !important;
}

.mrp-results-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dcdcde;
}

.mrp-results-note {
    margin: 0.65rem 0 0;
    color: #50575e;
}

.mrp-start-again {
    display: inline-block;
    margin-top: 0.85rem;
}

.mrp-risk-flags {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #f0c36d;
    background: #fff8e5;
    border-radius: 10px;
}

.mrp-risk-flags h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}


.mrp-debug-error {
    margin: 0.75rem 0 0;
    color: #8a1f11;
    word-break: break-word;
}

.mrp-opportunity-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #f9fafb;
}

.mrp-opportunity-panel h3 {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.mrp-opportunity-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mrp-opportunity-card {
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    padding: 0.85rem;
}

.mrp-opportunity-card span {
    display: block;
    font-size: 0.9rem;
    color: #50575e;
    margin-bottom: 0.35rem;
}

.mrp-opportunity-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.mrp-opportunity-list-box {
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    padding: 0.85rem;
}

.mrp-opportunity-list-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.mrp-opportunity-list-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.mrp-next-step-label {
    margin-top: 1rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .mrp-opportunity-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mrp-opportunity-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .mrp-opportunity-summary {
        grid-template-columns: 1fr;
    }
}


.mrp-opportunity-list-box li {
    line-height: 1.5;
}

.mrp-results-note,
.mrp-next-step-label,
.mrp-risk-flags li {
    line-height: 1.5;
}

.mrp-generate-plan-form {
    margin-top: 0.5rem;
}

.mrp-plan-panel {
    margin-top: 1.25rem;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.mrp-plan-panel h2 {
    margin-top: 0;
}

.mrp-plan-tone {
    color: #50575e;
    margin-bottom: 1rem;
}

.mrp-plan-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mrp-plan-summary-card,
.mrp-plan-box,
.mrp-milestone-card {
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #f9fafb;
    padding: 0.9rem;
}

.mrp-plan-summary-card span {
    display: block;
    color: #50575e;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.mrp-plan-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mrp-plan-box {
    margin-bottom: 1rem;
}

.mrp-plan-box h3,
.mrp-milestone-card h4 {
    margin-top: 0;
}

.mrp-milestones {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.mrp-milestone-note {
    margin-bottom: 0;
    color: #50575e;
}

@media (max-width: 900px) {
    .mrp-plan-summary-grid,
    .mrp-plan-columns,
    .mrp-milestones {
        grid-template-columns: 1fr;
    }
}

.mrp-value-example-box {
    margin: 0.85rem 0;
    padding: 0.85rem;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
}

.mrp-value-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.45rem;
}

.mrp-value-row span {
    color: #50575e;
}

.mrp-value-example-text {
    margin: 0.5rem 0 0;
    color: #50575e;
    line-height: 1.5;
}

.mrp-checkbox-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mrp-checkbox-list label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.45;
}

.mrp-checkbox-list input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0.15rem;
}


@media (max-width: 700px) {
    .mrp-planner {
        max-width: 100%;
        margin: 1rem auto;
        padding: 1rem;
        border-radius: 10px;
    }

    .mrp-plan-panel,
    .mrp-opportunity-panel,
    .mrp-review-box {
        padding: 0.85rem;
    }

    .mrp-milestone-card,
    .mrp-plan-box,
    .mrp-plan-summary-card,
    .mrp-opportunity-card,
    .mrp-opportunity-list-box,
    .mrp-calculation-card,
    .mrp-review-total-card {
        padding: 0.8rem;
        border-radius: 8px;
    }

    .mrp-milestone-card h4 {
        font-size: 1.7rem;
        line-height: 1.15;
        margin-bottom: 0.5rem;
    }

    .mrp-milestone-card p,
    .mrp-milestone-card li,
    .mrp-plan-box p,
    .mrp-plan-box li,
    .mrp-opportunity-list-box li,
    .mrp-results-note,
    .mrp-next-step-label {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .mrp-value-example-box {
        padding: 0.75rem;
    }

    .mrp-value-row {
        display: block;
        margin-bottom: 0.7rem;
    }

    .mrp-value-row span,
    .mrp-value-row strong {
        display: block;
    }

    .mrp-value-row strong {
        margin-top: 0.2rem;
    }
}

@media (max-width: 480px) {
    .mrp-planner {
        margin: 0.5rem auto;
        padding: 0.75rem;
        border-radius: 8px;
    }

    .mrp-planner__header h2,
    .mrp-plan-panel h2 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .mrp-milestone-card h4 {
        font-size: 1.45rem;
    }

    .mrp-plan-tone,
    .mrp-help,
    .mrp-note {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}


.mrp-planner .button.button-primary {
    background: #7edc1f;
    border-color: #7edc1f;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.95rem 1.5rem;
    min-height: 56px;
    font-size: 1rem;
    line-height: 1.2;
    box-shadow: none;
    text-shadow: none;
}

.mrp-planner .button.button-primary:hover,
.mrp-planner .button.button-primary:focus {
    background: #74cf18;
    border-color: #74cf18;
    color: #ffffff;
}

.mrp-planner .button:not(.button-primary) {
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    min-height: 50px;
}

.mrp-steps-nav {
    align-items: stretch;
}

.mrp-steps-nav .button,
.mrp-generate-plan-form .button.button-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
}

@media (min-width: 701px) {
    .mrp-steps-nav .button,
    .mrp-generate-plan-form .button.button-primary {
        width: auto;
        min-width: 220px;
    }
}

@media (max-width: 700px) {
    .mrp-steps-nav {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .mrp-generate-plan-form .button.button-primary {
        width: 100%;
    }
}


.mrp-mse-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #fff;
}

.mrp-mse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.mrp-mse-card {
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #f9fafb;
    padding: 0.85rem;
}

.mrp-mse-card h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.mrp-mse-card p {
    margin-top: 0;
}

.mrp-mse-card ul {
    margin: 0;
    padding-left: 1.2rem;
    word-break: break-word;
}

@media (max-width: 700px) {
    .mrp-mse-grid {
        grid-template-columns: 1fr;
    }
}


.mrp-consent-error {
    border: 2px solid #d63638;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    background: #fff5f5;
}

.mrp-consent-message {
    margin: 0 0 0.75rem;
    color: #d63638;
    font-weight: 600;
}


.mrp-download-actions {
    margin-top: 1rem;
}

.mrp-download-note {
    margin: 0.65rem 0 0;
    color: #50575e;
}

.mrp-pdf-export-render .mrp-notice--success {
    background: #ffffff !important;
    border: 1px solid #dcdcde !important;
}

.mrp-pdf-export-render .mrp-download-actions,
.mrp-pdf-export-render .mrp-start-again,
.mrp-pdf-export-render .mrp-generate-plan-form,
.mrp-pdf-export-render .mrp-results-note,
.mrp-pdf-export-render .mrp-debug-error {
    display: none !important;
}

.mrp-pdf-export-title {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dcdcde;
}

.mrp-pdf-export-title h1 {
    margin: 0 0 0.25rem;
    font-size: 2rem;
}

.mrp-pdf-export-title p {
    margin: 0;
    color: #50575e;
}


.mrp-download-actions--bottom {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #dcdcde;
}


.mrp-extra-actions {
    margin-top: 0.85rem;
}

.mrp-button-resources {
    background: #00d8ff;
    border-color: #00d8ff;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.95rem 1.5rem;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.mrp-button-resources:hover,
.mrp-button-resources:focus {
    background: #00c9ec;
    border-color: #00c9ec;
    color: #ffffff;
}

.mrp-share-block {
    margin-top: 1rem;
}

.mrp-share-title {
    margin: 0 0 0.6rem;
    font-weight: 600;
}

.mrp-share-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mrp-share-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid #dcdcde;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mrp-share-icon svg {
    width: 24px;
    height: 24px;
}

.mrp-share-icon--facebook {
    color: #1877f2;
}

.mrp-share-icon--instagram {
    color: #e1306c;
}

.mrp-share-note {
    margin: 0.6rem 0 0;
    color: #50575e;
    font-size: 0.95rem;
}

@media (max-width: 700px) {
    .mrp-button-resources {
        width: 100%;
    }
}


.mrp-better-off-note {
    margin: 0.55rem 0 0;
    color: #2271b1;
    font-weight: 600;
    line-height: 1.45;
}

.mrp-download-actions {
    padding: 1rem 0 0.25rem;
}

.mrp-extra-actions,
.mrp-share-block {
    padding-top: 0.35rem;
}

.mrp-share-block {
    padding-bottom: 0.35rem;
}
