/* =========================================================
   ROOT & GLOBAL
========================================================= */

:root {
    --primary-rgb: 188,120,130;
    --primary: #bc7882;
    --primary-light: #e7c3c9;
    --primary-lighter: #f5e6e9;
    --accent: #d9a5ad;
    --text-dark: #5a3a3f;
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, #eef6fb 0%, #f9fbfd 48%, #eef8f5 100%);
}

[class*="col-"] {
    padding-inline: 4px !important;
}

.pointer {
    cursor: pointer;
}

/* =========================================================
   PAGE LAYOUT
========================================================= */

.page-shell {
    display: flex;
    justify-content: center;
    padding: 14px 18px 18px;
}

.page-content,
main {
    width: 100%;
    background: rgba(255,255,255,.96);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(38,56,73,.12);
}

.page-content {
    max-width: 1500px;
    padding: 16px;
    min-height: calc(100vh - 90px);
}

main {
    padding: 14px;
}

.form-wrapper {
    max-width: 1450px;
    margin: auto;
}

.csr-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    /*    background: linear-gradient(90deg, rgba(248,252,255,.94), rgba(246,252,249,.82)), repeating-linear-gradient(135deg, rgba(var(--primary-rgb),.045) 0 1px, transparent 1px 22px);
*/

    background: linear-gradient( 90deg, rgba(255,245,248,.95), rgba(255,238,244,.88) ), repeating-linear-gradient( 135deg, rgba(220,53,69,.05) 0 1px, transparent 1px 22px );
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    background: rgba(var(--primary-rgb), .9);
    backdrop-filter: blur(8px);
    padding: 4px 0;
}

    .navbar .container-fluid {
        overflow: hidden;
    }

.navbar-brand,
.nav-link {
    color: #fff !important;
    font-weight: 600;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
}

.nav-link {
    font-size: .82rem;
    padding: 4px 8px !important;
}

.csr-navbar-logo {
    height: 36px;
    object-fit: contain;
}

/* =========================================================
   HERO SECTION
========================================================= */

.csr-hero {
    background: linear-gradient(rgba(var(--primary-rgb),.68), rgba(var(--primary-rgb),.68)), url('/NewFolder/Children.jpg') center/cover no-repeat;
    border-radius: 14px;
    padding: 20px !important;
}

.csr-hero-logo {
    height: 90px;
}

/* =========================================================
   FORM ELEMENTS
========================================================= */

.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--primary);
}

.form-card {
    background: #fff;
    padding: 10px 12px;
    border: 1px solid #e5edf5;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(38,56,73,.06);
    transition: .25s ease;
}

    .form-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0,0,0,.09);
    }

.form-label {
    margin-bottom: 2px;
    font-size: .74rem;
    font-weight: 600;
}

.form-control,
.form-select {
    min-height: 32px;
    padding: 4px 8px;
    border: 1.4px solid #b8c6d1;
    border-radius: 4px;
    font-size: .76rem;
}

    .form-control:focus,
    .form-select:focus,
    .csr-dropdown .dropdown-toggle:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(var(--primary-rgb), .12);
    }

textarea.form-control {
    min-height: 70px;
    resize: vertical;
}

select option {
    max-width: 400px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   LOGIN PANEL
========================================================= */

#agencyLoginDiv {
    background: #fff;
    border: 1px solid #dce8f3;
    border-radius: 14px;
    padding: 18px 16px 14px;
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
    margin: 8px 0 10px;
}

    #agencyLoginDiv .agency-login-title {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
    }

    #agencyLoginDiv .form-control {
        height: 44px;
        padding-left: 12px;
        border-radius: 8px;
    }

.login-btn,
.register-btn {
    height: 44px;
    border-radius: 8px;
    font-weight: 700;
}

.login-btn {
    min-width: 120px;
}

.register-btn {
    padding-inline: 18px;
}

.forgot-link {
    display: inline-block;
    margin-top: 6px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

/* =========================================================
   TABLE / CHECKBOX
========================================================= */

.csr-table th {
    padding: 4px 6px;
    background: var(--primary-lighter);
    font-size: .72rem;
}

.csr-table td {
    padding: 4px 6px;
    font-size: .74rem;
}

.gender-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
}

.form-check-input {
    width: 15px;
    height: 15px;
    border: 1px solid #000;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary,
.csr-apply-btn {
    border: none;
    color: #fff;
    font-weight: 600;
    transition: .25s ease;
}

.btn-primary {
    min-height: 42px;
    padding: 9px 22px;
    border-radius: 6px;
    background: linear-gradient(135deg,var(--primary),var(--accent));
}

.csr-apply-btn {
    padding: 14px 34px;
    border-radius: 14px;
    background: linear-gradient(135deg,#0d6efd,#0b3d91);
}

    .btn-primary:hover,
    .csr-apply-btn:hover {
        transform: translateY(-2px);
    }

.fixed-save-btn {
    position: fixed;
    top: 80px;
    right: 18px;
    z-index: 1050;
}

/* =========================================================
   FOCUS AREA CARDS
========================================================= */

.csr-area-card,
.csr-illustration-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #e1ebf4;
    transition: .25s ease;
}

.csr-area-card {
    cursor: pointer;
}

    .csr-area-card:hover,
    .csr-doc-card:hover {
        transform: translateY(-3px);
    }

    .csr-area-card img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

.csr-illustration-card {
    padding: 12px;
}

    .csr-illustration-card img {
        width: auto;
        height: 60px;
        object-fit: contain;
        margin-bottom: 8px;
        transition: transform .35s ease, filter .35s ease;
    }

    .csr-illustration-card:hover img {
        animation: csrFocusIconHover .65s ease;
        filter: drop-shadow(0 8px 12px rgba(63,110,168,.18));
        transform: translateY(-4px) scale(1.08);
    }

@keyframes csrFocusIconHover {
    0% {
        transform: translateY(0) scale(1);
    }

    45% {
        transform: translateY(-7px) scale(1.1);
    }

    100% {
        transform: translateY(-4px) scale(1.08);
    }
}

/* =========================================================
   PROJECT SLIDER
========================================================= */

.csr-slider {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.csr-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: scrollSlider 10s linear infinite;
}

.csr-slider:hover .csr-track {
    animation-play-state: paused;
}

.csr-project-card {
    width: 420px;
    flex-shrink: 0;
}

.csr-project-img {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.csr-project-img img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    transition: transform .45s ease;
}

.csr-project-img:hover img {
    transform: scale(1.08);
}

.csr-project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #fff;
    opacity: 0;
    transition: .35s ease;
    background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.3), transparent);
}

.csr-project-img:hover .csr-project-overlay {
    opacity: 1;
}

.csr-project-overlay h5 {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 700;
}

.csr-project-overlay p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes scrollSlider {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-442px * 4));
    }
}

/* =========================================================
   DOCUMENT / RESOURCE CARDS
========================================================= */

.csr-doc-card,
.csr-area-row {
    display: flex;
    align-items: center;
    transition: .25s ease;
}

.csr-doc-card {
    flex-direction: column;
    justify-content: center;
    height: 90px;
    padding: 12px;
    border-radius: 8px;
    background: var(--primary-lighter);
    text-decoration: none;
    color: var(--text-dark);
}

    .csr-doc-card i {
        margin-bottom: 6px;
        font-size: 20px;
        color: var(--primary);
    }

.csr-area-row {
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--primary-lighter);
}

    .csr-area-row:hover,
    .csr-doc-card:hover {
        background: var(--primary-light);
    }

/* =========================================================
   DROPDOWN
========================================================= */

.csr-dropdown .dropdown-toggle {
    padding: 4px 8px;
    border: 1.4px solid #b8c6d1;
    border-radius: 4px;
    font-size: .76rem;
    background: #fff;
}

.csr-dropdown-menu {
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}

    .csr-dropdown-menu .dropdown-item {
        padding: 5px 8px;
        border-radius: 4px;
        font-size: .74rem;
        white-space: normal;
    }

        .csr-dropdown-menu .dropdown-item:hover {
            background: var(--primary-lighter);
        }

/* =========================================================
   SUMMARY
========================================================= */

.registered-agency-summary {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr 1fr 2fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    background: rgba(255,255,255,.74);
}

.summary-label {
    display: block;
    margin-bottom: 2px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #7f5960;
}

/* =========================================================
   DOCUMENT PAGE
========================================================= */

.csr-doc-hero {
    position: relative;
    padding: 42px 0;
    background: linear-gradient(135deg,#4f8df7,#6ea8fe);
}

.csr-badge,
.csr-mini-stat {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.15);
}

.csr-badge {
    padding: 10px 20px;
    border-radius: 40px;
}

.csr-mini-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 14px;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
}

    .hero-circle.one {
        width: 180px;
        height: 180px;
        top: -40px;
        right: -50px;
    }

    .hero-circle.two {
        width: 120px;
        height: 120px;
        bottom: 40px;
        left: -30px;
    }

    .hero-circle.three {
        width: 70px;
        height: 70px;
        bottom: 120px;
        right: 20%;
    }

.csr-info-banner,
.csr-ready-box,
.csr-doc-card-main {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.csr-info-banner {
    padding: 22px;
    border-left: 5px solid #0d6efd;
}

.csr-doc-card-main {
    overflow: hidden;
    transition: .35s ease;
}

    .csr-doc-card-main:hover {
        transform: translateY(-8px);
    }

.csr-doc-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    color: #fff;
}

    .csr-doc-header.organizational {
        background: linear-gradient(135deg,#0d6efd,#4e8cff);
    }

    .csr-doc-header.financial {
        background: linear-gradient(135deg,#198754,#33b56f);
    }

    .csr-doc-header.project {
        background: linear-gradient(135deg,#fd7e14,#ffae57);
    }

    .csr-doc-header.other {
        background: linear-gradient(135deg,#6f42c1,#9b6cff);
    }

.csr-doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 18px;
    font-size: 28px;
    background: rgba(255,255,255,.18);
}

.csr-doc-body {
    padding: 14px 18px;
}

.csr-check-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 14px;
}

    .csr-check-item:last-child {
        border: none;
    }

.csr-ready-box {
    padding: 28px;
}
/* MAIN AGENCY APPLICATION */
.proposal-main-card {
    border-left: 6px solid var(--primary);
    background: #f7fbff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

    .proposal-main-card h4 {
        color: var(--primary);
    }

    .proposal-main-card .form-label {
        color: #304d6f;
    }

/* BRANCH HEAD */
.branch-head-card {
    border-left: 6px solid #0d6efd;
    background: #f4f8ff;
}

    .branch-head-card .section-title {
        color: #0d6efd;
    }


/* ZONAL HEAD */
.zonal-head-card {
    border-left: 6px solid #fd7e14;
    background: #fff7f0;
}

    .zonal-head-card .section-title {
        color: #fd7e14;
    }


/* CSR DIVISION */
.csr-division-card {
    border-left: 6px solid #198754;
    background: #f3fff8;
}

    .csr-division-card .section-title {
        color: #198754;
    }
/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {
    .registered-agency-summary {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 768px) {

    main,
    .csr-ready-box {
        padding: 10px;
    }

    .csr-project-card {
        width: 320px;
    }

    .csr-project-img img {
        height: 240px;
    }

    .csr-hero {
        padding: 14px !important;
    }

    .csr-hero-logo {
        height: 70px;
    }

    .csr-doc-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {

    .navbar-brand {
        font-size: .82rem;
    }

    .csr-navbar-logo {
        height: 24px;
    }

    .registered-agency-summary {
        grid-template-columns: 1fr;
    }

    .gender-group {
        flex-wrap: wrap;
    }

    .form-control,
    .form-select {
        font-size: .72rem;
    }
}
