/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.navbar-brand .logo-responsive {
    height: 40px; /* Removed !important if no conflicts */
}

/* Red Asterisk for Required Fields */
.form-group label[for="firstname"],
.form-group label[for="lastname"],
.form-group label[for="email"],
.form-group label[for="phone"],
.form-group label[for="membershipCategory"],
.form-group label[for="membershipNumber"] {
    position: relative;
}

.form-group label[for="firstname"]::after,
.form-group label[for="lastname"]::after,
.form-group label[for="email"]::after,
.form-group label[for="phone"]::after,
.form-group label[for="membershipCategory"]::after,
.form-group label[for="membershipNumber"]::after {
    content: "*";
    color: red;
    position: absolute;
    top: 0;
    right: -10px;
    font-size: 1.2rem;
}

/* Header Section */
.header-section {
    background: linear-gradient(180deg, #0051a8, #006cd9);
    padding: 20px 0;
    color: white;
    position: relative;
    z-index: 100;
}

.event-details {
    margin-top: 10px;
}

.event-detail {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 1.1rem;
}

.event-detail svg {
    color: white;
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Layout */
.full-page-layout {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 150px);
    width: 100%;
}

.form-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 15px;
    z-index: 200;
    background-color: #f8f9fa;
}

.form-section {
    max-width: 800px;
    width: 100%;
}

.image-section {
    flex: 1;
    background: url('img/front_reduced.jpg') no-repeat center center;
    background-size: cover;
    display: none;
}

/* Form Styling */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h3 {
    margin-bottom: 30px;
    font-weight: 600;
    color: #333;
    font-size: 1.75rem;
    text-align: center;
}

.form-control,
.select2-container--default .select2-selection--single {
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    height: 38px;
    padding: 6px 12px;
}

.form-control:focus,
.select2-container--default .select2-selection--single:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 6px rgba(13, 110, 253, 0.3);
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 26px;
}

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

/* Checkbox List */
.checkbox-list {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.checkbox-list label[for="specialization"] {
    display: block;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.checkbox-list .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.checkbox-list .col-md-6 {
    padding: 5px 15px;
}

.checkbox-list .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-list .form-check-input {
    margin-top: 0;
    margin-right: 8px;
    flex-shrink: 0;
}

.checkbox-list .form-check-label {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #333;
    white-space: normal;
    line-height: 1.2;
}

/* Button Styling */
.btn-primary {
    background-color: #0d6efd;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-primary .spinner-border {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.btn-primary.loading .spinner-border {
    display: inline-block;
}

/* OTP Modal */
.otp-section {
    display: flex;
    justify-content: space-between;
    max-width: 200px;
    margin: 15px auto;
}

.otp-input {
  width: 50px;
  font-size: 20px;
  padding: 10px;
}


.otp-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 6px rgba(13, 110, 253, 0.3);
}

/* Footer */
footer {
    text-align: center;
    background-color: #f1f1f1;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .image-section {
        display: block;
    }

    .form-wrapper {
        padding: 40px 30px;
    }

    .full-page-layout {
        flex-direction: row;
    }
}

@media (max-width: 767px) {
    .form-section {
        padding: 0 15px;
    }

    .header-section h1 {
        font-size: 1.75rem;
    }

    .header-section .btn-container {
        justify-content: center;
        margin-top: 15px;
    }

    .form-wrapper {
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {
    .event-detail {
        font-size: 1rem;
    }

    .event-detail svg {
        width: 1.1rem;
        height: 1.1rem;
    }
}

@media (max-width: 576px) {
    .event-detail {
        font-size: 0.5rem;
    }

    .event-detail svg {
        width: 1rem;
        height: 1rem;
    }

    .checkbox-list .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .otp-input {
  width: 50px;
  font-size: 20px;
  padding: 10px;
  border-radius: 5px;
}

  }

/* OTP Modal Centering */
#otpModal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 0.5rem);
    margin: 0 auto;
     padding: 0 10px;
}

#otpModal .modal-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#otpModal .btn {
    font-size: 0.8rem !important;
  }