.login-btn:hover {
    background: #3a7d5fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 157, 119, 0.4);
    color: white;
}

#captcha-image {
    border: 1px solid #ccc;
    border-radius: 5px;
}
#refresh-captcha {
    margin-left: 10px;
}

.submitting i {
    animation: spin 2s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.entrepreneur-page {
    margin: 20px 0 50px;
}

.entrepreneur-general-info,
.entrepreneur-training-info,
.entrepreneur-professional-qualification-info {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1rem 1rem;
}

.centered-form-field {
    width: 50%;
    max-width: 400px;
}

.centered-form-field .form-control {
    width: 100%;
}

/* Ensure consistent layout for form rows */
.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    width: 87%;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.form-field {
    flex: 1;
    margin-right: 1rem;
}

.form-field:last-child {
    margin-right: 0;
}

.location-field,
.center-field {
    display: none;
}

.head-title {
    color: var(--primary-color);
    font-weight: 700;
}

.hidden {
    display: none !important;
}

.form-check .form-check-input {
    width: 50%;
}

.input-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn {
    margin-left: 5px;
}

.preview-container {
    margin-top: 5px;
    text-align: center;
}

.error {
    color: #dc3545;
    font-size: 0.9em;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

span.select2-selection.select2-selection--single.select2-selection--clearable {
    height: 40px !important;
}

span.select2-selection.select2-selection--single {
    height: 40px !important;
}

.toggle-btn {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.toggle-btn:hover {
    color: #0a3d1f;
}

.toggle-btn.collapsed .fas {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.equipment-row .form-field {
    flex: 1;
    margin-right: 1rem;
}

.equipment-row .form-field:last-child {
    margin-right: 0;
    flex: 1;
}

.remove-button-container {
    width: 20px;
    height: 30px;
    margin-top: 30px;
}

.training-fields .form-field {
    flex: 1;
    margin-right: 1rem;
}

.training-fields .form-field:last-child {
    margin-right: 0;
    display: flex;
    justify-content: center;
}

.remove-training-row {
    margin-left: 0;
    margin-top: 1rem;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

.invisible {
    visibility: hidden;
}

#custom-location-dropdowns {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 87%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

#custom-location-dropdowns .location-field {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Override centered-form-field within custom-location-dropdowns */
#custom-location-dropdowns .centered-form-field {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Ensure the select element spans the full width */
#custom-location-dropdowns .form-control {
    width: 100%;
}

/* Ensure parent containers do not impose centering */
#entrepreneurFormCollapse {
    text-align: left;
}

/* Remove padding from the col to align content to the left edge */
#entrepreneur-form .col {
    padding-left: 0;
    padding-right: 0;
}

.sub-center-field {
    display: none;
}

.add-training-row,
.add-professional-cert,
.add-equipment-row,
.add-mfs-accounts-row {
    border-radius: 10px;
    border: 2px var(--primary-color) solid;
    width: 160px;
    height: 40px;
    color: var(--primary-color);
    background-color: white;
}

.add-training-row:hover,
.add-professional-cert:hover,
.add-equipment-row:hover,
.add-mfs-accounts-row:hover {
    color: white;
    background-color: var(--primary-color);
}

.custom-btn {
    color: white;
    background-color: var(--primary-color);
}

.custom-btn:hover {
    color: white;
    background-color: #06ad47;
}

.custom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.custom-col.start-date {
    flex: 1.14;
}

.custom-col.end-date {
    flex: 1;
    margin-right: 0;
    margin-left: 19px;
}

.custom-remove-btn-wrapper {
    flex: 0 0 40px;
    height: 38px;
    display: flex;
    align-items: center;
}

.custom-remove-btn-wrapper .btn {
    width: 40px;
    height: 38px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.remove-professional-row {
    margin-top: 44px;
}

.line-entry {
    position: relative;
    padding-top: 20px;
    margin-top: 20px;
}

.line-entry:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50px;
    right: 50px;
    height: 1px;
    background-color: #dee2e6;
}

.line-entry-inline {
    position: relative;
    padding-top: 20px;
    margin-top: 20px;
}

.line-entry-inline:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50px;
    right: 50px;
    height: 1px;
    background-color: #dee2e6;
}

.custom-form-check {
    padding-left: 4.5rem;
}

.equipment-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    width: 87%;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.equipment-row .form-field {
    flex: 1;
    margin-right: 1rem;
}

.equipment-row .form-field:last-child {
    margin-right: 0;
    flex: 1;
}

.equipment-row .remove-button-container {
    flex: 0 0 50px;
    justify-content: center;
    align-items: flex-end;
}

#center-field {
    margin-left: 1rem !important;
}

.agent-type-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Space between label and radio buttons */
}

.agent-type-label {
    font-weight: 500;
    white-space: nowrap; /* Prevent label from wrapping */
}

.agent-type-radio {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between radio buttons */
}

.agent-type-radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between radio input and its label */
}

.agent-type-radio-input {
    margin: 0; /* Remove default margin for tighter alignment */
    cursor: pointer;
}

.agent-type-radio-label {
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap; /* Prevent radio button labels from wrapping */
}

.stepper-wrapper {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0; /* Add padding to prevent glow cutoff */
    z-index: 1; /* Create stacking context for entire stepper */
}
.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    /* z-index: 2; REMOVED to allow children to interleave */
    cursor: pointer;
}
.stepper-item:hover .step-counter {
    transform: scale(1.05);
}
.stepper-item.active .step-counter:hover {
    transform: scale(1.15) !important;
}
.stepper-item::before,
.stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 20px;
    z-index: -10 !important; /* Force lines to back */
    transition: border-color 0.4s ease-in-out;
}

.stepper-item::before {
    left: -45%;
}
.stepper-item::after {
    left: 50%;
}

.stepper-item .step-counter {
    position: relative;
    z-index: 10 !important; /* Force counter to front */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    margin-bottom: 6px;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease-in-out !important;
}
.stepper-item.active .step-counter {
    background-color: var(--primary-color) !important;
    transform: scale(1.1) !important;
    animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgb(0, 106, 78);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(15, 80, 41, 0);
    }
}

.stepper-item.completed::before,
.stepper-item.completed::after {
    border-bottom: 2px solid var(--primary-color) !important;
}

.stepper-item.completed .step-counter {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.stepper-item.active::before {
    border-bottom: 2px solid var(--primary-color) !important;
}
.stepper-item:first-child::before {
    content: none;
}
.stepper-item:last-child::after {
    content: none;
}
.wizard-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.wizard-step.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
