/* Contact form styles */
.contact-form {
    padding: 4rem 0;
    background: var(--sky);
}

.contact-form .form-control {
    background: var(--white);
    border: 1px solid rgba(10,30,10,0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--teal-dark);
    box-shadow: 0 0 0 0.2rem rgba(58,122,42,0.1);
}

.contact-form label {
    color: var(--green-deep);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form .form-text {
    color: var(--black);
    font-size: 0.875rem;
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-submit {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Form states */
.contact-form .was-validated .form-control:valid {
    border-color: var(--sage);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2357910c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.contact-form .was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Form feedback states */
.contact-form .invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.contact-form .valid-feedback {
    color: var(--sage);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form loading state */
.contact-form .form-loading {
    position: relative;
}

.contact-form .form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.contact-form .form-loading::before {
    content: '';
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--aqua-pale);
    border-top-color: var(--teal-dark);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success message */
.contact-form .success-message {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--mint-frost);
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.contact-form .success-message.show {
    display: block;
}

.contact-form .success-message .icon {
    font-size: 3rem;
    color: var(--sage);
    margin-bottom: 1rem;
}

/* Privacy notice */
.contact-form .privacy-notice {
    font-size: 0.875rem;
    color: var(--black);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(10,30,10,0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 2rem 0;
    }
    
    .contact-form .btn-submit {
        width: 100%;
    }
}