/* Basic Reset & Body Styles */
body {
    font-family: "DM Sans", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
    /* Light gray background */
    /* display: flex; */
    /* Use flexbox for layout */
    /* min-height: 100vh; */
    /* Ensure body takes full viewport height */
}

.page-content {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    width: 100%;
}

/* Sidebar Container */
.sidebar-container {
    width: 260px;
    /* Default width for desktop */
    background-color: #ffffff;
    /* White background */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    padding: 20px 0;
    /* Vertical padding */
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    /* Prevent sidebar from shrinking */
    transition: width 0.3s ease;
    /* Smooth transition for width changes */
}

/* Sidebar Header (e.g., Logo/Site Title) */
.sidebar-header {
    padding: 0 20px 20px;
    /* Padding for header content */
    border-bottom: 1px solid #e5e7eb;
    /* Separator line */
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-header img.custom-logo {
    max-width: 60px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    /* Text-xl equivalent */
    font-weight: 700;
    /* Font-bold equivalent */
    color: #1f2937;
    /* Dark text */
}

/* Navigation List */
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
    /* Space between list items */
}

.sidebar-nav a {
    display: flex;
    /* Use flexbox for icon and text alignment */
    align-items: center;
    padding: 12px 12px;
    /* Padding for each link */
    color: #4b5563;
    /* Gray text */
    text-decoration: none;
    font-weight: 500;
    /* Medium font weight */
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 6px;
    /* Rounded corners for links */
    margin: 0 10px;
    /* Horizontal margin to keep rounded corners visible */
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
}

.sidebar-nav a:hover {
    background-color: #e0f2fe;
    /* Light blue on hover */
    color: #1e40af;
    /* Darker blue text on hover */
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: #2B29A8;
    color: #fff;
    font-weight: 600;
}

/* Icon Styling (using a placeholder for now) */
.sidebar-nav .icon {
    margin-right: 10px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 5px;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    /* Allows content to take remaining space */
    padding: 20px;
    background-color: #f3f4f6;
    /* Match body background */
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .sidebar-nav a {
        font-size: 12px;
        line-height: normal;
    }

    .form-container h1 {
        font-size: 24px;
    }

    .collapsible-header h2 {
        margin-bottom: 0;
        font-size: 18px;
    }

    label,
    input[type="text"],
    input[type="number"],
    input[type="date"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 12px;
    }

    .sidebar-nav .icon {
        width: 25px;
        min-width: 25px;
        height: 25px;
        min-height: 25px;
    }

    .sidebar-nav .icon img {
        max-width: 15px;
    }
}

@media (max-width: 768px) {
    .sidebar-container {
        width: 70px;
        /* Collapsed width on smaller screens */
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-header h3 {
        font-size: 1rem;
        /* Smaller header text */
        text-align: center;
        /* Center header text when collapsed */
    }

    .sidebar-nav a {
        padding: 10px 5px;
        /* Smaller padding for collapsed links */
        justify-content: center;
        /* Center content when collapsed */
        margin: 0 5px;
    }

    .sidebar-nav .icon {
        margin-right: 0;
        /* Remove margin for centered icon */
    }

    .sidebar-nav .link-text {
        /* display: none; */
        /* Hide text when collapsed */
    }

    .main-content {
        margin-left: 70px;
        /* Adjust content margin to match collapsed sidebar */
    }
}
@media (max-width: 768px) and (min-width: 600px)  {
	.sidebar-nav .link-text {
        display: none;
    }
}
@media (max-width: 480px) {
    body {
        flex-direction: column;
        /* Stack sidebar and content vertically */
    }

    .sidebar-container {
        width: 100%;
        /* Full width sidebar on very small screens */
        height: auto;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        /* Shadow at bottom */
        padding: 10px 0;
        flex-direction: row;
        /* Make navigation horizontal */
        justify-content: space-around;
        /* Distribute links evenly */
        align-items: center;
    }

    .sidebar-header {
        display: none;
        /* Hide header on very small screens */
    }

    .sidebar-nav ul {
        display: flex;
        width: 100%;
        justify-content: space-around;
    }

    .sidebar-nav li {
        margin-bottom: 0;
        width: 15%;
    }

    .sidebar-nav a {
        /* padding: 8px 10px; */
        flex-direction: column;
        /* Stack icon and text vertically */
        font-size: 0.75rem;
        /* Smaller font size */
        text-align: center;
        margin: 0;
    }

    .sidebar-nav .icon {
        /* margin-bottom: 4px; */
        /* Space between icon and text */
        font-size: 1rem;
    }

    .main-content {
        margin-left: 0;
        /* Remove left margin */
        width: 100%;
    }

    .form-container h1 {
        font-size: 20px;
    }
}

.welcome-message {
    text-align: center;
    padding: 100px 50px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: auto;
    width: 70%;
}

.welcome-message h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.welcome-message p {
    font-size: 1rem;
    color: #6b7280;
}

/* Progress Bar Styling */
.profile-progress-container {
    width: 100%;
    background-color: #e0e7ff;
    /* Light background for the bar track */
    border-radius: 12px;
    height: 30px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    /* Essential for positioning the text */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-progress-bar {
    height: 100%;
    /* Set a dynamic width here, e.g., 0% for demonstration of fix */
    width: 0%;
    /* Example: 0% complete to show text visibility */
    background: #bfdbfe;
    /* Vibrant gradient */
    border-radius: 12px;
    transition: width 0.6s ease-in-out;
    /* Smooth transition for width changes */
    /* No flex properties here, as text is now outside */
}

.profile-progress-text {
    position: absolute;
    /* Position text absolutely within the container */
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust for true centering */
    color: #010101;
    /* Darker color for visibility on light background */
    font-size: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.4);
    /* Subtle shadow for readability */
    z-index: 1;
    /* Ensure text is above the progress bar */
}

/* Optional: Style for when the bar is filled enough to make text white */
.profile-progress-bar.text-on-bar {
    /* This class would be added via JS when width > ~50% to change text color */
    /* For now, text is always outside and visible */
}

/* Example of changing progress with JavaScript (optional) */
.controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.controls button {
    padding: 10px 15px;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.controls button:hover {
    background-color: #6b5ef0;
}

.applications-lists {
    width: 100%;
    /* Full width on small screens */
    /* max-width: 800px; */
    /* Max width for larger screens */
    margin: 20px auto;
    /* Adjust margin for better centering */
    border: 1px solid #e2e8f0;
    /* Light border */
    border-radius: 12px;
    /* More rounded corners */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Stronger shadow */
    background-color: #ffffff;
    /* White background for the container */
}

.application-item {
    border-bottom: 1px solid #edf2f7;
    /* Lighter border between items */
}

.application-item:last-child {
    border-bottom: none;
}

.application-item-button {
    /* This will be the clickable header */
    background-color: #f7fafc;
    /* Very light grey header */
    padding: 10px 24px;
    /* Increased padding */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    border-radius: 8px;
    /* Rounded corners for headers */
    margin: 8px;
    /* Margin to separate headers slightly */
}

.application-item-button:hover {
    background-color: #ebf4ff;
    /* Light blue on hover */
}

.application-title {
    margin: 0;
    font-size: 1.25em;
    /* Slightly larger font */
    color: #2d3748;
    /* Darker text color */
    font-weight: 600;
    /* Semi-bold */
}

.application-view {
    /* The button inside the header */
    padding: 8px 16px;
    background-color: #4299e1;
    /* Blue button */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for button */
    flex-shrink: 0;
    /* Prevent button from shrinking */
}

.application-view:hover {
    background-color: #2b6cb0;
    /* Darker blue on hover */
    transform: translateY(-1px);
    /* Slight lift effect */
}

.application-view:active {
    transform: translateY(0);
    /* Press effect */
    box-shadow: none;
}

.application-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 0 24px;
    /* max-height: 0; */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    border-radius: 0 0 12px 12px;
    /* Rounded bottom corners when open */
}

.application-item-content p {
    margin: 12px 0;
    /* Adjusted margin */
    line-height: 1.7;
    /* Increased line height for readability */
    color: #4a5568;
    /* Darker text color */
    font-size: 0.95em;
}

.application-item-content p strong {
    color: #2d3748;
    /* Stronger color for labels */
}

.application-item-content a {
    color: #4299e1;
    /* Blue link color */
    text-decoration: none;
    transition: color 0.2s ease;
}

.application-item-content a:hover {
    text-decoration: underline;
    color: #2b6cb0;
    /* Darker blue on hover */
}

/* JavaScript will add this class when an item is active */
.application-item.active .application-item-button {
    background-color: #e2e8f0;
    /* Slightly darker background when active */
    border-bottom-left-radius: 0;
    /* Straighten bottom corners when content opens */
    border-bottom-right-radius: 0;
}

.application-item.active .application-item-content {
    max-height: 500px;
    /* Adjust as needed for your content */
    padding: 10px 24px 10px 24px;
    /* Restore padding when content is open */
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .applications-lists {
        margin: 10px auto;
        border-radius: 8px;
    }

    .application-item-button {
        padding: 16px 20px;
        margin: 4px;
    }

    .application-title {
        font-size: 1.1em;
    }

    .application-view {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .application-item-content {
        padding: 0 20px;
    }

    .application-item.active .application-item-content {
        padding: 12px 20px 20px 20px;
    }
}

.form-container {
    /* max-width: 64rem; */
    /* max-w-4xl */
    width: 70%;
    margin: 70px auto 60px;
    /* mx-auto */
    background-color: #ffffff;
    /* bg-white */
    padding: 1.5rem;
    /* p-6 */
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* shadow-lg */
}

@media (min-width: 640px) {

    /* sm: */
    .form-container {
        padding: 1rem;
        /* sm:p-8 */
    }
}

@media (min-width: 768px) {

    /* md: */
    .form-container {
        padding: 2.5rem;
        /* md:p-10 */
    }
}

/* .page-template-password-reset .page-content .form-container .forget-password {
    padding: 40px;
    max-width: 70%;
    margin: 70px auto 70px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0px 4px 30px 0px #2A28791A;
} */

/* Success Alert Box Styling */
.custom-alert-success {
    display: flex;
    /* Use flexbox for alignment of content and close button */
    align-items: flex-start;
    /* Align items to the top */
    background-color: #d4edda;
    /* Light green background */
    color: #155724;
    /* Dark green text */
    border: 1px solid #c3e6cb;
    /* Green border */
    border-radius: 0.5rem;
    /* Rounded corners */
    padding: 1rem 1.5rem;
    /* Padding inside the box */
    margin-bottom: 1.5rem;
    /* Space below the alert if more content follows */
    width: 100%;
    /* Full width within its container */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    /* Subtle shadow */
    position: relative;
    /* For positioning the close button */
    box-sizing: border-box;
}

.custom-alert-content {
    flex-grow: 1;
    /* Allows content to take up available space */
    padding-right: 2rem;
    /* Space for the close button */
}

.custom-alert-success h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    /* Larger title */
    font-weight: bold;
    color: #155724;
    /* Ensure title color is consistent */
}

.custom-alert-success p {
    margin-bottom: 0;
    font-size: 1rem;
    /* Standard paragraph size */
    line-height: 1.5;
}

.custom-alert-close {
    position: absolute;
    top: 0.75rem;
    /* Distance from top */
    right: 1rem;
    /* Distance from right */
    background: none;
    border: none;
    font-size: 1.5rem;
    /* Larger 'x' */
    line-height: 1;
    color: #155724;
    /* Color of the 'x' */
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    /* Slightly transparent by default */
    transition: opacity 0.2s ease;
    /* Smooth transition on hover */
    -webkit-appearance: none;
    /* Remove default button styles for cross-browser consistency */
    -moz-appearance: none;
    appearance: none;
}

.custom-alert-close:hover {
    opacity: 1;
    /* Fully opaque on hover */
    color: #0c3d1a;
    /* Darker green on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-alert-success {
        padding: 0.8rem 1rem;
        margin: 10px;
        /* Smaller margin on smaller screens */
    }

    .custom-alert-success h3 {
        font-size: 1.1rem;
    }

    .custom-alert-success p {
        font-size: 0.9rem;
    }

    .custom-alert-close {
        font-size: 1.2rem;
        top: 0.5rem;
        right: 0.75rem;
    }
}

.crisis-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.crisis-choices div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.crisis-choices div label {
    font-weight: 500;
}

.page-template-templatespersonal-information-php .crisis-choices {
    display: unset;
    gap: 15px;
}

.select2-container {
    background: #01010103;
    box-shadow: 0px 4px 4px 0px #01010105;
    border: 1px solid #0101011A;
    border-radius: 10px;
    font-size: 14px;
    line-height: 20px;
    font-family: "Montserrat", sans-serif;
    color: #2C2C2C;
    font-weight: 500;
    padding: 10px 20px;
    resize: none;
    margin-top: 5px;
    outline: 0;
    height: 40px !important;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem !important;
    font-size: 0.875rem;
    color: #374151;
    background: #fff !important;
}

.select2-container .select2-selection {
    border: unset !important;
}

.select2-container .select2-selection .select2-selection__rendered {
    background: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px !important;
    right: 10px !important;
}

select+.select2-container {
    padding: 5px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 15px;
}

.select2-container {
    padding: 0;
}

@media (max-width: 1200px) and (min-width: 769px) {
    .form-container {
        width: 70%;
        margin: 30px auto 60px;
        padding: 24px;
    }

    .sidebar-container {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .sidebar-container {
        width: 55px;
        padding: 0 0 15px;
    }

    .form-container {
        width: 85%;
        margin-top: 30px;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-nav .icon img {
        max-width: initial;
    }

    .sidebar-nav ul {
        padding: 10px 0;
    }
}

@media (max-width: 600px) {
    .sidebar-container {
        width: 100%;
        padding: 15px;
    }

    .form-container {
        max-width: 100%;
        margin-top: 20px;
        padding: 15px;
        width: 90%;
    }
    .welcome-message {
        margin: 30px auto 50px;
        padding: 30px;
        width: 90%;
    }
    .sidebar-container nav.sidebar-nav {
        margin-bottom: -5px;
		 width: 100%;
    }
    .sidebar-nav ul {
        display: flex;
        gap: 10px;
        align-items: stretch;
        justify-content: flex-start;
        overflow: auto;
         width: 100%;
        scrollbar-gutter: stable both-edges;
        padding: 0 0 5px 0;
   }
    .sidebar-nav li {
        display: flex;
        align-items: stretch;
        flex-direction: column;
		justify-content: center;
        text-align: center;
        flex-shrink: 0;
        width: auto;
        max-width: 65px;
    }
    .sidebar-nav a {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        padding: 0;
    }
    .sidebar-nav .icon {
        background: #ddd;
        width: 30px;
        min-width: 30px;
        height: 30px;
        min-height: 30px;
    }
    .sidebar-nav a.active, .sidebar-nav a:hover {
        background: transparent;
        color: #2B29A8;
    }
    .sidebar-nav a.active .icon,
    .sidebar-nav a:hover .icon {
        background: #bfdbfe;
        color: #fff;
        font-weight: 600;
        border: 1px solid #2B29A8;
    }
    .sidebar-nav .link-text {
        margin-top: 10px;
        font-size: 10px;
        line-height: 14px;
    }

    .select2-container {
        border-radius: 6px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 12px;
        padding-left: 5px;
    }

    .button-group {
        gap: 10px;
        justify-content: center;
    }

    .profile-progress-text {
        font-size: 12px;
    }

    .profile-progress-container {
        height: 20px;
    }

    .welcome-message h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .um-password .um-field-block {
        font-size: 14px;
    }
}

@media (max-width: 340px) {
    .button-group button {
        font-size: 13px;
    }

    .profile-progress-container {
        margin-bottom: 15px;
    }
}

.custom-card-icon {
    width: 6em;
    height: 6em;
    border: 1px solid rgba(0, 0, 0, 0);
    border-color: #00000070;
}

.parent-pageid-988 #swal2-input {
    width: unset !important;
}