/* Contact Form Enhancements */

.input-item.has-error input,
.input-item.has-error textarea {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-messege.text-success {
    color: #28a745 !important;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.form-messege.text-danger {
    color: #dc3545 !important;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

/* reCAPTCHA container styling */
#contact-recaptcha-container {
    margin: 20px 0;
    text-align: center;
}

#contact-recaptcha-container .g-recaptcha {
    display: inline-block;
}

/* Loading state for submit button */
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn[disabled]:hover {
    opacity: 0.6;
}

/* Input focus states */
.input-item input:focus,
.input-item textarea:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
    outline: none;
}

/* Valid input state */
.input-item input:valid,
.input-item textarea:valid {
    border-color: #e0e0e0;
}

/* Form animation for submission */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input-item.has-error {
    animation: shake 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #contact-recaptcha-container {
        margin: 15px 0;
    }
    
    .form-messege {
        font-size: 14px;
        padding: 12px;
    }
}

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 7px;
        opacity: 1;
    }
    40% {
        height: 14px;
        width: 7px;
        opacity: 1;
    }
    100% {
        height: 14px;
        width: 7px;
        opacity: 1;
    }
}

.form-messege.text-success::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

.form-messege.text-danger::before {
    content: '⚠';
    color: #dc3545;
    font-weight: bold;
    margin-right: 8px;
} 