* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Barlow Semi Condensed", sans-serif;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* sidebar */
aside {
    box-shadow: 0px 16px 44px 0px #00000012;
}

.sidebar {
    width: 300px;
    background-color: #fff;
    padding: 20px;
    transition: transform 0.1s ease-in-out;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.hamburger {
    display: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 101;
    box-shadow: initial;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #333;
}

.logo {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.nav-menu {
    flex: 1;
}

.nav-section p {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-family: "Poppins", sans-serif;
}

.nav-item {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-family: "Poppins", sans-serif;
}

.sub-nav {
    margin-left: 1rem;
}

.sub-nav-item {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    padding: 10px 7px;
    width: fit-content;
    border-radius: 20px;
}

.sub-nav-item.active {
    color: #050a30;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    background-color: #eef2ff;
}

.bottom-nav {
    margin-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    /* border-top: 1px solid var(--border-color); */
    font-family: "Poppins", sans-serif;
}

.username {
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    color: black !important;
}

.welcome {
    font-size: 0.8rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
}

/* Progress Tracker */

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.progress-tracker {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 32px;
    width: 105px;
    border-bottom: 2px solid #a1aebe;
    z-index: -1;
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #a1aebe;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.progress-step.completed .step-dot::after {
    background: black;
}

.progress-step.completed .step-dot {
    border-color: #000;
}

.progress-step.completed::after {
    border-bottom: 2px solid #000;
}

.step-label {
    font-size: 0.9rem;
    color: #666;
}

/* Form */

.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0px 0px 10px 0px #0000001a;
    font-family: "Outfit", sans-serif;
}

.form-container h2 {
    margin-bottom: 2rem;
    font-weight: normal;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    margin-top: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.label {
    position: absolute;
    left: 20px;
    top: 0;
    transform: translateY(-50%);
    background-color: white;
    padding: 0 5px;
    font-size: 14px;
    color: #666;
    transition: color 0.3s;
    z-index: 1;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="month"],
select {
    padding: 0.8rem;
    border: 1px solid #676666;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
    width: 100%;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select :focus {
    border-color: #676666;
}

.checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.next-button,
.prev-button {
    background-color: #050a30;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}

.prev-button {
    background-color: #f9f9f9;
    color: #000;
}

.error {
    border-color: #ff4444 !important;
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.grades-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grade-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    align-items: start;
}

.grade-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: start;
}

.grade-row-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.grade-row-5 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: start;
}

.remove-button {
    color: #ff4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    margin-top: 1.5rem;
}



.accept_eligibility {
    color: #ffff;
    background-color: #14144b;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    margin-top: 1.5rem;
    border-radius: 0.5rem;
}

.reject_eligibility {
    color: #ffff;
    background: #ff4444;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    margin-top: 1.5rem;
    border-radius: 0.5rem;
}

.add-more-button {
    color: #0162dd;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-align: left;
    margin-top: 0.5rem;
}

.remove-button:hover,
.add-more-button:hover {
    opacity: 0.8;
}

.qualification-select {
    padding: 0.8rem;
    border: 1px solid #676666;
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 100%;
    background-color: white;
    cursor: pointer;
}

.qualification-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

h2 {
    color: #14144b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #14144b;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked {
    background-color: #14144b;
    border: 2px solid #14144b;
    box-shadow: inset 0 0 0 4px white;
}

.radio-option label {
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 2rem;
}

.checkbox-group input[type="checkbox"] {
    width: 15px;
    height: 20px;
    border-color: #a0a0a0;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsiveness */

@media (max-width: 1150px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -245px;
        height: 100%;
        z-index: 100;
        width: 100%;
        max-width: 300px;
        background-color: transparent;
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(250px);
        background-color: #fff;
    }

    .hamburger {
        display: block;
    }

    .progress-tracker {
        flex-wrap: wrap;

        gap: 1rem;
    }

    .form-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .grade-row {
        grid-template-columns: 1fr 1fr 1fr auto;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0px;
    }
}

/* Existing styles remain the same until the media queries */

/* Updated and New Media Queries */
@media (max-width: 1400px) {
    .main-content {
        padding: 1.5rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .progress-tracker {
        gap: 1.5rem;
    }

    .progress-step:not(:last-child)::after {
        width: 60px;
    }
}

@media (max-width: 1150px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -245px;
        height: 100%;
        z-index: 100;
        width: 100%;
        max-width: 300px;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(250px);
        background-color: #fff;
    }

    .hamburger {
        display: block;
    }

    .progress-tracker {
        flex-wrap: wrap;
        gap: 0.5rem;
        /* justify-content: flex-start; */
        padding: 0 1rem;
    }

    /* .progress-step:not(:last-child)::after {
        display: none;
    } */

    .form-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .grade-row,
    .grade-row-2 {
        grid-template-columns: 1fr 1fr 1fr auto;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .form-container {
        padding: 1rem;
        margin: 0;
    }

    .form-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }

    .form-row-4 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr auto;
        gap: 1rem;
        align-items: start;
    }

    .grade-row,
    .grade-row-2 {
        grid-template-columns: 1fr 1fr 1fr auto;
    }

    .button-group {
        flex-direction: column;
    }

    .next-button,
    .prev-button {
        width: 100%;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        font-weight: normal;
    }

    .checkbox-group {
        margin-top: 1.5rem;
    }

    .checkbox-group label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.75rem;
    }

    .form-container {
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .progress-tracker {
        margin-bottom: 2rem;
        padding: 0;
        overflow: hidden;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .step-dot {
        width: 20px;
        height: 20px;
    }

    .step-dot::after {
        width: 6px;
        height: 6px;
    }

    input[type="number"],
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .radio-option label {
        font-size: 0.9rem;
    }

    .radio-option input[type="radio"] {
        width: 18px;
        height: 18px;
    }

    .add-more-button,
    .remove-button {
        font-size: 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0px;
        margin-bottom: 0px;
    }

    .form-group {
        margin-top: 0px;
    }
}

/* Input styling */
.input-group input {
    border-radius: 0.5rem 0 0 0.5rem;
    /* Rounded on the left side only */
    width: 84%;
}

/* Icon button styling */
.input-group .input-group-text {
    border: 1px solid #676666;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.9rem;
    padding: 0.8rem;
    cursor: pointer;
}

/* Hover and focus styling for the button */
.input-group .input-group-text:hover {
    background-color: #e9ecef;
}

/* alert style */
.alert {
    padding: 20px;
    background-color: #f44336;
    color: white;
}

.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover {
    color: black;
}


.button-group {
    display: flex;
    /* Enables flexbox layout */
    justify-content: flex-end;
    /* Aligns the buttons to the right */
    gap: 10px;
    /* Adds space between the buttons */
}

.prev-button,
.next-button {
    padding: 10px 20px;
    /* Add some padding to make the buttons larger */
    font-size: 16px;
    /* Adjust font size */
    cursor: pointer;
    /* Change cursor to pointer on hover */
}

.prev-button:disabled,
.next-button:disabled {
    cursor: not-allowed;
    /* Change cursor to indicate button is disabled */
}

.dropify-wrapper .dropify-preview {
    z-index: 0 !important;
}

/* Style for the alert container using data-notify attribute */
[data-notify="container"] {
    display: inline-block;
    margin: 0px auto;
    position: fixed;
    transition: 0.5s ease-in-out;
    z-index: 2000;
    top: 20px;
    right: 0px;
    width: 300px;
    max-width: 90%;
    box-sizing: border-box;
}

/* Close button style for the notification */
[data-notify="container"] .close {
    position: absolute;
    right: 5px !important;
    top: 1px !important;
    z-index: 2002;
    font-size: 18px;
    border: none;
}

/* Style for the message inside the notification */
[data-notify="container"] .message {
    padding-right: 30px;
    /* Add some padding to the right for better readability */
}

[data-notify-position="top-center"] {
    top: 20px;
    right: 1px;
    /* Position on the right */
    transform: none;
    /* Remove horizontal centering */
}

/* Optional: Adjust for smaller screens */
@media (max-width: 768px) {
    [data-notify="container"] {
        width: 90%;
        /* Adjust width for smaller screens */
    }

    [data-notify="container"] .close {
        font-size: 16px;
        /* Make close button smaller on mobile */
    }
}

/* select2 styling */

.select2 {
    width: 100% !important;
    height: 30px !important;
    border-radius: 0.5rem !important;
}

.select2-container--default .select2-selection--single {
    padding: 12px 0px 32px 0px;
    border-radius: 0.5rem !important;
}

.select2-dropdown {
    z-index: 9999 !important;
}

.af_address_list {
    width: 250px;
    /* Fixed width */
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropify-wrapper {
    border-color: #676666 !important;
    padding: 0.8rem !important;
    border: 1px solid #676666 !important;
    border-radius: 0.5rem !important;
    font-size: 1rem !important;
    transition: border-color 0.3s !important;
    outline: none !important;
    width: 100% !important;
    position: static !important;
}

.dropify-wrapper.has-preview {
    position: relative !important;
}

.grade_type_select {
    width: 200px;
    /* Set a consistent width */
    max-width: 100%;
    /* Ensure it does not exceed the container */
    white-space: nowrap;
    /* Prevent text from wrapping */
    overflow: hidden;
    /* Hide overflow if the text is too long */
    text-overflow: ellipsis;
    /* Add ellipsis (...) if the text overflows */
}



.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}

.college_count {
    border: 2px solid black;
    float: right;
    padding: 0.9rem;
    border-radius: 50%;
    font-size: 20px;
    position: relative;
    z-index: 1;
    margin-top: 30px;
    background-color: #14144b;
    color: white;
}

.qualification-container {
    border: 1px solid #ccc;
    padding: 0.5rem;
    margin-top: 2rem;
    box-shadow: 0px 0px 10px 0px #0000001a;
    border-radius: 5px;
    position: relative;
    /* Needed for absolute positioning */
}

.college-count-badge {
    position: absolute;
    top: -10px;
    /* Adjust to position inside the corner */
    right: -10px;
    background-color: #14144b;
    color: white;
    border: 2px solid black;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.university_details_container {
    border: 1px solid #ccc;
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0px 0px 10px 0px #0000001a;
    border-radius: 5px;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.info-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.info-section h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.info-section ul,
.info-section ol {
    padding-left: 20px;
    margin: 10px 0;
}

.info-section li {
    margin: 10px 0;
    line-height: 1.5;
}

.info-section ul li {
    list-style-type: none;
}

.important-note {
    margin-top: 15px;
    padding: 15px;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
}

.instructions {
    background-color: #f9f9f9;
    /* Light background for contrast */
    border: 1px solid #ddd;
    /* Subtle border */
    border-radius: 5px;
    /* Rounded corners */
    padding: 1rem;
    /* Spacing inside the box */
    margin-bottom: 1.5rem;
    /* Space below the instructions */
}

.instructions h3 {
    margin-top: 0;
    /* Remove top margin */
    color: #333;
    /* Darker color for the heading */
}

.instructions p {
    margin: 0.5rem 0;
    /* Spacing for paragraphs */
    color: #555;
    /* Slightly lighter color for text */
}

.instructions ol {
    margin-left: 1.5rem;
    /* Indent ordered list */
}

.instructions li {
    margin-bottom: 0.5rem;
    /* Space between list items */
}

.instructions ul {
    margin-left: 1.5rem;
    /* Indent unordered list */
}

.eligibility-error {
    background-color: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 8px;
    margin: 20px 0;
    padding: 20px;
    display: none;
}

.eligibility-error .error-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.eligibility-error i {
    color: #ff4d4f;
    font-size: 24px;
    margin-top: 3px;
}

.eligibility-error p {
    margin: 0;
    color: #434343;
}

.eligibility-error .sub-message {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.status-radio-btn {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 0.2rem;
    padding: 5%;
}

.form-stage {
    border: 4px solid whitesmoke;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 16px 0 0 white;
}

/* .form-stage.step2 {
    border: 4px solid whitesmoke;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 16px 0 0 white;
    margin-top:3rem;
  } */
/* .form-stage.step3{
    border: 4px solid whitesmoke;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 16px 0 0 white;
    margin-top:1.5rem;
  }

  .form-stage.step4{
    border: 4px solid whitesmoke;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 16px 0 0 white;
    margin-top:1.5rem;
  } */


.af_address_list+.select2 .select2-selection__rendered {
    white-space: nowrap;
    /* Prevent text wrapping */
    overflow: hidden;
    /* Hide overflowing text */
    text-overflow: ellipsis;
    /* Add ellipsis for overflow */
    width: 100%;
    /* Ensure consistent width */
}

.af_address_list+.select2 {
    width: 300px !important;
    /* Fixed width for this select only */
}

/* Fix for Select2 long text overflow - SINGLE SELECT ONLY */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding-right: 20px; /* Space for the dropdown arrow */
}

/* Multi-select should wrap normally */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
}

/* Ensure select2 container maintains proper width */
.select2-container {
    width: 100% !important;
    max-width: 100%;
}

.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    width: 100%;
    overflow: hidden;
}

/* Fix for dropdown options display (full text shown in dropdown) */
.select2-results__option {
    white-space: normal;
    word-wrap: break-word;
}

/* Fix for postcode input group on mobile */
.input-group {
    display: flex;
    width: 100%;
}

.input-group input.postcode {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below content size */
    width: auto !important;
    border-radius: 0.5rem 0 0 0.5rem;
}

.input-group .input-group-text {
    flex-shrink: 0; /* Prevents button from shrinking */
    border: 1px solid #676666;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.9rem;
    padding: 0.8rem;
    cursor: pointer;
    background-color: #fff;
}

/* Additional mobile responsiveness */
@media (max-width: 768px) {
    .input-group input.postcode {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    .input-group .input-group-text {
        padding: 0.7rem 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .input-group {
        position: relative;
    }

    .input-group input.postcode {
        width: 100% !important;
        padding-right: 45px; /* Space for the button */
    }

    .input-group .input-group-text {
        padding: 0.6rem 0.5rem;
    }
}

/* Fix for form-group containing select2 */
.form-group {
    min-width: 0; /* Important for flex children */
    /* overflow: hidden; */
}

/* Specific fixes for ethnicity, subject, and other long-text selects */
#ethnicity + .select2,
#sexual_orientation + .select2,
#religion + .select2,
.subject + .select2 {
    width: 100% !important;
}

/* Ensure the selected value doesn't overflow */
.select2-selection__rendered {
    width: 100%;
    box-sizing: border-box;
}

/* Fix for multiple select (like disability types) */

.select2-container--default .select2-selection--multiple {
    padding: 12px 0px 32px 0px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    max-width: calc(100% - 10px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 2px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    margin-right: 5px;
    flex-shrink: 0;
}

/* Ensure search input in multi-select works properly */
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    min-width: 100px;
    margin: 2px 0;
}

.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    background-color: #fff;
    margin-top: 0.5rem;
}

.form-textarea:focus {
    outline: none;
    border-color: #000;
}

.form-textarea::placeholder {
    color: #999;
}

@media (hover: none) and (pointer: coarse) {
    textarea {
        min-height: 44px;
        /* Minimum touch target size */
    }
}

@media screen and (max-width: 480px) {
    /* Smaller text */
    .form-textarea{
        font-size: 13px;
    }
}
