/*
 * asec.css — ASEC custom styles layered on top of the existing app's style.css
 * Uses the same primary color (#009efb), Rubik font, and Bootstrap 4 grid.
 */

/* ── Page head row ───────────────────────────────────── */
.pg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.pg-head h1,
.pg-head-sub h1 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}
.pg-head-sub {
    margin-bottom: 20px;
}

/* ── Breadcrumb ──────────────────────────────────────── */
.breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 18px;
}
.breadcrumb-bar a       { color: #009efb; text-decoration: none; }
.breadcrumb-bar .sep    { color: #ccc; }
.breadcrumb-bar .active { color: #555; }

/* ── Progress steps (enrollment pipeline) ────────────── */
.pipeline-steps {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.pipeline-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
}
.pipeline-step.active { color: #009efb; font-weight: 500; }
.pipeline-step.done   { color: #55ce63; }
.pipeline-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #eee;
    color: #aaa;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600;
    flex-shrink: 0;
}
.pipeline-step.active .pipeline-num { background: #009efb; color: #fff; }
.pipeline-step.done   .pipeline-num { background: #55ce63; color: #fff; }
.pipeline-line {
    flex: 1; min-width: 20px;
    height: 1px;
    background: #e0e0e0;
    margin: 0 4px;
}

/* ── Card header accent ──────────────────────────────── */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-header .header-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: #e6f7ff;
    color: #009efb;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.card-header .badge-req {
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    background: #fff1f0;
    color: #f62d51;
    border: 1px solid #ffa39e;
    border-radius: 10px;
    padding: 1px 8px;
}
.card-header .badge-opt {
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    background: #f5f5f5;
    color: #aaa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1px 8px;
}

/* ── Form label ──────────────────────────────────────── */
label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}
label .req { color: #f62d51; margin-left: 2px; }
label .hint {
    font-size: 11px;
    font-weight: 400;
    color: #aaa;
    margin-left: 4px;
}

/* ── Radio pills ─────────────────────────────────────── */
.radio-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 3px;
}
.radio-pill-group input[type="radio"] { display: none; }
.radio-pill-group label {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
}
.radio-pill-group input[type="radio"]:checked + label {
    background: #e6f7ff;
    border-color: #009efb;
    color: #0073b7;
    font-weight: 500;
}

/* ── Age auto display ────────────────────────────────── */
.age-badge {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: #0073b7;
    min-width: 80px;
}

/* ── Field error ─────────────────────────────────────── */
.field-error {
    display: none;
    font-size: 12px;
    color: #f62d51;
    margin-top: 3px;
}
.field-error.show { display: block; }
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #f62d51 !important;
}

/* ── Submit buttons ──────────────────────────────────── */
.btn-green {
    background-color: #55ce63;
    border: 1px solid #4ab657;
    color: #fff;
    padding: 7px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-green:hover { background-color: #4ab657; color: #fff; }

.btn-gray {
    background-color: #e9ecef;
    border: 1px solid #d3d3d3;
    color: #555;
    padding: 7px 18px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.btn-gray:hover { background-color: #d3d3d3; color: #333; }

.btn-gray-sm {
    background-color: #e9ecef;
    border: 1px solid #d3d3d3;
    color: #555;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

/* ── Success card ────────────────────────────────────── */
.success-panel {
    text-align: center;
    padding: 50px 30px;
}
.success-panel .success-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #f6ffed;
    border: 2px solid #b7eb8f;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #52c41a;
}
.success-panel h4 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.success-panel p {
    color: #888;
    font-size: 14px;
    max-width: 420px;
    margin: 0 auto 20px;
    line-height: 1.7;
}
.ref-badge {
    display: inline-block;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #0073b7;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 576px) {
    .radio-pill-group { gap: 5px; }
    .radio-pill-group label { padding: 4px 10px; font-size: 12px; }
}
