/* ─────────────────────────────────────────────────
   PMS Member Profiles – Edit Profile Form Styles
   v1.16 – Shortcode-based, theme controls layout
   ───────────────────────────────────────────────── */

.pms-mp-edit-wrap {
    padding: 20px 0;
    box-sizing: border-box;
}

.pms-mp-edit-inner {
    width: 100%;
    box-sizing: border-box;
}

/* ── Notices ── */
.pms-mp-notice {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.pms-mp-notice--success {
    background: #1a3d2b;
    border: 1px solid #4caf7d;
    color: #a8f0c2 !important;
}
.pms-mp-notice--success a {
    margin-left: 12px;
    color: #6fcf97 !important;
    font-weight: 600;
    text-decoration: underline;
}
.pms-mp-notice--error {
    background: #3d1a1a;
    border: 1px solid #e57373;
    color: #ffb3b3 !important;
}
.pms-mp-notice--error p { margin: 4px 0; }

/* ── Layout ── */
.pms-mp-field-group {
    margin-bottom: 24px;
}

.pms-mp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 540px) {
    .pms-mp-field-row { grid-template-columns: 1fr; }
}

.pms-mp-section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaaaaa !important;
    margin: 36px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* ── Labels ── */
.pms-mp-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #cccccc !important;
}

.pms-mp-hint {
    font-size: 0.8rem;
    color: #999999 !important;
    margin-top: 6px;
}

/* ── Radio buttons (Region) ── */
.pms-mp-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 4px;
}

.pms-mp-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #cccccc !important;
    font-size: 0.95rem;
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 6px;
    transition: border-color 0.15s, background 0.15s;
}

.pms-mp-radio-label:hover {
    border-color: #667eea;
    background: rgba(102,126,234,0.08);
}

.pms-mp-radio-label input[type="radio"] {
    accent-color: #667eea;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.pms-mp-radio-label:has(input:checked) {
    border-color: #667eea;
    background: rgba(102,126,234,0.15);
    color: #ffffff !important;
}

/* ── Inputs ── */
.pms-mp-input,
.pms-mp-textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #444 !important;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #1e2028 !important;
    color: #e0e0e0 !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.pms-mp-input:focus,
.pms-mp-textarea:focus {
    outline: none;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
    color: #ffffff !important;
}
.pms-mp-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* ── Avatar section ── */
.pms-mp-avatar-group {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pms-mp-avatar-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
    display: block;
}
.pms-mp-avatar-controls {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

/* ── Buttons ── */
.pms-mp-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-align: center;
    user-select: none;
}
.pms-mp-btn--primary {
    background: #667eea;
    color: #fff !important;
    border-color: #667eea;
}
.pms-mp-btn--primary:hover {
    background: #5a6fd6;
    border-color: #5a6fd6;
    color: #fff !important;
}
.pms-mp-btn--secondary {
    background: transparent;
    color: #e0e0e0 !important;
    border-color: #555;
}
.pms-mp-btn--secondary:hover {
    background: rgba(255,255,255,0.07);
    color: #fff !important;
}
.pms-mp-btn--ghost {
    background: transparent;
    color: #667eea !important;
    border-color: #667eea;
}
.pms-mp-btn--ghost:hover {
    background: #667eea;
    color: #fff !important;
}
.pms-mp-btn--danger {
    background: transparent;
    color: #e57373 !important;
    border-color: #e57373;
    font-size: 0.85rem;
    padding: 8px 16px;
}
.pms-mp-btn--danger:hover,
.pms-mp-btn--danger.is-checked {
    background: #e57373;
    color: #fff !important;
    border-color: #e57373;
}

/* ── Form actions ── */
.pms-mp-form-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
