﻿body {
    font-family: var(--ce-font-body);
    background: var(--ce-bg-content);
    color: var(--ce-dark-claret);
}

#content {
    padding: 2rem 2rem 3rem;
}

/* ── PAGE HEADER ──────────────────────────────────────── */
.profile-header {
    margin-bottom: 2rem;
}

.profile-header__title {
    font-family: var(--ce-font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--ce-dark-claret);
    letter-spacing: -0.01em;
    margin: 0 0 4px;
}

.profile-header__sub {
    font-size: 0.875rem;
    color: var(--ce-neutral-500);
    margin: 0;
}

/* ── CONTENT WRAPPER ──────────────────────────────────── */
.profile-content {
    max-width: 680px;
}

/* ── CARDS ────────────────────────────────────────────── */
.profile-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid rgba(250,189,0,0.2);
    padding: 28px 32px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(139,26,26,0.06);
}

.profile-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ce-dark-claret);
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ce-neutral-200);
}

/* ── FIELDS ───────────────────────────────────────────── */
.profile-field {
    margin-bottom: 18px;
}

.profile-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3d4350;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.profile-field input {
    width: 100%;
    padding: 12px 16px;
    background: #F7F4EE;
    border: 1.5px solid #E8DFD0;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--ce-dark-claret);
    font-family: var(--ce-font-body);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    outline: none;
}

.profile-field input:focus {
    background: #fff;
    border-color: #C48B00;
    box-shadow: 0 0 0 3px rgba(250,189,0,0.18);
}

.profile-field input.is-invalid {
    border-color: var(--ce-claret);
}

.profile-field input:disabled,
.profile-field input[readonly] {
    background: var(--ce-neutral-100);
    color: var(--ce-neutral-500);
    cursor: not-allowed;
}

.profile-field .invalid-feedback {
    display: block;
    font-size: 0.78rem;
    color: var(--ce-claret);
    margin-top: 5px;
}

.profile-field .field-hint {
    font-size: 0.78rem;
    color: var(--ce-neutral-500);
    margin-top: 6px;
    line-height: 1.5;
}

/* ── BUTTON ───────────────────────────────────────────── */
.btn-profile-save {
    display: inline-block;
    padding: 11px 28px;
    background: var(--ce-claret);
    color: #fff;
    font-family: var(--ce-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    box-shadow: 0 4px 14px rgba(173,21,25,0.2);
}

.btn-profile-save:hover {
    background: var(--ce-dark-claret);
    box-shadow: 0 6px 20px rgba(173,21,25,0.3);
    transform: translateY(-1px);
}

.btn-profile-save:active {
    transform: translateY(0);
}

/* ── PASSWORD STRENGTH ────────────────────────────────── */
.pwd-strength {
    margin-top: 8px;
}

.pwd-strength__bar {
    height: 4px;
    border-radius: 2px;
    background: var(--ce-neutral-300);
    transition: background 0.3s, width 0.3s;
}

.pwd-strength__label {
    font-size: 0.75rem;
    color: var(--ce-neutral-500);
    margin-top: 4px;
    display: block;
}

.pwd-strength--weak   .pwd-strength__bar { background: var(--ce-claret); width: 33%; }
.pwd-strength--medium .pwd-strength__bar { background: #f59e0b; width: 66%; }
.pwd-strength--strong .pwd-strength__bar { background: var(--ce-success); width: 100%; }

/* ── INCIDENCE SUBTYPE (support page) ────────────────── */
#incidence_subtype_wrapper {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

#incidence_subtype_wrapper.is-visible {
    max-height: 200px;
    opacity: 1;
}

.profile-field select,
.profile-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: #F7F4EE;
    border: 1.5px solid #E8DFD0;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--ce-dark-claret);
    font-family: var(--ce-font-body);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    outline: none;
}

.profile-field select:focus,
.profile-field textarea:focus {
    background: #fff;
    border-color: #C48B00;
    box-shadow: 0 0 0 3px rgba(250,189,0,0.18);
}

/* ── ALERTS ───────────────────────────────────────────── */
.profile-alert-danger {
    font-size: 0.83rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fff1f2;
    color: var(--ce-claret);
    border: 1px solid rgba(173,21,25,0.2);
}

.profile-alert-success {
    font-size: 0.83rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f0faf4;
    color: var(--ce-success);
    border: 1px solid rgba(0,125,54,0.2);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991px) {
    .profile-header__title { font-size: 1.2rem; }
}

@media (max-width: 767px) {
    #content { padding: 1rem 0.75rem 2rem; }
    .profile-card { padding: 18px 16px; }
    .profile-card__title { font-size: 0.95rem; }

    .btn-profile-save {
        display: block;
        width: 100%;
        text-align: center;
        padding: 13px;
    }
}

@media (max-width: 480px) {
    .profile-header__title { font-size: 1.05rem; }
    .profile-field input { font-size: 0.9rem; padding: 10px 14px; }
}
