/* Contact Page Specific Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.contact-page .card-title {
    border-bottom: 2px solid #622a8e;
    /* Increase border size and make it green */
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating>label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: all 0.2s ease-in-out;
    color: #6c757d;
}

.form-floating>.form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    background-color: #ffffff;
    margin: 0;
    /* Remove margin */
    box-shadow: none;
    /* Remove any box shadow */
    border: 1px solid #ced4da;
    /* Ensure border is consistent */
    border-radius: 0.25rem;
    /* Ensure border radius is consistent */
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    padding: 0 0.25rem;
    background: white;
    color: #622a8e;
}

.is-valid {
    border-color: #622a8e !important;
}

.is-valid:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.submit-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .form-floating>.form-control {
        height: calc(3rem + 2px);
        padding: 0.75rem;
    }

    .form-floating>label {
        padding: 0.75rem;
    }
}

.contact-item i {
    font-size: 15px;
    margin-right: 0.5rem;
}
/* Add spacing below reCAPTCHA element */
.g-recaptcha {
    margin-bottom: 20px; /* Adjust as needed */
}