/* Agency/Admin Helper Profile (M.O.M form) - modern design matching DashboardAgency / AdminDashboard.
   Loaded globally so every step component (personal, professional, education, about me) can share it. */

.hp-shell {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
    color: #1e293b;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

/* ============ SIDEBAR ============ */
.hp-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 260px;
    background: #0f172a;
    color: #cbd5e1;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

.hp-sidebar__top {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

.hp-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.hp-sidebar__brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(to top right, #14b8a6, #0d9488);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.3);
}

.hp-sidebar__brand h1 {
    margin: 0;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.hp-sidebar__brand span {
    color: #5eead4;
    font-size: 0.68rem;
    font-weight: 500;
}

.hp-sidebar__profile {
    margin: 1rem 0.75rem 0;
    padding: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.6);
    overflow: hidden;
}

.hp-sidebar__profile p {
    margin: 0;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-sidebar__profile span {
    color: #94a3b8;
    font-size: 0.65rem;
    white-space: nowrap;
}

.hp-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
    margin: 1rem 0 1.25rem;
}

.hp-sidebar__label {
    padding: 0.75rem 0.9rem 0.35rem;
    color: #475569;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hp-sidebar__nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hp-sidebar__nav-item i {
    width: 16px;
    font-size: 0.8rem;
    text-align: center;
}

.hp-sidebar__nav-item:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    text-decoration: none;
}

.hp-sidebar__nav-item--active {
    background: linear-gradient(to right, #14b8a6, #0d9488);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.3);
}

.hp-sidebar__nav-item--active:hover {
    background: linear-gradient(to right, #14b8a6, #0d9488);
    color: #fff;
}

.hp-sidebar__footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(30, 41, 59, 0.8);
}

.hp-sidebar__logout {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-sidebar__logout:hover {
    background: rgba(248, 113, 113, 0.12);
}

/* ============ MAIN ============ */
.hp-main {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.hp-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* ============ PAGE HEADER ============ */
.hp-page-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hp-eyebrow {
    margin: 0 0 0.25rem;
    color: #0d9488;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hp-page-head h1 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hp-subtitle {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.hp-page-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* ============ BADGES ============ */
.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hp-badge--success {
    background: #dcfce7;
    color: #15803d;
}

.hp-badge--warning {
    background: #fef3c7;
    color: #b45309;
}

.hp-badge--danger {
    background: #fee2e2;
    color: #b91c1c;
}

.hp-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ============ BUTTONS ============ */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hp-btn--sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
}

.hp-btn--primary {
    background: linear-gradient(to right, #14b8a6, #0d9488);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.3);
}

.hp-btn--primary:hover:not(:disabled) {
    background: linear-gradient(to right, #0d9488, #0f766e);
}

.hp-btn--soft {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #334155;
}

.hp-btn--soft:hover:not(:disabled) {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.hp-btn--danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.hp-btn--danger:hover:not(:disabled) {
    border-color: #fca5a5;
    background: #fee2e2;
}

/* ============ ALERTS ============ */
.hp-alert {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.5;
}

.hp-alert strong {
    font-size: 0.78rem;
    font-weight: 700;
}

.hp-alert--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.hp-alert--danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.hp-alert--warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.hp-alert--info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

/* ============ STEPS ============ */
.hp-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-step {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
}

.hp-step a,
.hp-step--active {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    color: inherit;
    text-decoration: none;
}

.hp-step a:hover {
    background: #f8fafc;
    text-decoration: none;
}

.hp-step__index {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
}

.hp-step div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.hp-step strong {
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
}

.hp-step span:not(.hp-step__index) {
    color: #94a3b8;
    font-size: 0.68rem;
}

.hp-step--active {
    border-color: #14b8a6;
    background: linear-gradient(to right, #f0fdfa, #ffffff);
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.18);
}

.hp-step--active .hp-step__index {
    background: linear-gradient(to top right, #14b8a6, #0d9488);
    color: #fff;
}

.hp-step--active strong {
    color: #0f766e;
}

/* ============ CARDS ============ */
.hp-fieldset {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.hp-fieldset:disabled {
    opacity: 0.85;
}

.hp-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hp-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.hp-card__head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
}

.hp-card__head p {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ============ PHOTO ============ */
.hp-photo-row {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hp-photo__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hp-photo__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 140px;
    padding: 1rem;
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-photo__box:hover {
    border-color: #14b8a6;
    background: #f0fdfa;
    color: #0f766e;
}

.hp-photo__box i {
    font-size: 1.4rem;
    color: #14b8a6;
}

.hp-photo__box strong {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
}

.hp-photo__box span {
    font-size: 0.7rem;
}

.hp-photo__box--preview {
    padding: 0;
    border-style: solid;
    border-color: #e2e8f0;
    background: #f1f5f9;
    overflow: hidden;
}

.hp-photo__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.hp-photo__meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hp-photo__meta p {
    margin: 0;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.5;
}

/* ============ FORM GRID ============ */
.hp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

.hp-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.hp-field--full {
    grid-column: 1 / -1;
}

.hp-field--pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hp-field--pair > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.hp-label {
    color: #475569;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hp-label em {
    color: #dc2626;
    font-style: normal;
}

.hp-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.8rem;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.hp-input::placeholder {
    color: #94a3b8;
}

.hp-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.hp-input:disabled {
    background: #f8fafc;
    color: #64748b;
}

.hp-input--area {
    min-height: 84px;
    resize: vertical;
    line-height: 1.5;
}

.hp-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

.hp-check input {
    width: 16px;
    height: 16px;
    accent-color: #14b8a6;
    cursor: pointer;
}

.hp-checks {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* ============ MEDICAL ============ */
.hp-med {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #f8fafc;
}

.hp-med__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #eef2f7;
}

.hp-med__row:last-child {
    border-bottom: 0;
}

.hp-med__row > span {
    flex: 1 1 9rem;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
}

.hp-med__row label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.75rem;
    cursor: pointer;
}

.hp-med__row input[type="radio"] {
    accent-color: #14b8a6;
    cursor: pointer;
}

/* ============ SELECTABLE TAGS ============ */
.hp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hp-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hp-tag:hover:not(:disabled) {
    border-color: #5eead4;
    background: #f0fdfa;
    color: #0f766e;
}

.hp-tag:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.hp-tag--active,
.hp-tag--active:hover:not(:disabled) {
    border-color: #14b8a6;
    background: #14b8a6;
    color: #fff;
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.25);
}

.hp-tag--static {
    cursor: default;
    border-color: #14b8a6;
    background: #14b8a6;
    color: #fff;
}

/* ============ SUBSECTIONS ============ */
.hp-subsection {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.35rem;
}

.hp-subsection__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
}

.hp-subsection__head em {
    color: #dc2626;
    font-style: normal;
}

.hp-subsection__head i {
    color: #0d9488;
    font-size: 0.78rem;
}

.hp-hint {
    margin: 0;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.5;
}

/* ============ SKILL CARDS ============ */
.hp-skill-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.hp-skill-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.hp-skill-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
}

.hp-skill-card__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hp-skill-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

/* ============ EMPLOYMENT HISTORY ============ */
.hp-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hp-history__card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.hp-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hp-history__head strong {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ============ RICH TEXT / VIDEO ============ */
.hp-editor {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.hp-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.hp-editor__toolbar button {
    min-width: 30px;
    padding: 0.3rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hp-editor__toolbar button:hover:not(:disabled) {
    border-color: #14b8a6;
    color: #0f766e;
}

.hp-editor__toolbar button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hp-editor textarea {
    width: 100%;
    min-height: 160px;
    padding: 0.85rem;
    border: 0;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.8rem;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

.hp-editor textarea:focus {
    outline: none;
}

.hp-editor textarea:disabled {
    background: #f8fafc;
    color: #64748b;
}

.hp-video {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hp-video__preview {
    width: 100%;
    max-height: 320px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #0f172a;
}

/* ============ ACTIONS ============ */
.hp-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.25rem 0 0;
}

.hp-actions--split {
    justify-content: space-between;
}

/* ============ RESPONSIVE ============ */
@media (min-width: 640px) {
    .hp-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hp-photo-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .hp-photo {
        flex: 0 0 200px;
    }

    .hp-photo__image {
        height: 200px;
    }

    .hp-skill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hp-sidebar {
        display: flex;
    }

    .hp-main {
        width: calc(100% - 260px);
        margin-left: 260px;
    }

    .hp-content {
        padding: 2rem 2rem 3rem;
    }

    .hp-page-head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding: 1.5rem;
    }

    .hp-card {
        padding: 1.5rem;
    }
}

/* ============ CONFIRMATION DIALOG ============ */
.hp-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000000002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
}

.hp-dialog {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    max-width: 26rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

.hp-dialog h3 {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
}

.hp-dialog p {
    margin: 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.hp-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding-top: 0.35rem;
}