/* Fix for registration form click interception issues */
/* Ensure proper spacing when using fixed-top navbar */

/* Add padding to body when fixed navbar is present */
body.has-fixed-navbar,
body:has(.navbar.fixed-top) {
 padding-top: 80px; /* Adjust based on navbar height */
}

/* Mobile adjustments */
@media (max-width: 768px) {
 body.has-fixed-navbar,
 body:has(.navbar.fixed-top) {
 padding-top: 70px;
 }
}

/* Ensure form elements are clickable */
form button[type="submit"],
form input[type="submit"],
.btn-submit,
.signup-form button,
.login-form button,
#sign-up-button,
#submit-btn {
 position: relative;
 z-index: 1100 !important;
 pointer-events: auto !important;
}

/* Fix for modal/dropdown overlaps */
.modal-backdrop {
 z-index: 1040;
}

.dropdown-menu {
 z-index: 1090;
}

/* Fix navbar z-index hierarchy */
.navbar.fixed-top {
 z-index: 1080 !important;
}

.navbar-toggler {
 z-index: 1085 !important;
}

/* Ensure form fields are not covered */
.form-group,
.form-control,
.form-check {
 position: relative;
 z-index: 1;
}

/* Fix for sticky elements that might block clicks */
.sticky-top,
.fixed-top,
.fixed-bottom {
 pointer-events: none;
}

.sticky-top *,
.fixed-top *,
.fixed-bottom * {
 pointer-events: auto;
}

/* Ensure submit buttons are always clickable */
button[type="submit"]:not(:disabled) {
 cursor: pointer !important;
 pointer-events: auto !important;
}

/* Fix for overlapping elements on registration pages */
.signup-container,
.login-container,
.registration-form,
#signup-form,
#login-form {
 position: relative;
 z-index: 5;
}

/* Ensure proper scroll behavior */
html {
 scroll-behavior: smooth;
 scroll-padding-top: 80px; /* Account for fixed navbar */
}

/* Debug helper - uncomment to visualize clickable areas */
/*
button[type="submit"] {
 outline: 2px solid red !important;
}
*/