/* Emergency topbar  CSS */
.form-topbar {
    background-color: var(--bg-main);
    padding: 4px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-dark);
}

.breadcrumb {
    color: var(--text-primary);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    margin-top: 15px;
}
.breadcrumb span {
    display: flex;
    align-items: center;
    line-height: normal;
}
.breadcrumb .active {
    color: var(--color-success);
    margin-left: 4px;
}

.btn-back-top {
    padding: 3px 7px;
    background-color: var(--bg-btn-violet);
    text-decoration: none;
    border: 1px solid #ffffff33;
    border-radius: 10px;
}
.muted-text {
    color: #64748b;
}
.notification-icon {
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
}

/* Breadcrumbs CSS End */

/* main form wrapper*/
.emergency-layout {
    min-height: 100vh;
    align-items: stretch;
}

.emergency-main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/*main form warapper*/

/*category section main step page wrapper */
.category-section {
    background: var(--bg-secondary);
    padding: 20px;
    flex: 1;
}

.step-count {
    color: var(--color-primary);
}

.step-desc {
    color: var(--text-primary);
    font-weight: 300;
}

.step-header p {
    font-size: var(--font-sm);
}

.step-header h4 {
    color: var(--text-primary);
    margin: 10px 0;
    font-weight: var(--fw-semibold);
}

/* end css for step header */

/* for required fields */
.required-star {
    color: var(--color-primary);
    margin-left: 2px;
}

/* form for select cateogry from 3 minor,adult,rape victim form  */
.category-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    flex: 1;
    background: var(--bg-nuteral);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.category-card:hover {
    border-color: var(--border-strong);
}

.category-card input {
    display: none;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* check icon */
.check-icon .check {
    display: none;
    color: var(--color-success);
}

.check-icon .uncheck {
    display: inline;
    color: var(--text-secondary);
}

/* when selected */
.category-card:has(input:checked) .check {
    display: inline;
}

.category-card:has(input:checked) .uncheck {
    display: none;
}

/* title */
.category-card h4 {
    margin: 10px 0;
    font-size: var(--font-xl);
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
}

/* desc */
.category-card p {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

/* ACTIVE STATE */
.category-card:has(input:checked) h4 {
    color: var(--input-checked);
}

.category-card:has(input:checked) p {
    color: var(--input-checked);
}

/* active card */
.category-card:has(input:checked) {
    background: #d1fae5;
    border-color: var(--input-checked);
}

/*category form section end*/

/* buttons */
.btn-add {
    background: #01524e;
    color: #34d399;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s ease;
}

.btn-add:hover {
    opacity: 0.9;
}

/* buttons */
.btn-back {
    padding: 6px 12px;

    text-decoration: none;
    border: 1px solid #ffffff33;
}

.btn-next {
    padding: 6px 14px;

    text-decoration: none;
}

/*buttons */

/* child from row */
.form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
}

/* mobile fix */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }
}

/*child form*/
.dynamic-list {
    margin-top: 40px;
    background: var(--border-dark);
    /* darker outer */
    border-radius: 12px;
    padding: 0;
}

/* HEADER */
.card-header-custom {
    background: var(--bg-main);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    border-radius: 12px 12px 0 0;
}

/* BODY */
.card-body-custom {
    padding: 20px;
}

/* INPUT ROW */
.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}
.phone-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--input-bg);
}

.phone-dropdown {
    border: none;
    padding: 10px 8px;
    background: var(--bg-medium);
    color: var(--text-primary);
    outline: none;
    border-right: 1px solid var(--input-border);
    width: auto;
    max-width: 85px;
    flex: 0 0 auto;
}

.phone-field {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.welcome-kit-card {
    border: 1px solid var(--color-success);
    border-radius: 10px;
    padding: 16px 20px;
    background: transparent;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    height: 100%;
}

/* heading */
.welcome-kit-card h5 {
    color: var(--color-success);
    font-size: var(--font-sm);
    font-weight: var(--fw-medium);
    margin-bottom: 6px;
}

/* text */
.welcome-kit-card p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: var(--fw-regular);
    letter-spacing: 0.5px;
}

/* ACTION BUTTONS */

.icon-btn {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

/* SUCCESS */
.btn-success-custom {
    background: #059669;
    color: #fff;
}

/* LIST BOX */
.list-box {
    background: #334155;
    border-radius: 10px;
    padding: 12px;
}

/* HEADER ROW */
.list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-strong);
    font-size: 12px;
    color: var(--text-secondary);
}

/* DATA ROW */
.list-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px 0;
    color: #e2e8f0;
}

/* MOBILE */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
    }

    .action-icons {
        justify-content: flex-end;
        width: 100%;
    }

    .list-header,
    .list-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* progress footer */
.progress-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #0b132b;
    border-top: 1px solid var(--border-dark);
    margin-top: auto;
}
.progress-footer-vca {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px;
    background: #0b132b;
    border-top: 1px solid var(--border-dark);
    margin-top: auto;
}


/* RIGHT SIDE BUTTON BOX */
.progress-actions {
    display: flex;
    gap: 10px;

    padding: 6px;
}

.progress-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.step-text {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
}

/*progress footer */

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    /* makes icon white */
    cursor: pointer;
}

/*leagal document page */
/* ===== NEW: card wrapper (used in this page) ===== */
.custom-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-medium);
}

/* ===== RADIO GROUP ===== */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/*===== RADIO CARD ===== */
.radio-card {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;

    background: var(--input-bg);
    border: 1px solid var(--border-light);
    color: #e2e8f0;

    transition: 0.2s ease;
}

.radio-card input {
    accent-color: var(--input-focus);
}

.radio-card:hover {
    border-color: var(--border-strong);
}

.radio-card:has(input:checked) {
    background: #1f2937;
    border-color: var(--form-select-input);
}

/* re trafficked */

.header-right {
    color: var(--text-muted);
}
/*
#re_trafficked_section,
#past_accused_section {
    display: none;
}
*/
/* ===== SECTION LABEL ===== */
.section-label {
    display: block;
    font-size: var(--font-sm);
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* belongingss form */
.gold-available {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* safe -shelter */
.input-style.auto-fill {
    background: var(--color-success-100);
    color: var(--color-success-600);
}
.input-style.input-style.auto-fill::placeholder {
    opacity: 1; /* important for Firefox */
    color: var(--color-success-600);
}

.hidden {
    display: none;
}

.em-sidebar {
    margin-bottom: 10px;
}

.em-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 400;
}

.em-gap {
    gap: 64px;
}
.sidebar.em-collapsed {
    width: 100px;
    border: none;
}
.sidebar.em-collapsed .em-sidebar,
.sidebar.em-collapsed .sidebar-section-title,
.sidebar.em-collapsed .sidebar-menu,
.sidebar.em-collapsed .sidebar-bottom,
.sidebar.em-collapsed .dashboard-logo {
    display: none;
}
.sidebar-toggle {
    display: block;
}
.sidebar.em-collapsed .em-gap {
    gap: 8px;
}
