/*
 * SBN Developer Notes.
 * Scope: front-end member edit profile page.
 * Used by: templates/page-edit-profile.html and [sbn_edit_profile_form].
 * Edit risk: medium; ACF form output can vary by field config.
 * QA: logged-out state, logged-in form, errors, mobile fields.
 */

.sbn-edit-profile-section {
    padding: var(--sbn-section-space) var(--sbn-dynamic-edge) var(--sbn-section-space) !important;
    width: 100% !important;
    max-width: none !important; 
    margin: 0 !important;
    box-sizing: border-box;
}

.sbn-edit-profile-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 52px;
    align-items: start;
}

.sbn-edit-profile-aside {
    position: sticky;
    top: var(--sbn-sticky-offset);
}

.sbn-edit-aside-card {
    background: var(--sbn-navy);
    border-radius: var(--sbn-radius-card);
    padding: 28px 24px;
    color: var(--sbn-cream);
}

.sbn-edit-aside-icon {
    font-size: 18px;
    color: var(--sbn-gold);
    margin-bottom: 14px;
    display: block;
    line-height: 1;
}

.sbn-edit-aside-title {
    font-family: var(--sbn-serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--sbn-cream);
    margin: 0 0 10px;
    line-height: 1.3;
}

.sbn-edit-aside-body {
    font-size: 13px;
    color: rgba(245, 239, 227, 0.65);
    line-height: 1.65;
    margin: 0 0 18px;
}

.sbn-edit-aside-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(245, 239, 227, 0.1);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sbn-edit-aside-tips li {
    font-size: 12px;
    color: rgba(245, 239, 227, 0.6);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.sbn-edit-aside-tips li::before {
    content: "âœ“";
    color: var(--sbn-gold);
    font-weight: 700;
    flex-shrink: 0;
}

.sbn-edit-profile-form-wrap {
    background: #fff;
    border: 1.5px solid var(--sbn-mist-soft);
    border-radius: var(--sbn-radius-card);
    padding: 36px 36px 44px;
    box-shadow: var(--sbn-shadow-sm);
}

.sbn-edit-profile-form-wrap .acf-field {
    margin-bottom: 24px !important;
}

.sbn-edit-profile-form-wrap .acf-field:last-of-type {
    margin-bottom: 0 !important;
}

.sbn-edit-profile-form-wrap .acf-label label {
    font-family: var(--sbn-sans) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--sbn-ink) !important;
    opacity: 0.65;
    margin-bottom: 7px !important;
    display: block;
}

.sbn-edit-profile-form-wrap .acf-field .description {
    font-size: 12px !important;
    color: var(--sbn-ink) !important;
    opacity: 0.5 !important;
    margin-top: 5px !important;
    line-height: 1.5 !important;
}

.sbn-edit-profile-form-wrap .acf-field input[type="text"],
.sbn-edit-profile-form-wrap .acf-field input[type="url"],
.sbn-edit-profile-form-wrap .acf-field input[type="email"],
.sbn-edit-profile-form-wrap .acf-field input[type="tel"],
.sbn-edit-profile-form-wrap .acf-field select {
    width: 100% !important;
    border: 1.5px solid var(--sbn-mist-soft) !important;
    border-radius: var(--sbn-radius-btn) !important;
    padding: 11px 14px !important;
    font-family: var(--sbn-sans) !important;
    font-size: 15px !important;
    color: var(--sbn-navy) !important;
    background: var(--sbn-paper) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s !important;
    -webkit-appearance: none;
    appearance: none;
}

.sbn-edit-profile-form-wrap .acf-field input[type="text"]:focus,
.sbn-edit-profile-form-wrap .acf-field input[type="url"]:focus,
.sbn-edit-profile-form-wrap .acf-field input[type="email"]:focus,
.sbn-edit-profile-form-wrap .acf-field input[type="tel"]:focus,
.sbn-edit-profile-form-wrap .acf-field select:focus {
    border-color: var(--sbn-gold) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(201, 163, 90, 0.12) !important;
}

.sbn-edit-profile-form-wrap .acf-field textarea {
    width: 100% !important;
    border: 1.5px solid var(--sbn-mist-soft) !important;
    border-radius: var(--sbn-radius-btn) !important;
    padding: 12px 14px !important;
    font-family: var(--sbn-sans) !important;
    font-size: 15px !important;
    color: var(--sbn-navy) !important;
    background: var(--sbn-paper) !important;
    outline: none !important;
    box-shadow: none !important;
    resize: vertical !important;
    min-height: 120px !important;
    line-height: 1.65 !important;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s !important;
}

.sbn-edit-profile-form-wrap .acf-field textarea:focus {
    border-color: var(--sbn-gold) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(201, 163, 90, 0.12) !important;
}

.sbn-edit-profile-form-wrap .acf-field[data-name="member_bio"] textarea {
    min-height: 160px !important;
}

.sbn-edit-profile-form-wrap .acf-field[data-name="member_offerings"] textarea {
    min-height: 130px !important;
}

.sbn-edit-profile-form-wrap .acf-form-submit {
    margin-top: 8px !important;
    padding-top: 24px !important;
    border-top: 1px solid var(--sbn-mist-soft) !important;
}

.sbn-edit-profile-form-wrap .acf-form-submit input[type="submit"],
.sbn-edit-profile-form-wrap .acf-form-submit button[type="submit"] {
    background: var(--sbn-gold) !important;
    color: var(--sbn-navy) !important;
    border: none !important;
    min-height: 46px !important;
    padding: 12px 28px !important;
    border-radius: var(--sbn-radius-btn) !important;
    font-family: var(--sbn-sans) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    letter-spacing: 0 !important;
    transition: background 0.18s, transform 0.18s, box-shadow 0.18s !important;
    display: inline-flex !important;
    align-items: center !important;
}

.sbn-edit-profile-form-wrap .acf-form-submit input[type="submit"]:hover,
.sbn-edit-profile-form-wrap .acf-form-submit button[type="submit"]:hover {
    background: var(--sbn-gold-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(201, 163, 90, 0.3) !important;
}

.sbn-edit-profile-form-wrap .acf-notice.-success {
    background: rgba(111, 138, 106, 0.14) !important;
    border: 1px solid rgba(26, 106, 58, 0.2) !important;
    border-radius: var(--sbn-radius-btn) !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: var(--sbn-eucalypt) !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    font-family: var(--sbn-sans) !important;
}

@media (max-width: 900px) {
    .sbn-edit-profile-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sbn-edit-profile-aside {
        position: static;
    }
    .sbn-edit-aside-card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .sbn-edit-aside-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        margin-top: 2px;
    }
    .sbn-edit-aside-tips {
        display: none;
    }
}

@media (max-width: 600px) {
    .sbn-edit-profile-form-wrap {
        padding: var(--sbn-space-sm);
    }
    .sbn-edit-aside-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sbn-edit-profile-form-wrap .acf-label label,
    .sbn-edit-profile-form-wrap .acf-input input,
    .sbn-edit-profile-form-wrap .acf-input select,
    .sbn-edit-profile-form-wrap .acf-input textarea,
    .sbn-edit-profile-form-wrap .acf-notice.-success {
        font-size: 16px !important;
    }

    .sbn-edit-profile-form-wrap .acf-form-submit input[type="submit"],
    .sbn-edit-profile-form-wrap .acf-form-submit button[type="submit"] {
        width: 100% !important;
        min-height: 44px !important;
        justify-content: center !important;
    }
}
