/* =========================================================
   CSP REGISTER HEADER
========================================================= */

.csp-top-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    padding: 10px 0;

    position: relative;
    z-index: 1000;
}

/* =========================================================
   LOGO LINKS
========================================================= */

.header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* =========================================================
   LOGO IMAGES
========================================================= */

.csp-top-header img {
    object-fit: contain;
    transition: all 0.3s ease;
}

/* MeitY */

.meity-logo {
    max-height: 52px;
}

/* IndiaAI */

.indiaai-logo {
    max-height: 60px;
}

/* Digital India */

.digital-logo {
    max-height: 52px;
}

/* =========================================================
   HOVER EFFECT
========================================================= */

.header-logo:hover img {
    transform: scale(1.02);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .csp-top-header {
        padding: 8px 0;
    }

    .meity-logo {
        max-height: 38px;
    }

    .indiaai-logo {
        max-height: 42px;
    }

    .digital-logo {
        max-height: 36px;
    }
}

@media (max-width: 576px) {

    .csp-top-header .row {
        row-gap: 10px;
    }

    .csp-top-header .col-4 {
        text-align: center !important;
    }

    .header-logo {
        justify-content: center;
        width: 100%;
    }

    .meity-logo {
        max-height: 32px;
    }

    .indiaai-logo {
        max-height: 36px;
    }

    .digital-logo {
        max-height: 30px;
    }
}













/* =========================================================
   CSP REGISTRATION FORM + TRACK MODAL
   COMPLETE FINAL CSS
========================================================= */

/* =========================================================
   PAGE
========================================================= */

body {
    background: #f4f7fb;
    font-family: "Inter", sans-serif;
    color: #0f172a;
}

/* =========================================================
   MODAL FIXES
========================================================= */

.modal {
    z-index: 1055;
}

.modal-dialog {
    max-width: 1180px;
}

.modal-content {
    border: none !important;
    border-radius: 32px !important;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.18);
}

.modal-backdrop.show {
    opacity: 0.55;
}

/* =========================================================
   CSP TRACK MODAL
========================================================= */

#cspTrackModal .modal-body {
    padding: 60px 50px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* =========================================================
   MODAL HEADER
========================================================= */

#cspTrackModal h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.2;
}

#cspTrackModal .text-muted {
    color: #64748b !important;
    font-size: 1.05rem;
    max-width: 700px;
    margin: auto;
    line-height: 1.7;
}

/* =========================================================
   TRACK GRID
========================================================= */

#cspTrackModal .row.g-4 {
    margin-top: 20px;
}

/* =========================================================
   TRACK LINK
========================================================= */

.track-select {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    height: 100%;
}

.track-select:hover,
.track-select:focus,
.track-select:active {
    text-decoration: none !important;
    color: inherit !important;
}

/* =========================================================
   TRACK CARD
========================================================= */

.track-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;

    padding: 42px 32px;

    min-height: 360px;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    text-align: left;

    position: relative;
    overflow: hidden;

    transition: all 0.35s ease;
}

.track-card:hover {
    transform: translateY(-8px);
    border-color: #2563eb;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
}

/* =========================================================
   TOP BORDER ANIMATION
========================================================= */

.track-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(90deg, #0047ab, #2563eb);

    transform: scaleX(0);
    transform-origin: left center;

    transition: transform 0.35s ease;
}

.track-card:hover::before {
    transform: scaleX(1);
}

/* =========================================================
   ICON
========================================================= */

.track-icon {
    width: 82px;
    height: 82px;

    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;

    margin-bottom: 28px;

    transition: all 0.35s ease;
}

.track-icon i {
    line-height: 1;
}

/* =========================================================
   ICON COLORS
========================================================= */

.indiaai-icon {
    background: #dbeafe;
    color: #2563eb;
}

.meity-icon {
    background: #fef3c7;
    color: #d97706;
}

.newreg-icon {
    background: #e2e8f0;
    color: #64748b;
}

/* =========================================================
   CARD HOVER ICON
========================================================= */

.track-card:hover .track-icon {
    transform: scale(1.08);
}

/* =========================================================
   TRACK TITLE
========================================================= */

.track-card h4 {
    margin: 0 0 16px;

    font-size: 2rem;
    font-weight: 750;

    color: #0f172a !important;

    line-height: 1.3;
}

/* =========================================================
   TRACK DESCRIPTION
========================================================= */

.track-card p {
    margin: 0 0 34px;

    color: #64748b !important;

    font-size: 16px;
    line-height: 1.8;

    flex-grow: 1;
}

/* =========================================================
   TRACK LINK
========================================================= */

.track-link {
    margin-top: auto;

    font-size: 16px;
    font-weight: 700;

    color: #2563eb !important;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    transition: all 0.3s ease;
}

.track-card:hover .track-link {
    transform: translateX(5px);
}

/* =========================================================
   CSP REGISTRATION CARD
========================================================= */

.csp-registration-card {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   HEADER
========================================================= */

.csp-header {
    background: linear-gradient(135deg, #0047ab, #2563eb);

    padding: 34px 38px;

    color: #ffffff;
}

.csp-header h2 {
    margin: 0;

    font-size: 2rem;
    font-weight: 750;

    color: #ffffff;
}

.csp-header p {
    margin-top: 6px;
    margin-bottom: 0;

    font-size: 15px;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.88);
}

.csp-header-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.15);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.7rem;
}

/* =========================================================
   FORM STEP
========================================================= */

.form-step {
    animation: fadeSlide 0.35s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   PROGRESS BAR
========================================================= */

.multi-step-progress {
    height: 10px;
    border-radius: 50px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #0047ab, #2563eb);
    transition: width 0.35s ease;
}

/* =========================================================
   STEP INDICATORS
========================================================= */

.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin: 30px 0 40px;

    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* CONNECTOR LINE */

.step-item::after {
    content: "";

    position: absolute;

    top: 20px;
    left: 50%;

    width: 100%;
    height: 3px;

    background: #dbe2ea;

    z-index: -1;
}

.step-item:last-child::after {
    display: none;
}

/* COMPLETED CONNECTOR */

.step-item.completed::after {
    background: #198754;
}

/* STEP CIRCLE */

.step-circle {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: #e2e8f0;
    color: #64748b;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;

    font-weight: 700;
    font-size: 15px;

    transition: all 0.3s ease;
}

/* ACTIVE STEP */

.step-item.active .step-circle {
    background: #0047ab;
    color: #ffffff;

    transform: scale(1.08);

    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.25);
}

/* COMPLETED STEP */

.step-item.completed .step-circle {
    background: #198754;
    color: #ffffff;
}

.step-item span {
    display: block;

    margin-top: 4px;

    font-size: 14px;
    font-weight: 600;

    color: #475569;
}

/* =========================================================
   SECTION TITLE
========================================================= */

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 1.15rem;
    font-weight: 700;

    color: #0f172a;

    background: linear-gradient(135deg, #eef4ff, #f8fbff);

    border: 1px solid #dbeafe;

    padding: 14px 18px;

    border-radius: 14px;

    margin-bottom: 25px;

    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.06);
}

.form-section-title i {
    color: #0047ab;
    font-size: 1.2rem;
}

/* =========================================================
   CATEGORY TITLE
========================================================= */

.upload-category-title {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 1rem;
    font-weight: 700;

    color: #1e293b;

    background: #f8fafc;

    border-left: 5px solid #0047ab;

    padding: 12px 16px;

    border-radius: 10px;

    margin-bottom: 20px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.upload-category-title i {
    color: #0047ab;
    font-size: 1rem;
}

/* =========================================================
   UPLOAD BOX
========================================================= */

.upload-category-title+.row {
    background: #fcfdff;

    border: 1px solid #edf2f7;

    padding: 22px;

    border-radius: 18px;

    transition: 0.25s ease;
}

.upload-category-title+.row:hover {
    border-color: #dbeafe;

    box-shadow: 0 8px 24px rgba(0, 71, 171, 0.06);
}

/* =========================================================
   LABEL
========================================================= */

.form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

/* =========================================================
   INPUT
========================================================= */

.custom-input {
    border-radius: 12px;
    border: 1px solid #dbe2ea;

    min-height: 48px;

    padding: 10px 14px;

    transition: all 0.25s ease;

    background: #ffffff;
}

.custom-input:focus {
    border-color: #0047ab;
    box-shadow: 0 0 0 0.15rem rgba(0, 71, 171, 0.12);
}

/* TEXTAREA */

textarea.custom-input {
    min-height: 110px;
    resize: vertical;
}

/* =========================================================
   FILE INPUT
========================================================= */

input[type="file"].custom-input {
    padding: 10px 14px;
    background: #f8fafc;
}

input[type="file"].custom-input::file-selector-button {
    border: none;

    background: #0047ab;
    color: #ffffff;

    padding: 8px 14px;

    border-radius: 8px;

    margin-right: 12px;

    cursor: pointer;

    transition: 0.3s ease;
}

input[type="file"].custom-input::file-selector-button:hover {
    background: #003b8f;
}

/* =========================================================
   VERIFICATION BOX
========================================================= */

.verification-box {
    margin-top: 10px;

    background: #ecfdf3;

    border: 1px solid #bbf7d0;

    color: #15803d;

    border-radius: 10px;

    padding: 10px 14px;

    font-size: 0.9rem;

    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn-primary {
    background: #0047ab;
    border-color: #0047ab;

    border-radius: 12px;

    font-weight: 600;

    padding-top: 10px;
    padding-bottom: 10px;
}

.btn-primary:hover {
    background: #003b8f;
    border-color: #003b8f;
}

.btn-light,
.btn-success {
    border-radius: 12px;

    font-weight: 600;

    padding-top: 10px;
    padding-bottom: 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    #cspTrackModal .modal-body {
        padding: 45px 28px;
    }

    #cspTrackModal h2 {
        font-size: 2.4rem;
    }

    .track-card {
        min-height: auto;
    }
}

@media (max-width: 768px) {

    #cspTrackModal .modal-body {
        padding: 35px 20px;
    }

    #cspTrackModal h2 {
        font-size: 2rem;
    }

    .track-card {
        padding: 28px 22px;
        align-items: center;
        text-align: center;
    }

    .track-card h4 {
        font-size: 1.5rem;
    }

    .track-card p {
        font-size: 14px;
    }

    .csp-header {
        padding: 24px 20px;
    }

    .csp-header h2 {
        font-size: 1.5rem;
    }

    .form-section-title {
        font-size: 1rem;
    }

    .upload-category-title {
        font-size: 0.95rem;
    }

    .step-item span {
        font-size: 12px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .upload-category-title+.row {
        padding: 16px;
    }
}

.footer .copyright {
    text-align: center;
    color: #012970;
}

.footer .credits {
    padding-top: 5px;
    text-align: center;
    font-size: 13px;
    color: #012970;
}



/* validations---------------------- */
.error-text {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

/* =========================================
   FIX SELECT VALIDATION ICON ISSUE
========================================= */

select.is-invalid {
    background-image: none !important;
    padding-right: 14px !important;
}

select.form-select.is-invalid {
    background-image: none !important;
}

/* optional better red border */
select.is-invalid {
    border-color: #dc3545 !important;
}