.mp-er-page {
    --mp-er-brand: var(--primary_color, #005450);
    --mp-er-brand-rgb: var(--primary_color_rgb, 0, 84, 80);
    --mp-er-border: #e5edf5;
    --mp-er-muted: #64748b;
    --mp-er-surface: #f8fafc;
    padding: 2.5rem 0 4rem;
    background:
        radial-gradient(circle at top right, rgba(var(--mp-er-brand-rgb), 0.06), transparent 42%),
        linear-gradient(180deg, #f8fafc 0%, #fff 220px);
}

.mp-er-shell {
    max-width: 640px;
    margin: 0 auto;
}

.mp-er-hero {
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--mp-er-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.mp-er-hero__profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mp-er-hero__avatar {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.mp-er-hero__badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(var(--mp-er-brand-rgb), 0.1);
    color: var(--mp-er-brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.mp-er-hero__name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
}

.mp-er-hero__meta {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mp-er-muted);
}

.mp-er-hero__lead {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--mp-er-muted);
}

.mp-er-hero__link {
    color: var(--mp-er-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-er-hero__link:hover {
    color: #003d3a;
}

.mp-er-card {
    padding: 1.5rem 1.35rem 1.35rem;
    border: 1px solid var(--mp-er-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.mp-er-card__title {
    margin: 0 0 1.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

.mp-er-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.mp-er-field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mp-er-label {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
}

.mp-er-label.required::after {
    content: ' *';
    color: #dc3545;
    font-weight: 700;
}

.mp-er-field-help {
    margin: -0.25rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--mp-er-muted);
}

.mp-er-rating {
    padding: 1rem 1.1rem;
    border: 1px solid var(--mp-er-border);
    border-radius: 14px;
    background: var(--mp-er-surface);
}

.mp-er-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mp-er-rating-stars {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.mp-er-rating-stars__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 2.75rem;
}

.mp-er-rating-stars__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #d1d5db;
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.mp-er-rating-stars__btn[data-rating="1"].is-active,
.mp-er-rating-stars__btn[data-rating="1"].is-preview {
    color: #ef4444;
}

.mp-er-rating-stars__btn[data-rating="2"].is-active,
.mp-er-rating-stars__btn[data-rating="2"].is-preview {
    color: #f97316;
}

.mp-er-rating-stars__btn[data-rating="3"].is-active,
.mp-er-rating-stars__btn[data-rating="3"].is-preview {
    color: #eab308;
}

.mp-er-rating-stars__btn[data-rating="4"].is-active,
.mp-er-rating-stars__btn[data-rating="4"].is-preview {
    color: #84cc16;
}

.mp-er-rating-stars__btn[data-rating="5"].is-active,
.mp-er-rating-stars__btn[data-rating="5"].is-preview {
    color: #22c55e;
}

.mp-er-rating-stars__btn:hover {
    transform: translateY(-1px);
}

.mp-er-rating-stars__btn:focus-visible {
    outline: 2px solid rgba(var(--mp-er-brand-rgb), 0.35);
    outline-offset: 2px;
}

.mp-er-rating-stars__num {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}

.mp-er-rating-label {
    margin: 0;
    min-width: 5.5rem;
    text-align: right;
    font-size: 1rem;
    font-weight: 800;
    color: var(--mp-er-brand);
    line-height: 1.2;
}

.mp-er-select {
    min-height: 48px;
    border-radius: 12px;
    border-color: var(--mp-er-border);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.65rem 0.9rem;
    background-color: #fff;
}

.mp-er-select:focus {
    border-color: rgba(var(--mp-er-brand-rgb), 0.45);
    box-shadow: 0 0 0 0.2rem rgba(var(--mp-er-brand-rgb), 0.12);
}

.mp-er-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mp-er-tags__btn {
    border: 1px solid var(--mp-er-border);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    padding: 0.5rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mp-er-tags__btn:hover {
    border-color: rgba(var(--mp-er-brand-rgb), 0.28);
    background: rgba(var(--mp-er-brand-rgb), 0.04);
}

.mp-er-tags__btn.is-active {
    border-color: var(--mp-er-brand);
    background: rgba(var(--mp-er-brand-rgb), 0.08);
    color: var(--mp-er-brand);
    box-shadow: 0 0 0 1px rgba(var(--mp-er-brand-rgb), 0.12);
}

.mp-er-textarea {
    min-height: 160px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--mp-er-border);
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.55;
    resize: vertical;
    box-shadow: none;
}

.mp-er-textarea:focus {
    border-color: rgba(var(--mp-er-brand-rgb), 0.45);
    box-shadow: 0 0 0 0.2rem rgba(var(--mp-er-brand-rgb), 0.12);
}

.mp-er-char-count {
    margin-top: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mp-er-muted);
    text-align: right;
}

.mp-er-char-count.is-invalid {
    color: #dc3545;
}

.mp-er-char-count.is-valid {
    color: #198754;
}

.mp-er-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--mp-er-border);
}

.mp-er-footer__legal {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        rgba(var(--mp-er-brand-rgb), 0.05) 0%,
        rgba(var(--mp-er-brand-rgb), 0.02) 100%
    );
    border: 1px solid rgba(var(--mp-er-brand-rgb), 0.1);
}

.mp-er-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    cursor: pointer;
}

.mp-er-consent input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.25rem;
    accent-color: var(--mp-er-brand);
}

.mp-er-consent__body {
    flex: 1;
    min-width: 0;
}

.mp-er-consent__text {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #64748b;
}

.mp-er-consent__required {
    color: #dc3545;
    font-weight: 700;
    margin-right: 0.1rem;
}

.mp-er-legal-link {
    color: var(--mp-er-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.mp-er-legal-link:hover,
.mp-er-legal-link:focus-visible {
    color: #003d3a;
}

.mp-er-footer__submit {
    width: 100%;
    align-self: stretch;
}

.mp-er-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 48px;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--mp-er-brand);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(var(--mp-er-brand-rgb), 0.22);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.mp-er-submit:hover,
.mp-er-submit:focus-visible {
    background: #00433e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(var(--mp-er-brand-rgb), 0.28);
}

.mp-er-submit:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.mp-er-account-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: -0.25rem 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--mp-er-border);
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
}

.mp-er-account-banner a {
    color: var(--mp-er-brand);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-er-account-banner--ok {
    background: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.25);
    color: #166534;
}

.mp-er-account-banner--ok i {
    margin-top: 0.15rem;
}

.mp-er-phone-row {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.65rem;
}

.mp-er-otp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: stretch;
}

.mp-er-phone-input,
.mp-er-otp-input {
    min-height: 48px;
    border-radius: 12px;
    border-color: var(--mp-er-border);
    font-size: 0.9375rem;
    font-weight: 600;
}

.mp-er-otp-send {
    border: 1px solid rgba(var(--mp-er-brand-rgb), 0.25);
    background: rgba(var(--mp-er-brand-rgb), 0.08);
    color: var(--mp-er-brand);
    font-weight: 700;
    border-radius: 12px;
    min-height: 48px;
}

.mp-er-otp-send:hover,
.mp-er-otp-send:focus-visible {
    background: rgba(var(--mp-er-brand-rgb), 0.14);
    color: var(--mp-er-brand);
}

.mp-er-id-modal-lead {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--mp-er-muted);
}

.mp-er-id-modal__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.mp-er-id-footer-block {
    width: 100%;
}

.mp-er-id-footer-block[hidden] {
    display: none !important;
}

.mp-er-id-login-hint {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.mp-er-id-login-hint a {
    color: var(--mp-er-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-er-id-login-hint a:hover,
.mp-er-id-login-hint a:focus-visible {
    color: #003d3a;
}

.mp-er-id-steps-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.mp-er-id-steps {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.mp-er-id-pane[hidden] {
    display: none !important;
}

.mp-er-id-steps__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mp-er-id-steps__item.is-active {
    background: #fff;
    color: var(--mp-er-brand);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.mp-er-id-steps__item.is-done {
    color: #15803d;
}

.mp-er-id-steps__item.is-done .mp-er-id-steps__num {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.mp-er-id-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid currentColor;
    font-size: 0.7rem;
    line-height: 1;
}

.mp-er-id-steps__item.is-active .mp-er-id-steps__num {
    background: var(--mp-er-brand);
    border-color: var(--mp-er-brand);
    color: #fff;
}

.mp-er-id-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.mp-er-id-field--otp {
    margin-top: 0.25rem;
}

.mp-er-otp-input--digits {
    max-width: 11rem;
    margin-inline: auto;
    display: block;
}

.mp-er-id-otp-help {
    margin-top: 0.45rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--mp-er-muted);
}

.mp-er-otp-input--lg {
    letter-spacing: 0.42em;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    padding-left: 0.65rem;
}

.mp-er-id-field-label-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.45rem;
}

.mp-er-id-field-hint {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--mp-er-muted);
}

.mp-er-id-otp-sent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #166534;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 600;
}

.mp-er-id-otp-sent i {
    margin-top: 0.15rem;
}

.mp-er-id-field {
    margin: 0;
}

.mp-er-id-resend {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mp-er-brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-er-id-resend:hover,
.mp-er-id-resend:focus-visible {
    color: #003d3a;
}

#mp-expert-review-modal-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.mp-er-shell.is-success .mp-er-hero {
    display: none;
}

.mp-er-success {
    overflow: hidden;
    padding: 0;
    text-align: center;
}

.mp-er-success__profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--mp-er-border);
    background: linear-gradient(
        135deg,
        rgba(var(--mp-er-brand-rgb), 0.06) 0%,
        rgba(var(--mp-er-brand-rgb), 0.02) 100%
    );
}

.mp-er-success__avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.mp-er-success__doctor-name {
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.35;
    color: #111827;
}

.mp-er-success__doctor-meta {
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mp-er-muted);
}

.mp-er-success__body {
    padding: 1.5rem 1.35rem 1.25rem;
    text-align: center;
}

.mp-er-success__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.mp-er-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 0;
    border-radius: 999px;
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.22);
    color: #16a34a;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}

.mp-er-success__chip {
    display: inline-block;
    margin-bottom: 0;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(var(--mp-er-brand-rgb), 0.1);
    color: var(--mp-er-brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mp-er-success__title {
    margin: 0 0 0.55rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.mp-er-success__text {
    max-width: 28rem;
    margin-inline: auto;
    color: var(--mp-er-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.mp-er-success__footer {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.25rem 1.35rem;
    border-top: 1px solid var(--mp-er-border);
    background: #f8fafc;
}

.mp-er-success__register {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mp-er-success__register-text {
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.mp-er-success__register-btn {
    width: 100%;
}

.mp-er-success__home-link {
    display: block;
    text-align: center;
    color: var(--mp-er-brand);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-er-success__home-link:hover,
.mp-er-success__home-link:focus-visible {
    color: #003d3a;
}

@media (max-width: 575.98px) {
    .mp-er-page {
        padding-top: 1.25rem;
    }

    .mp-er-hero,
    .mp-er-card {
        padding-inline: 1rem;
    }

    .mp-er-hero__name {
        font-size: 1.15rem;
    }

    .mp-er-rating-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .mp-er-rating-label {
        text-align: left;
        min-width: 0;
    }

    .mp-er-rating-stars__btn {
        width: 40px;
        height: 40px;
        font-size: 1.45rem;
    }

    .mp-er-footer {
        gap: 0.85rem;
    }

    .mp-er-footer__submit,
    .mp-er-submit {
        width: 100%;
    }

    .mp-er-otp-row {
        grid-template-columns: 1fr;
    }

    .mp-er-otp-send {
        width: 100%;
    }

    .mp-er-id-steps__label {
        display: none;
    }
}
