body .select2-container .select2-dropdown {
    max-width: 100vw !important;
}

#bulkmultistepsform {
    width: 40%;
    margin: 50px auto;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0%);
    font-family: montserrat, arial, verdana;
    min-height: 600px;
}

@media screen and (max-width: 767px) {
    #bulkmultistepsform {
        width: 90%;
        margin: auto;
    }
}

#bulkmultistepsform .select2-container--default .select2-selection--single {
    border: 1px solid var(--bb-content-border-color);
    height: fit-content;
    border-radius: 12px;
}

#bulkmultistepsform .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px;
    font-size: 15px;
}

#bulkmultistepsform input.invalid,
#bulkmultistepsform select.invalid {
    border-color: red;
}

#bulkmultistepsform input:disabled,
#bulkmultistepsform select:disabled {
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 1;
    cursor: not-allowed;
}

#bulkmultistepsform span.bb-icon-l {
    margin-left: 5px;
}

#bulkmultistepsform fieldset {
    background: white;
    border: 0 none;
    border-radius: 8px;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.4);
    padding: 0px 10px;
    box-sizing: border-box;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media screen and (max-width: 767px) {
    #bulkmultistepsform fieldset {
        margin: 0;
    }
}

#bulkmultistepsform fieldset label {
    font-size: 14px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.5);
}

#bulkmultistepsform fieldset .fieldset-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#bulkmultistepsform fieldset .fieldset-body-component {
    display: flex;
    flex-direction: column;
    /* align-items: start; */
    padding: 0px 20px;
}

#bulkmultistepsform fieldset .fieldset-body-component.classroom-select-container {
    flex-direction: row;
    align-items: center;
    gap : 10px;
}

#bulkmultistepsform fieldset .fieldset-body-component.file-upload-section {
    flex-direction: row;
    gap : 10px;
    align-items: center;
}
#bulkmultistepsform fieldset .fieldset-body-component.classroom-select-container  .select2-container {
    width: 60% !important;
}

#bulkmultistepsform fieldset .bulk-classroom-select-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    padding: 0px 20px;
}

#bulkmultistepsform fieldset .fieldset-body-component.fieldset-header-component {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#bulkmultistepsform fieldset .fieldset-body-component #password_strength {
    font-size: 15px;
}

#bulkmultistepsform fieldset .fieldset-body .bzw-preloader #bizworld-preloader {
    position: relative !important;
    background: none !important;
    min-height: 400px !important;
    height: 100% !important;
    margin-top: -60px !important;
}

#bulkmultistepsform fieldset .fieldset-body .notice {
    font-family: "Montserrat", Sans-serif;
    font-size: 20px;
    font-weight: 500;
}

#bulkmultistepsform fieldset .fieldset-footer .next.action-button {
    width: 70%;
    text-align: center;
    margin-bottom: 30px;
}

#bulkmultistepsform fieldset .bb-bp-group-title {
    color: #0e0f53;
    margin: 30px 0px 0px 15px;
    font-weight: 900;
    font-size: 2rem;
}

#bulkmultistepsform fieldset:not(:first-of-type) {
    display: none;
}

#bulkmultistepsform input,
#bulkmultistepsform textarea,
#bulkmultistepsform select {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    font-family: montserrat;
    color: #2c3e50;
    font-size: 12px;
    text-align: left;
    background-color: #e0dede;
}

#bulkmultistepsform .woocommerce input {
    padding: 0px;
    margin : 3px;
    text-align: center;
}
#bulkmultistepsform input:focus,
#bulkmultistepsform textarea:focus,
#bulkmultistepsform select:focus {
    border-color: #0e0f53;
    outline: none;
    color: #637373;
}

#bulkmultistepsform input.create-student,
#bulkmultistepsform textarea.create-student {
    width: fit-content;
}

#bulkmultistepsform .action-button {
    width: 100px;
    background: #f91;
    font-weight: bold;
    color: #fff;
    transition: 150ms;
    border: 0 none;
    border-radius: 12px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px;
    width: fit-content;
}

#bulkmultistepsform .action-button:hover,
#bulkmultistepsform .action-button:focus {
    box-shadow: 0 0 0 2px #3e3f75, 0 0 0 3px #0e0f53;
    color: #fff;
}

#bulkmultistepsform .fieldset-header {
    margin-bottom: 50px;
}

#bulkmultistepsform .fieldset-header .fs-title {
    font-size: 15px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    background: #0e0f53;
    position: absolute;
    width: 100%;
    margin-left: -30px;
    height: 35px;
    line-height: 35px;
    margin-top: -20px;
    border-radius: 5px 5px 0 0;
}

#bulkmultistepsform .fieldset-header .fs-title.error {
    background: #be1e2d;
    border-bottom: 1px solid;
}

#bulkmultistepsform .fieldset-header .fs-title.success {
    background: #28a745;  
}

#bulkmultistepsform .fieldset-header .fs-title.processing {
    background: #17a2b8;
}

#bulkmultistepsform .fieldset-header .fs-subtitle {
    font-weight: normal;
    font-size: 13px;
    color: #fff;
    margin-bottom: 10px;
    background: #f91;
    position: absolute;
    width: 100%;
    margin-left: -30px;
    margin-top: 15px;
    height: 30px;
    line-height: 30px;
}

#bulkmultistepsform .fieldset-header .fs-subtitle.error {
    background: #be1e2d;
}

#bulkmultistepsform .fieldset-header .fs-subtitle.success {
    background: #28a745;
}

#bulkmultistepsform .fieldset-header .fs-subtitle.processing {
    background: #17a2b8;
}

#bulkmultistepsform fieldset#classrooms_setup .fieldset-header {
    margin-bottom: 40px;
}

#bulkmultistepsform fieldset#classrooms_setup .classrooms-notice {
    font-size: 16px;
}

#bulk-create-student {
    background: #fff;
    border: 1px solid #e7e9ec;
    border-radius: 4px;
    margin-bottom: 0;
    display: flex;
    min-height: 700px;
    flex-direction: column;
    height: 100% ;
    position: absolute;
    background-color: rgba(255,255, 255, 0.7);
    opacity: 1;
    z-index: 100;
}

#bulk-create-student fieldset .fieldset-body .template-file-text {
    font-size: 16px;
}

#bulk-create-student fieldset .fieldset-body .template-file-text p {
    text-align: left;
    font-weight: 500;
    margin-bottom: 10px;
}

#bulk-create-student fieldset .fieldset-body .template-file-text li {
    text-align: left;
    font-weight: 500;
}

#bulk-create-student fieldset#template_file a.button.download_template {
    background-color: #0e0f53;
    border-color: #0e0f53;
    border-radius: 12px;
}

#bulk-create-student fieldset#template_file a.button.download_template:is(:hover, :active, :focus) {
    background-color: #f91;
    border-color: #f91;
}

#bulk-create-student fieldset#template_file #student_groups_details {
    margin: 0;
    font-weight: 600;
    color: #0e0f53;
}

#bulk-create-student fieldset#file_submit a.button.new_student_link {
    width: fit-content;
    margin: auto;
    background-color: #0e0f53;
    border-color: #0e0f53;
    border-radius: 12px;
}

#bulk-create-student fieldset#file_submit a.button.new_student_link:is(:hover, :active, :focus) {
    background-color: #f91;
    border-color: #f91;
}

#bulk-create-student fieldset#file_submit ul.bulk_password_type_list {
    margin-bottom: .6rem;
}

#bulk-create-student fieldset#file_submit ul.bulk_password_type_list li.bulk_password_type_label {
    text-align: left;
    font-weight: 500;
    font-size: 16px;
}

#bulk-create-student fieldset#file_submit .skipped_student_notice #ignored_students_count {
    background-color: #f9b2b8;
    color: #333;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 17px;
    font-weight: 500;
    margin-right: 10px;
}

#bulk-create-student fieldset#file_submit .proccessed-data {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

#bulk-create-student fieldset#file_submit .proccessed-data span {
    background-color: #e2e2e2;
    color: #333;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 17px;
    font-weight: 500;
}

#bulk-create-student fieldset#file_submit .progress-container {
    width: 100%;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

#bulk-create-student fieldset#file_submit .progress-container .progress-bar {
    height: 20px;
    background-color: #0e0f53;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    text-align: center;
    color: #fff;
    line-height: 20px;
    width: 0%;
    background-size: 40px 40px;
    animation: f 2s linear infinite;
}

#bulk-create-student fieldset#file_submit .file_upload_Container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#bulk-create-student fieldset#file_submit .file_upload_Container input[type=file]#excel_file {
    position: relative;
    cursor: pointer;
    width: 86%;
    padding-left: 8%;
}

#bulk-create-student fieldset#file_submit .file_upload_Container input[type=file]#excel_file::file-selector-button {
    padding: .625rem .9375rem .625rem 2.125rem;
    color: #fff;
    background-color: #0e0f53;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: fit-content;
    width: 40%;
}

#bulk-create-student fieldset#file_submit .file_upload_Container input[type=file]#excel_file:hover::file-selector-button {
    background-color: #3e3f75;
}

#bulk-create-student fieldset#file_submit .file_upload_Container input[type=file]#excel_file::before {
    position: absolute;
    top: 50%;
    left: 20px;
    left: 10%;
    width: .9375rem;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    font-family: bb-icons;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    width: 2em;
    margin-right: .2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    margin-left: .2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "";
}

.disabled {
    position: relative !important;
    opacity: .5 !important;
    color: #b2b2ac !important;
    border-color: #bdd2cb !important;
    background-color: #f5f5f5;
    pointer-events: none;
}

@keyframes f {
    0% {
        background-position: 40px 0;
    }
    to {
        background-position: 0 0;
    }
}

/* Status message styling for consistency with single form */
#bulkmultistepsform .success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 12px;
    margin: 10px 0;
}

#bulkmultistepsform .error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 12px;
    margin: 10px 0;
}

#bulkmultistepsform .processing-message {
    background-color: #d1ecf1;
    border: 1px solid #b8daff;
    color: #0c5460;
    padding: 15px;
    border-radius: 12px;
    margin: 10px 0;
}

/* Dynamic Progress Messages */
.processing-message {
    text-align: left;
    line-height: 1.6;
}

.processing-message p {
    margin: 8px 0;
    font-size: 14px;
}

.processing-message p:first-child {
    font-size: 16px;
    margin-bottom: 12px;
}

.processing-message p:last-child {
    margin-top: 12px;
    font-style: italic;
    opacity: 0.8;
}

.processing-message strong {
    font-weight: 600;
    color: #007cba;
}

/* Success and error message styling */
.success-message p,
.error-message p {
    margin: 8px 0;
    line-height: 1.6;
}

.success-message strong {
    color: #28a745;
}

.error-message strong {
    color: #dc3545;
}

/* Processing state notice styling */
.notice.processing {
    background: #e7f3ff;
    border-color: #007cba;
    color: #0056b3;
}

.notice.processing .processing-message {
    padding: 5px 0;
}

/* Dark mode support for processing messages */
.buddypanel-dark .notice.processing {
    background: #1a2332;
    border-color: #007cba;
    color: #b3d9ff;
}

.buddypanel-dark .processing-message strong {
    color: #66c2ff;
}

#bulkmultistepsform .button,
#bulkmultistepsform button {
    background-color: #0e0f53;
    border-color: #0e0f53;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: montserrat;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

#bulkmultistepsform .woocommerce .button {
    margin: 0px;
}
#bulkmultistepsform .button:hover,
#bulkmultistepsform button:hover,
#bulkmultistepsform .button:focus,
#bulkmultistepsform button:focus {
    background-color: #f91;
    border-color: #f91;
    transform: translateY(-1px);
}

#bulkmultistepsform .button.disabled,
#bulkmultistepsform button.disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Close button styling for bulk form to match single form */
#bulk-create-student fieldset .fieldset-body-component.fieldset-header-component .close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #ff9911;
    cursor: pointer;
    padding-top: 0.5rem;
    transform: translate(20px, 0px);
}

#bulk-create-student #bulkmultistepsform fieldset .fieldset-body-component.fieldset-header-component .close-btn:hover {
    color: #0e0f53;
}

/* Status styles for h2 titles in bulk form */
#bulkmultistepsform .fieldset-body-component.fieldset-header-component h2.success {
    color: #28a745;
}

#bulkmultistepsform .fieldset-body-component.fieldset-header-component h2.error {
    color: #dc3545;
}

#bulkmultistepsform .fieldset-body-component.fieldset-header-component h2.processing {
    color: #17a2b8;
}

#bulkmultistepsform .fieldset-footer {
    margin-bottom: 20px;
}
/* Bulk Notes Section Styling */
.bulk-notes-section {
    margin-bottom: 20px;
}

.bulk-notes-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bulk-notes-title {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
}

.bulk-notes-title:before {
    content: "📋";
    margin-right: 8px;
    font-size: 18px;
}

.bulk-notes-content {
    text-align: left;
}

.bulk-notes-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
    counter-reset: note-counter;
}

.bulk-note-item {
    position: relative;
    margin-bottom: 12px;
    padding-left: 15px;
    line-height: 1.5;
    color: #6c757d;
    font-size: 14px;
    counter-increment: note-counter;
}

.bulk-note-item:before {
    content: counter(note-counter);
    position: absolute;
    left: -20px;
    top: 0;
    background: #007cba;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.bulk-note-item:last-child {
    margin-bottom: 0;
}

/* Dark mode support */
.buddypanel-dark .bulk-notes-container {
    background: #2c3e50;
    border-color: #34495e;
}

.buddypanel-dark .bulk-notes-title {
    color: #ecf0f1;
}

.buddypanel-dark .bulk-note-item {
    color: #bdc3c7;
}

/* Custom File Upload Styling */
.file-upload-section {
    margin: 20px 0;
}

.file-upload-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.custom-file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.file-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
    min-height: 50px;
    width: 100%;
    text-align: center;
}

.file-upload-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #007cba 100%);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    transform: translateY(-1px);
}

.file-upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.2);
}

.file-upload-icon {
    font-size: 18px;
    filter: brightness(1.2);
}

.file-upload-text {
    font-weight: 600;
    flex: 1;
}

.file-upload-hint {
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

/* File selected state */
.file-selected .file-upload-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.file-selected .file-upload-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.file-selected .file-upload-icon {
    content: "✓";
}

/* Selected file display styling improvements */
.selected-file-display {
    margin-top: 15px !important;
    border: 1px solid #28a745 !important;
    background: #f8fff9 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 100% !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1) !important;
}

.selected-file-display .remove-file {
    background: #dc3545 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.selected-file-display .remove-file:hover {
    background: #c82333 !important;
    transform: scale(1.1) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .file-upload-btn {
        padding: 12px 16px;
        font-size: 13px;
        gap: 8px;
    }
    
    .file-upload-hint {
        display: none;
    }
}

/* Dark mode support */
.buddypanel-dark .file-upload-label {
    color: #ecf0f1;
}

.buddypanel-dark .selected-file-display {
    background: #2c3e50 !important;
    border-color: #28a745 !important;
    color: #ecf0f1 !important;
}

/* Seat availability error styling */
#create-student .seat-error,
#bulk-create-student .seat-error {
    background: #ffe6e6;
    border: 2px solid #ff4d4d;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    color: #d32f2f;
}

#create-student .seat-error p,
#bulk-create-student .seat-error p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

#create-student .seat-error p:last-child,
#bulk-create-student .seat-error p:last-child {
    margin-bottom: 0;
}

#create-student .seat-error strong,
#bulk-create-student .seat-error strong {
    font-weight: 600;
    color: #b71c1c;
}

/* Purchase More Seats Notice */
.purchase-more-seats-notice {
    background: #f8f9fa;
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.purchase-more-seats-notice .woocommerce {
    margin: 0;
}

.purchase-more-seats-notice .add_to_cart_form_shortcode {
    margin: 0;
}

/* Enhanced styling for the purchase button */
.purchase-more-seats-notice .woocommerce div.product form.cart button.button.single_add_to_cart_button {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.purchase-more-seats-notice .woocommerce div.product form.cart button.button.single_add_to_cart_button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}