@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&family=Poppins:wght@500&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
}

/* Remove the global * selector that was overriding Font Awesome */
/* Rest of existing styles */
body, html {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Add specific font for text elements */
p, h1, h2, h3, h4, h5, h6, span, div:not(.fa), input, button, select, textarea {
    font-family: 'Poppins', sans-serif;
}

/* Ensure Font Awesome icons are not affected */
.fa {
    font-family: 'FontAwesome' !important;
}

/* width */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}
.table-responsive::webkit-scrollbar {
    height: 8px;
}
label {
    font-size: 13px;
    color: #625f65;
    margin-bottom: 5px;
}
input,input::placeholder {
    font-size: .84rem!important
}
.main {
    height: 100vh;
    padding-top: 56px;
}
.main-container {
    max-width: max-content;
    margin: 0 auto;
    height: 100%;
    padding: 50px;
}
.form-area {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}
.branding {
    width: 100%;
}
.img-section .bg-image {
    width: 100%;
}
.main-container .bg-image {
    max-width: 100%;
    max-height: 100vh;
    min-width: 100%;
    min-height: 100vh;
    object-fit: cover;
}
.main-heading {
    font-size: 1.4em;
    font-weight: 500;
    line-height: 1.2em;
}
.form-control.custom {
    height: 50px;
    border-radius: 5px;
    border: 1px solid #d2d2d2;
    background-color: none;
    display: flex;
    align-items: center;
    font-size: 16px;
    padding: 12px 15px;
}
.input {
    outline: none;
    text-align: center;
    /*Hide number field arrows*/
    -moz-appearance: textfield;
  }
  input[type="number"]::-webkit-outer-spin-button,
  input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.login-btn {
    height: 50px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0px 0px 0px rgba(0,0,0,0.3);
    fill: #FFFFFF;
    color: #FFFFFF;
    background-color: #F47852;
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: #F47852;
    border-radius: 50px 50px 50px 50px;
}
.verification input {
    width: 30px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #d2d2d2;
    line-height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 200;
    margin: 0 2px;
}

/* OTP Input Styles */
.input.otp-input {
    width: 45px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #d2d2d2;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin: 0 4px;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.input.otp-input:focus {
    border-color: #F47852;
    box-shadow: 0 0 0 2px rgba(244, 120, 82, 0.2);
}

.input.otp-input::-webkit-outer-spin-button,
.input.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input.otp-input[type="number"] {
    -moz-appearance: textfield;
}

.splitter {
    padding: 0 5px;
    color: #F47852;
    font-size: 24px;
}
.info-text {
    font-size: 13px;
    color: #F47852;
}
/* Dashboard */
.topbar {
    background: #2d235a;
    height: 56px;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topbar .container-fluid {
    height: 100%;
}

.topbar .nav-link {
    color: #fff;
    padding: 8px 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    transition: all 0.2s ease;
}

.topbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.topbar .dropdown-toggle::after {
    margin-left: 8px;
}

.topbar .dropdown-menu {
    margin-top: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
}

.topbar .dropdown-item {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d235a;
    font-weight: 500;
    transition: all 0.2s ease;
}

.topbar .dropdown-item:hover {
    background: rgba(45, 35, 90, 0.05);
}

.main {
    padding-top: 56px;
}

@media (max-width: 768px) {
    .topbar {
        height: 48px;
    }
    .topbar .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    .main {
        padding-top: 48px;
    }
}

.header .branding {
    width: 40%;
}
.navbar-expand-lg .navbar-collapse {
    justify-content: flex-end;
}
.navbar-nav {
    align-items: center;
}
.nav-link {
    color: #000000;
}
.nav-link.active, .nav-link:hover {
    color: #F47852;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.logout-btn {
    background-color: #F47852;
    border: 1px solid #F47852;
    color: #FFFFFF !important;
    border-radius: 8px;
}
.logout-btn img {
    width: 25%;
}
.nav-link.logout-btn:hover {
    /* background-color: transparent;
    border: 1px solid #F47852; */
    color: #FFFFFF;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.recent-intakes {
    padding: 20px;
}
.new-intakes {
    height: 100%;
    /* background-color: transparent;
    background-image: linear-gradient(180deg, #FFFFFF 20%, #F2F2F2 100%); */
    padding-top: 3rem;
}
/* Step Form Css */
.fields-area {
    width: 100%;
    height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
}
/* .fields-area::-webkit-scrollbar {
    display: none;
} */
.step-container {
    position: relative;
    text-align: center;
    transform: translateY(-43%);
    display: flex;
    justify-content: space-between;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #F47852;
    color: #F47852;
    line-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    cursor: pointer;
}
.progress-bar {
    background-color: rgba(244,118,76,1) !important;
}
#multi-step-form{
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    margin: 0 auto;
}
.form-label {
    color: #F47852;
}
.p-label {
    font-size: 13px;
    color: #F47852;
}
.form-check-input:checked {
    background-color: #F47852 !important;
    border-color: #F47852 !important;
}
.highlight-error {
    border-color: red !important;
}
#PDFOtherInput {
    display: none;
}
#BBAOtherInput {
    display: none;
}
.next-step, .prev-step, .save-progress, .go-to-dashboard {
    width: auto;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    padding: 10px 42px 10px 42px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0px 0px 0px rgba(0,0,0,0.3);
    margin: 10px;
    margin-left: 0;
    margin-right: 20px;
    vertical-align: middle;
}
.next-step, .prev-step, .go-to-dashboard {
    background: rgba(244,118,76,1);
    border: 1px solid rgba(244,118,76,1);
    color: #fff;
}
.save-progress {
    background: transparent;
    border: 1px solid rgba(244,118,76,1);
    color: rgba(244,118,76,1);
}
.step-form-btns {
    display: flex;
    justify-content: center;
    align-items: center;
}
@media screen and (max-width: 900px) {
    .topbar p {
        font-size: 12px;
        text-align: left;
    }
    .header .branding {
        width: 50%;
    }
    .for-mobile {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .fields-area {
        height: 340px !important;
    }
    .next-step, .prev-step, .save-progress ,.go-to-dashboard {
        padding: 10px 20px 10px 20px !important;
    }
    .input.otp-input {
        width: 40px;
        height: 45px;
        font-size: 18px;
        margin: 0 3px;
    }
}
@media screen and (max-width: 600px) {
    .logout-btn {
        padding: 5px 10px !important;
    }
    .img-section .bg-image {
        display: none;
    }
    .topbar p {
        font-size: 12px;
        text-align: center;
    }
    .navbar-nav {
        align-items: flex-start;
    }
    .for-mobile {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #multi-step-form {
        width: 90%;
        margin: 0 10px 0 auto;
    }
    .fields-area {
        height: 350px !important;
        margin-bottom: 10px;
    }
    .main-form-title {
        font-size: 20px;
    }
    .step-container, .progress {
        display: none !important;
    }
    .next-step, .prev-step, .save-progress, .go-to-dashboard {
        padding: 10px 10px 10px 10px !important;
        font-size: 12px !important;
        margin-right: 6px !important;
    }
    .input.otp-input {
        width: 35px;
        height: 40px;
        font-size: 16px;
        margin: 0 2px;
    }
}
/*.CensusEnrollment{*/
/*    display: none;*/
/*}*/

/* Navbar Dropdown Styling */
.navbar .nav-item.dropdown {
    position: relative;
}

.navbar .nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d235a;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .nav-link.dropdown-toggle:hover {
    background: rgba(45, 35, 90, 0.05);
}

.navbar .dropdown-menu {
    padding: 8px 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    min-width: 200px;
    margin-top: 8px;
}

.navbar .dropdown-item {
    padding: 8px 20px;
    color: #2d235a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.navbar .dropdown-item i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.navbar .dropdown-item:hover {
    background: rgba(45, 35, 90, 0.05);
    color: #2d235a;
}

.navbar .dropdown-divider {
    margin: 8px 0;
    border-color: rgba(0, 0, 0, 0.05);
}

/* Navbar Styling */
.navbar {
    background: #2d235a;
    height: 70px;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.branding-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.navbar .nav-link {
    color: #fff !important;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 15px;
}

.navbar .dropdown-toggle::after {
    margin-left: 6px;
}

.navbar .dropdown-menu {
    margin-top: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
}

.navbar .dropdown-item {
    padding: 8px 16px;
    color: #2d235a;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Main Content Adjustment */
.main {
    padding-top: 70px;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .navbar {
        padding: 10px 20px;
    }

    .navbar-collapse {
        background: #2d235a;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    
    .branding-logo {
        height: 35px;
    }
    
    .navbar .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .main {
        padding-top: 60px;
    }

    .navbar-collapse {
        top: 60px;
    }
}

/* Theme Colors */
:root {
    --primary: #000000;
    --primary-hover: #1a1a1a;
    --primary-light: rgba(0, 0, 0, 0.05);
    --text-dark: #000000;
    --text-light: #ffffff;
    --border-color: #000000;
}

/* Global color updates */
body {
    color: var(--text-dark);
}

/* Navbar Styling */
.navbar, .topbar {
    background: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Button Styling */
.btn.btn-primary,
button.btn-primary,
input[type="button"].btn-primary,
input[type="submit"].btn-primary,
.login-btn,
.logout-btn,
.next-step, 
.prev-step, 
.go-to-dashboard {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
}

.btn.btn-primary:hover,
button.btn-primary:hover,
input[type="button"].btn-primary:hover,
input[type="submit"].btn-primary:hover,
.btn.btn-primary:focus,
button.btn-primary:focus,
input[type="button"].btn-primary:focus,
input[type="submit"].btn-primary:focus,
.btn.btn-primary:active,
button.btn-primary:active,
input[type="button"].btn-primary:active,
input[type="submit"].btn-primary:active,
.login-btn:hover,
.logout-btn:hover,
.next-step:hover, 
.prev-step:hover, 
.go-to-dashboard:hover {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: white !important;
}

/* Form Elements */
.form-label,
.p-label,
.info-text {
    color: var(--text-dark) !important;
}

.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Navigation Elements */
.nav-link.active, 
.nav-link:hover,
.sidebar .nav-link.active, 
.sidebar .nav-link:hover {
    color: var(--text-dark) !important;
    background: var(--primary-light);
}

/* Progress Elements */
.progress-bar {
    background-color: var(--primary) !important;
}

.step-circle {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* Save Progress Button - Outlined Style */
.save-progress {
    background: transparent !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
}

.save-progress:hover {
    background: var(--primary-light) !important;
}

/* Dropdown Menus */
.dropdown-item:hover,
.dropdown-item:active,
.navbar .dropdown-item:hover,
.navbar .dropdown-item:active {
    background: var(--primary-light) !important;
    color: var(--text-dark) !important;
}

/* Links */
a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-hover);
}

/* Sidebar Styling */
.sidebar .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    font-size: 1.08rem;
}

.sidebar .nav-link.active, 
.sidebar .nav-link:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* Tab Styling */
.nav-tabs .nav-link.active {
    background: var(--primary);
    color: var(--text-light);
    border-radius: 8px;
    border: none;
}

.nav-tabs .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    border: none;
    padding: 8px 20px;
}

.nav-tabs .nav-link:hover:not(.active) {
    background: var(--primary-light);
    border-radius: 8px;
}

/* Button Styling */
.btn.btn-primary,
button.btn-primary,
input[type="button"].btn-primary,
input[type="submit"].btn-primary {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
}

.btn.btn-primary:hover,
button.btn-primary:hover,
input[type="button"].btn-primary:hover,
input[type="submit"].btn-primary:hover,
.btn.btn-primary:focus,
button.btn-primary:focus,
input[type="button"].btn-primary:focus,
input[type="submit"].btn-primary:focus,
.btn.btn-primary:active,
button.btn-primary:active,
input[type="button"].btn-primary:active,
input[type="submit"].btn-primary:active {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: white !important;
}

/* Dropdown Styling */
.navbar .dropdown-item {
    color: var(--text-dark);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:active {
    background: var(--primary-light);
    color: var(--text-dark);
}

/* Responsive styles for login */
@media screen and (max-width: 768px) {
    .main-container {
        padding: 15px;
        justify-content: center;
    }
    .verification {
        max-width: 100%;
        padding: 0 10px;
    }
    .logo h1 {
        font-size: 2rem;
    }
    .login-btn {
        font-size: 16px;
        height: 55px;
    }
    .input.email-input {
        height: 55px;
        font-size: 16px;
        padding: 15px 18px;
    }
}

@media screen and (max-width: 576px) {
    .main-container {
        padding: 10px;
    }
    .verification {
        padding: 0 5px;
    }
    .logo h1 {
        font-size: 1.8rem;
    }
    .login-btn {
        font-size: 16px;
        height: 52px;
    }
    .input.email-input {
        height: 52px;
        font-size: 16px;
        padding: 12px 15px;
    }
}

/* Email Input Styles */
.input.email-input {
    height: 50px;
    border-radius: 8px;
    border: 2px solid #d2d2d2;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
    padding: 12px 15px;
    width: 350px;
    max-width: 400px;
}

.input.email-input:focus {
    border-color: #F47852;
    box-shadow: 0 0 0 2px rgba(244, 120, 82, 0.2);
}

.input.email-input::placeholder {
    color: #999;
    font-size: 16px;
}
