/* Form message styles */
.form-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Form loading state */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Improved form styling */
#contactForm {
    max-width: 600px;
    margin: 0 auto;
}

#contactForm label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #005fa3;
    box-shadow: 0 0 0 2px rgba(0, 95, 163, 0.2);
}

#contactForm button[type="submit"] {
    background-color: #005fa3;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

#contactForm button[type="submit"]:hover:not(:disabled) {
    background-color: #004a82;
}

/* reCAPTCHA container */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contactForm {
        margin: 0 20px;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}
