/**
 * Contact Form Component
 *
 * Styles for the contact form section.
 * Uses CSS variables from colors-variables.css for theming.
 */

/* ========================================
   Contact Form Container
   ======================================== */

.contact-form .form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 58, 134, 0.25);
    outline: none;
}

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

.single-form {
    margin-bottom: 0;
}

/* ========================================
   Contact Form Grid Layout
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}

.contact-grid .contact-message,
.contact-grid .contact-captcha,
.contact-grid .contact-submit {
    grid-column: 1 / -1;
}

.contact-grid .contact-submit {
    text-align: center;
}

/* ========================================
   Contact Form Responsive
   ======================================== */

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Make contact section match other sections' width on mobile */
    .contact-area .row {
        margin: 0;
    }

    .contact-area .col-lg-8 {
        padding: 0;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========================================
   Form Message Feedback
   ======================================== */

.form-message {
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message:not(:empty) {
    display: block;
}

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

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