.mpm-registration-wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    color: #2f2f2f;
}

.mpm-registration-form,
.mpm-registration-form * {
    box-sizing: border-box;
}

.mpm-registration-form {
    background: #fff;
    padding: 0;
}

.mpm-registration-header {
    margin-bottom: 38px;
}

.mpm-registration-header h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
}

.mpm-registration-header p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
}

.mpm-form-section {
    margin: 0 0 44px;
}

.mpm-form-section > h2 {
    margin: 0 0 28px;
    font-size: 28px;
    line-height: 1.25;
}

.mpm-field {
    margin-bottom: 28px;
}

.mpm-field > label:first-child {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.mpm-field-note,
.mpm-help-text {
    margin: 0 0 10px;
    color: #6d6d6d;
    font-size: 14px;
    line-height: 1.55;
}

.mpm-help-text {
    margin-top: 8px;
}

.mpm-registration-form input[type="text"],
.mpm-registration-form input[type="email"],
.mpm-registration-form input[type="password"],
.mpm-registration-form input[type="tel"],
.mpm-registration-form input[type="date"],
.mpm-registration-form select {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    background: #fff;
    color: #2f2f2f;
    font: inherit;
    font-size: 16px;
    line-height: 1.35;
    box-shadow: none;
}

.mpm-registration-form input::placeholder {
    color: #999;
    opacity: 1;
}

.mpm-registration-form input:focus,
.mpm-registration-form select:focus,
.mpm-rich-editor:focus {
    border-color: #004c4c;
    outline: 2px solid rgba(0, 76, 76, 0.14);
    outline-offset: 1px;
}

.mpm-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 15px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
}

.mpm-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: #004c4c;
}

.mpm-visibility-choice {
    margin-top: 12px;
}

.mpm-editor-toolbar {
    display: flex;
    gap: 6px;
    padding: 7px;
    border: 1px solid #bdbdbd;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: #f7f7f7;
}

.mpm-editor-toolbar button {
    width: 36px;
    height: 32px;
    padding: 0;
    border: 1px solid #c8c8c8;
    border-radius: 3px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 15px;
}

.mpm-editor-toolbar button:hover,
.mpm-editor-toolbar button:focus {
    border-color: #004c4c;
    color: #004c4c;
}

.mpm-rich-editor {
    min-height: 230px;
    padding: 14px;
    border: 1px solid #bdbdbd;
    border-radius: 0 0 4px 4px;
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
    overflow-y: auto;
}

.mpm-rich-editor:empty::before {
    content: attr(data-placeholder);
    color: #999;
    pointer-events: none;
    white-space: pre-wrap;
}

.mpm-form-actions {
    padding-top: 4px;
}

.mpm-submit-button {
    min-width: 180px;
    min-height: 52px;
    padding: 12px 24px;
    border: 0;
    border-radius: 4px;
    background: #004c4c;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.mpm-submit-button[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
}

.mpm-form-actions > p {
    margin: 12px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.mpm-form-actions .mpm-sprint-notice {
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #d4d4d4;
    background: #fafafa;
    color: #555;
}

@media (max-width: 640px) {
    .mpm-registration-header {
        margin-bottom: 30px;
    }

    .mpm-form-section {
        margin-bottom: 36px;
    }

    .mpm-form-section > h2 {
        font-size: 24px;
    }

    .mpm-field {
        margin-bottom: 24px;
    }

    .mpm-registration-form input[type="text"],
    .mpm-registration-form input[type="email"],
    .mpm-registration-form input[type="password"],
    .mpm-registration-form input[type="tel"],
    .mpm-registration-form input[type="date"],
    .mpm-registration-form select {
        min-height: 50px;
    }

    .mpm-submit-button {
        width: 100%;
    }
}

.mpm-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.mpm-form-message {
    margin: 0 0 30px;
    padding: 18px 20px;
    border: 2px solid;
    border-radius: 5px;
    font-size: 17px;
    line-height: 1.55;
}

.mpm-form-message--success {
    border-color: #004c4c;
    background: #f2f9f8;
    color: #003f3f;
}

.mpm-form-message--error {
    border-color: #b42318;
    background: #fff5f4;
    color: #8a1c13;
}

.mpm-field-error {
    margin: 8px 0 0;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.mpm-field.has-error input,
.mpm-field.has-error select,
.mpm-field.has-error .mpm-rich-editor {
    border-color: #b42318;
}

.mpm-consent-item.has-error {
    padding-left: 10px;
    border-left: 3px solid #b42318;
}

.mpm-submit-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Sprint 2 complete: password and validation UX. */
.mpm-password-control {
    position: relative;
}

.mpm-password-control input {
    padding-right: 54px !important;
}

.mpm-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #555;
    cursor: pointer;
    transform: translateY(-50%);
}

.mpm-password-toggle:hover,
.mpm-password-toggle:focus {
    background: #f2f6f6;
    color: #004c4c;
    outline: 2px solid rgba(0, 76, 76, 0.14);
}

.mpm-eye-icon,
.mpm-eye-icon::after {
    display: block;
    box-sizing: border-box;
}

.mpm-eye-icon {
    position: relative;
    width: 22px;
    height: 14px;
    margin: 0 auto;
    border: 2px solid currentColor;
    border-radius: 50% / 60%;
}

.mpm-eye-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.mpm-password-toggle.is-visible .mpm-eye-icon::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -3px;
    width: 26px;
    height: 2px;
    background: currentColor;
    transform: rotate(-35deg);
}

.mpm-password-requirements {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: #6d6d6d;
    font-size: 14px;
    line-height: 1.7;
}

.mpm-password-requirements li::before {
    content: '○';
    display: inline-block;
    width: 20px;
    font-weight: 700;
}

.mpm-password-requirements li.is-valid {
    color: #087a4b;
}

.mpm-password-requirements li.is-valid::before {
    content: '✓';
}

.mpm-password-match {
    min-height: 22px;
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
}

.mpm-password-match.is-valid {
    color: #087a4b;
}

.mpm-password-match.is-invalid {
    color: #b42318;
}

.mpm-input-invalid {
    border-color: #b42318 !important;
}
