.form-container {
    max-width: 603px;
    padding: 10px 20px 20px 20px;
    margin: 0 auto;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    flex-direction: column;
/*     align-items: center; */
    background: white;
}

.required-note {
    text-align: right;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: black;
    pointer-events: none;
    margin-right: 10%;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .required-note {
        margin-left: 0;
        text-align: left;
    }
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.form-fake-placeholder {
    position: relative;
    width: 100%;
    max-width: 467px;
    text-align: left;
}

.form-fake-placeholder input,
.form-fake-placeholder select {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-fake-placeholder input::placeholder {
    color: transparent;
}

.custom-placeholder {
    position: absolute;
    top: 12px;
    left: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: rgba(22, 25, 37, 1);
    pointer-events: none;
    transition: 0.2s;
    font-weight: 400;
}

.red-star {
    color: red;
    margin-left: 3px;
}

.select2-container--default .select2-selection--multiple {
    width: 100%;
    height: auto;
    padding: 10px 20px 10px 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin-bottom: 10px;
    text-align: left;
}

.select2-search__field::placeholder {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: rgba(22, 25, 37, 1);
    transition: 0.2s;
    font-weight: 400;
}

/* Updated class name to sign-up-error-message */
.sign-up-error-message {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px !important;
    color: red !important;
    pointer-events: none;
    transition: 0.2s;
    font-weight: 400 !important;
    text-align: left !important;
    margin-top: 5px;
    display: none;
    width: 100%;
    max-width: 467px;
}

.select2-error-message {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px !important;
    color: red !important;
    pointer-events: none;
    transition: 0.2s;
    font-weight: 400 !important;
    text-align: left !important;
    margin-top: 5px;
}

.form-fake-placeholder input:focus + .custom-placeholder,
.form-fake-placeholder input:not(:placeholder-shown) + .custom-placeholder {
    opacity: 0;
}

.form-fake-placeholder select:focus + .custom-placeholder,
.form-fake-placeholder select:valid + .custom-placeholder {
    opacity: 0;
}

.form-fake-placeholder select:invalid {
    color: rgba(22, 25, 37, 1);
}

.form-submit {
    width: 100%;
    max-width: 467px;
    height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    background: #862c8f;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
}

.form-submit:hover {
    background: white;
    color: #862c8f;
    border: 2px solid #862c8f;
}

.signin-prompt {
    margin-top: 30px;
    font-size: 16px;
    line-height: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }

  .signin-text {
    font-weight: 400;
  }

  .signin-link {
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    color: rgba(0, 0, 0, 1);
  }

.recaptcha-container {
/*     transform: scale(1.2); */
/*     transform-origin: 0 0; */
	max-width: 400px; 
	width:100%;
}

@media screen and (max-width: 480px) {
    .recaptcha-container {
        transform: scale(0.7);
    }
}


@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .form-container input,
    .form-container select,
    .form-submit {
/*         max-width: 100%; */
    }

    .required-note {
        top: 10px;
        right: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
    }

    .form-container input,
    .form-container select,
    .form-submit {
        font-size: 16px;
    }
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.success-modal-content {
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 35% !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 15px;
    font-weight: 400;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    margin-top: 10%;
}

.modal-close-btn-success {
    width: 100px;
    height: 40px;
    background: white;
    color: #862c8f;
    border: 2px solid #862c8f;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.modal-close-btn-success:hover {
    background: #862c8f;
    color: #fff;
    border: none;
}


.success-modal-content h3 {
    font-family: 'Open Sans', sans-serif !important;
    margin: 20px 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    text-align: center;
    max-width: 100%;
    width: 60% !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: black;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    position: relative;
    top: 27%;
    left: 20%;
}

.success-modal-content h2 {
    font-family: 'Open Sans', sans-serif !important;
    margin-top: 0;
    margin-bottom: 10px;
    color: #862c8f;
    font-size: 20px;
    font-weight: 700;
}

.modal-content h2 {
    font-family: 'Open Sans', sans-serif !important;
    margin-top: 0;
    margin-bottom: 10px;
    color: #862c8f;
    font-size: 20px;
    font-weight: 700;
}

.modal-content h3 {
    font-family: 'Open Sans', sans-serif !important;
    margin: 20px 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: black;
}

/* Updated CSS for Confirmation Modal Header */
.modal-header {
    padding-top: 25px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}

/* Updated CSS for Scrollable Modal Body */
.modal-body-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 15px;
    flex-grow: 1;
}

/* Updated CSS for Modal Body */
.modal-body {
    padding: 15px 0;
    text-align: left;
}

.user-details .col-md-4 {
    padding-right: 10px !important;
    padding-left: 15px !important;
    flex: 0 0 27% !important;
    display: flex;
    flex-wrap: wrap;
	padding-top: 10px !important;
}

.user-details .email {
    padding-right: 10px !important;
    padding-left: 15px !important;
    padding-top: 10px !important;
}

.user-details .role {
    padding-right: 10px !important;
    padding-left: 15px !important;
	width:auto;
	display:flex;
	gap: 5px;
   padding-top: 10px !important;
}

.facilities-grid .col-md-4 {
    padding: 4px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 12px;
    font-weight: 400;
    color: #333;
    text-align: center;
    margin: 5px;
    max-width: 32% !important;
}

.facilities-row {
    flex-wrap: unset !important;
}

/* Updated CSS for Confirmation Modal Footer */
.modal-footer {
    padding: 15px;
    border-top: none;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* Updated CSS for Confirmation Modal Confirm Button */
.modal-confirm-btn {
    width: 100px;
    height: 40px;
    background: #862c8f;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

/* Updated CSS for Confirmation Modal Confirm Button Hover */
.modal-confirm-btn:hover {
    background: rgb(97 20 77);
    color: #fff;
    border: 2px solid #862c8f;
}

/* Updated CSS for Confirmation Modal Close Button in Header */
.confirmation-modal-close {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease;
    margin-bottom: 1%;
    margin-left: 25%;
}

/* Updated CSS for Confirmation Modal Close Button Hover */
.confirmation-modal-close:hover {
    color: #007bff;
}

.modal-close-btn-bottom {
    width: 100px;
    height: 40px;
    background: white;
    color: #862c8f;
    border: 2px solid #862c8f;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
}

.modal-close-btn-bottom:hover {
    background: #862c8f;
    color: #fff;
    border: none;
}

/* Updated CSS for Modal Divider Line */
.modal-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

/* Updated CSS for User Details Section */
.user-details {
    margin-bottom: 20px;
}

/* Updated CSS for Facilities Section */
.facilities-section {
    margin-bottom: 20px;
}

/* Updated CSS for Facility Cell */
.facility-cell {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background: #f8f9fa;
}

/* Updated CSS for No Facilities Message */
.no-facilities {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 10px;
}

.select2-results__option.select2-results__message {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: transparent !important;
    color: black !important;
}

.select2-search__field {
    text-align: left;
    width: 100% !important; /* Override inline width */
    min-width: 150px;
    max-width: 467px; /* Match input field */
    box-sizing: border-box;
}

.select2-results__option {
    text-align: left;
    white-space: nowrap; /* Prevent long text from stretching dropdown */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 467px; /* Match input field width */
    box-sizing: border-box;
}

.select2-results__options {
    max-width: 467px !important; /* Constrain results list */
    box-sizing: border-box;
}

.facility-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.facility-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    width: auto;
    max-width: 900px;
    max-height: 65vh;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    position: relative;
    top: 28%;
    left: 19%;
}

.facility-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.facility-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.facility-modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #555;
    transition: color 0.2s ease, transform 0.2s ease;
}

.facility-modal-close:hover {
    color: #007bff;
    transform: scale(1.2);
}

.facility-modal-body {
    padding: 20px;
    overflow-x: auto;
    max-height: calc(80vh - 80px);
    scrollbar-width: thin;
}

.facility-modal-body::-webkit-scrollbar {
    height: 8px;
}

.facility-modal-body::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 4px;
}

.facility-modal-body::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.facility-modal-columns {
    display: flex;
    flex-direction: row;
    gap: 20px;
    min-width: fit-content;
}

.facility-modal-column {
    min-width: 250px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.facility-modal-column li {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.facility-modal-column li:hover {
    background-color: #e7f1ff;
    transform: translateX(4px);
}

.facility-modal-column li:last-child {
    border-bottom: none;
}

.facility-modal-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2em;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.facility-modal-remove:hover {
    color: #a00;
    transform: scale(1.2);
}

.facility-modal-empty {
    text-align: center;
    color: #666;
    padding: 20px;
    width: 100%;
}

.select2-show-more {
    background: #fff;
    color: rgba(134, 44, 143, 1);
    border: 2px solid rgba(134, 44, 143, 1);
    border-radius: 4px;
    padding: 4px 10px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.9em;
    vertical-align: middle;
    transition: background-color 0.2s ease;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
}

.select2-show-more:hover {
    background: rgba(134, 44, 143, 1);
    color: #fff;
}

.facility-modal.show {
    opacity: 1;
}

.select2-selection__choice__remove {
    display: none !important;
}

.select2-selection__choice.hidden-choice {
    display: none !important;
}

.select2-selection__choice:empty {
    display: none !important;
}

.select2-selection__choice {
    display: none !important;
}

.facility-search-wrapper {
    display: block;
    width: 100%;
    max-width: 467px; /* Match .form-fake-placeholder */
    box-sizing: border-box;
    position: relative;
}

.select2-container {
    display: block !important;
    width: 100% !important;
    max-width: 467px !important; /* Match .form-fake-placeholder */
    margin-bottom: 8px;
    box-sizing: border-box;
}

.select2-container--default {
    width: 100% !important;
    max-width: 467px !important; /* Match .form-fake-placeholder */
    display: block;
    box-sizing: border-box;
}

.select2-container .select2-selection--multiple {
    display: block;
    width: 100%;
}

.select2-error-message {
    display: block;
    margin-top: 4px;
    margin-bottom: 8px;
    color: #dc3545;
    font-size: 0.9em;
}

.select2-items-count {
    display: block;
    margin-top: 4px;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9em;
}

.select2-select-all {
    background: #f0f0f0;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px;
    display: flex !important;
    visibility: visible !important;
}

.selected-items-container {
    display: block;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
    min-height: 34px;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    width: 100%;
    clear: both;
}

.selected-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.selected-item {
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-flex;
    align-items: center;
}

.selected-item-premium {
    background: rgba(59, 191, 173, 1) !important;
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.selected-item-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.selected-item-remove {
    background: none;
    border: none;
    color: #a00;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 4px;
    padding: 0;
    transition: color 0.2s ease;
}

.selected-item-remove:hover {
    color: red;
}

.selected-item-remove-premium {
    color: #fff;
    font-size: 1.2em;
    margin-left: 4px;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.selected-item-remove-premium:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.selected-items-empty {
    color: #666;
    font-style: italic;
}

.facilities-new-placeholder {
    position: absolute;
    top: 12px !important;
    left: 10px;
    z-index: 1;
    padding: 2px 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: rgba(22, 25, 37, 1);
    pointer-events: none;
    transition: 0.2s;
    font-weight: 400;
}

.facilities-new-placeholder.hidden {
    display: none !important;
}

.select2-container--open .select2-dropdown {
    width: 100% !important;
    max-width: 467px !important; /* Match .form-fake-placeholder */
    min-width: 200px;
    box-sizing: border-box;
    left: 0 !important; /* Align with input field */
    right: auto !important; /* Prevent stretching to the right */
}

.select2-container--default[aria-expanded="true"] {
    max-width: 467px !important;
}

.select2-container--default[aria-expanded="true"] .select2-dropdown {
    max-width: 467px !important;
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
}

@media (max-width: 768px) {
    .modal-content {
        width: 80% !important;
        font-size: 14px;
        left: 10%;
    }

    .user-details .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        display: block;
    }

    .user-details .email,
    .user-details .role {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 10px 15px !important;
        display: block;
    }

    .modal-content h2 {
        font-size: 18px;
    }

    .modal-content h3 {
        font-size: 14px;
    }

    .facility-cell {
        font-size: 12px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 8px;
    }

    .facility-modal-content {
        width: 80% !important;
        max-width: 600px;
        left: 11%;
    }

    .facility-modal-columns {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .facility-modal-column {
        flex: 0 0 calc(50% - 15px);
        min-width: 200px;
    }

    .success-modal-content {
        max-width: 500px;
        width: 45% !important;
        font-size: 14px;
    }

    .success-modal-content h2 {
        font-size: 18px;
    }

    .modal-close-btn-success {
        width: 90px;
        height: 35px;
        font-size: 13px;
		background: #862c8f;
		color: #fff;
		border: none;
    }
	
}

@media (max-width: 480px) {
    .modal-content {
        width: 90% !important;
        font-size: 12px;
        left: 5%;
    }

    .user-details .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 8px 10px !important;
        display: block;
    }

    .user-details .email,
    .user-details .role {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 8px 10px !important;
        display: block;
    }
	 .signin-prompt {
		  flex-direction: column;
		  gap: 2px;
		}
    .modal-content h2 {
        font-size: 11px;
    }

    .modal-content h3 {
        font-size: 12px;
    }

    .facility-cell {
        font-size: 6px !important;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 6px;
    }

    .modal-close-btn-bottom {
        width: 70px;
        height: 33px;
        font-size: 12px;
        font-weight: 600;
    }

    .modal-confirm-btn {
        width: 70px;
        height: 33px;
        font-size: 12px;
        font-weight: 600;
    }

    .facility-modal-content {
        width: 90% !important;
        max-width: 400px;
        left: 5%;
		overflow: scroll;
		height: auto;
    }

    .facility-modal-columns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .facility-modal-column {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .success-modal-content {
        max-width: 500px;
        width: 70% !important;
        font-size: 12px;
    }

    .success-modal-content h2 {
        font-size: 14px;
    }

    .modal-close-btn-success {
        width: 60px;
        height: 30px;
        font-size: 11px;
		 background: #862c8f;
    color: #fff;
    border: none;
    }
	
	.facility-modal-body {
    padding: 0px;
  
}
}

@media (max-width: 1024px) {
    .facility-modal-content {
        left: 8%;
    }
}


@media (max-width: 480px) {
  .form-fake-placeholder {
    max-width: 100% !important;
/*     width: calc(100% - 30px);  */
    margin: 0 auto;
  }
 
  .select2-container--default {
    max-width: 100% !important;
    width: calc(100% - 10px) !important; 
  }
 
  .select2-container--open {
    left: 0 !important;
    right: auto !important;
  }
 
  .select2-container--open .select2-dropdown {
    max-width: 100% !important;
    width: calc(100% - 20px) !important; 
    min-width: 0 !important;
    left: 0 !important;
    right: auto !important;
	margin-left: 15px;
	overflow-x: visible;
  }
 
}

 .spinner-container {
	 display: none;
	 position: fixed;
	 top: 0;
	 left: 0;
	 width: 100%;
	 height: 100%;
	 background: rgba(0, 0, 0, 0.7);
	 z-index: 1000000000;
	 display: flex;
	 flex-direction: column;
	 justify-content: center;
	 align-items: center;
}
.spinner {
	border: 6px solid #f3f3f3;
	border-top: 6px solid #337ab7;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
}
.spinner-text {
	color: #fff;
	font-size: 18px;
	margin-top: 10px;
	font-family: 'Open Sans', sans-serif;
}
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}