/* Fix dropdown arrow - exclude dropdown-toggle from underline animation */
.navbar .nav-link.dropdown-toggle::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-bottom: 0;
    border-left: 5px solid transparent;
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    transform: none;
    transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is open */
.navbar .nav-item.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Remove underline effect from dropdown toggle */
.navbar .dropdown-toggle:hover::after {
    width: auto;
    background-color: transparent;
}

/* ===== Form Validation Styles ===== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group .text-danger {
    color: #dc3545;
}

/* Error message styling */
.error-message {
    display: none;
    margin-top: 5px;
}

.error-message .error-text {
    display: inline;
    color: #dc3545;
    font-size: 13px;
}

/* Invalid input styling */
.form-group input.is-invalid,
.form-group select.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
}

.form-group input.is-invalid:focus,
.form-group select.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Valid input styling */
.form-group input.valid,
.form-group select.valid {
    border-color: #28a745 !important;
}

/* Form message alerts */
#form-message {
    margin-top: 15px;
}

#form-message .alert {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
}

#form-message .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Submit button disabled state */
#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
