/* * MEAK Forms Frontend Stylesheet
 *
 * This file contains all the styles for the public-facing contact form.
 * It is designed to replicate the original static HTML form's appearance
 * and ensure it is fully responsive.
 */

/* --- Main Form Container --- */
#meak-form-container {
    background-color: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
    /* Uses a common sans-serif font stack. Assumes a font like 'Poppins' might be loaded by the theme. */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* --- Header, Content, and Footer Sections --- */
.form-content {
    padding: 2.5rem;
}

.form-header {
    padding: 1.5rem 2.5rem;
    background-color: #111827; /* Dark Gray/Black Header */
    color: #FFFFFF !important;
    border-bottom: 1px solid #374151;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.form-footer {
    padding: 1.5rem 2.5rem;
    background-color: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

/* --- Buttons --- */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    line-height: 1.5;
}

.btn-primary {
    background-color: #111827; /* Dark Gray/Black Button */
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #374151; /* Darker shade for hover */
}

.btn-primary:disabled {
    background-color: #9CA3AF; /* Gray for disabled state */
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Form Fields: Inputs, Textarea, Labels --- */
input[type="text"], 
input[type="email"], 
input[type="tel"], 
select, 
textarea {
    border: 1px solid #D1D5DB; /* Gray-300 */
    padding: 0.75rem;
    border-radius: 6px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #FFF;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-size: 1rem;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="tel"]:focus, 
select:focus, 
textarea:focus {
    border-color: #111827; /* Dark Accent on focus */
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
    outline: none;
}

textarea {
    min-height: 120px;
}

label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: #374151;
}

/* --- Success Message --- */
.success-message {
    text-align: center;
    padding: 4rem 1rem;
    display: none; /* Hidden by default, shown via JS */
}

.success-message i.fa-check-circle {
    font-size: 4rem;
    color: #10B981; /* Success Green */
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

/* --- Responsive Grid Layout --- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Single column on mobile */
    gap: 1.5rem;
}

/* On screens 768px and wider, switch to a two-column grid */
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Allows specific items to span both columns */
    .form-grid .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* --- Font Awesome Icons --- */
/* Ensures icons used in buttons and messages are available. 
   This is a reliable way to include them if the theme doesn't already. */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
