/* --- Brand Color Variables --- */
:root {
    --color-primary: #22c55e; /* Light Green */
    --color-text: #1e293b;    /* Dark Slate for text/primary content */
    --color-white: #ffffff;
    --color-light-bg: #f8fafc; /* Very light gray page background */
    --color-border: #e2e8f0;  /* Subtle border color (Light Grey) */
    --color-placeholder: #94a3b8; /* Muted text/placeholder */
    --shadow-base: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1); /* Deeper shadow on hover/success */
}

/* === 1. Main Container & Form Card === */
.quote-container {
    padding: 3rem 1rem; /* Slightly reduced vertical padding */
    background-color: var(--color-light-bg); 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.quote-form-card {
    background-color: var(--color-white);
    /* Reduced Max Width for a smaller footprint */
    max-width: 700px; 
    width: 95%;
    padding: 2rem; /* Reduced padding from 2.5rem */
    border-radius: 12px;
    box-shadow: var(--shadow-base);
    transition: box-shadow 0.3s ease;
}

/* === 2. Header Styles === */
.quote-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.quote-header h1 {
    font-size: 1.8rem; /* Slightly reduced font size */
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.quote-header p {
    font-size: 0.95rem;
    color: var(--color-placeholder);
    line-height: 1.5;
}

/* === 3. Form Grid Layout === */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1; /* Textarea spans both columns */
}

/* === 4. Form Elements (Inputs, Selects, Textareas) === */
label {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem; /* Slightly reduced input padding */
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-light-bg); 
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder, textarea::placeholder {
    color: var(--color-placeholder);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); 
    background-color: var(--color-white);
}

textarea {
    resize: vertical;
    min-height: 120px; /* Reduced min height */
}

/* 5. Submit Button */
.submit-group {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.9rem 2.25rem; /* Slightly reduced button padding */
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-submit:hover {
    background-color: #16a34a;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}

/* 6. ReCAPTCHA Styling */
.g-recaptcha {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--color-border); 
}

/* === 8. Responsiveness (Mobile Optimization) === */
@media (max-width: 768px) {
    .quote-form-card {
        padding: 1.25rem; /* Even smaller padding on very small screens */
    }

    .quote-header h1 {
        font-size: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Stack all elements into a single column */
        gap: 1.25rem;
    }

    .btn-submit {
        width: 100%; /* Full width button on mobile */
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* * --- Premium Thank You Screen Styles ---
 * Theme: Light Green (#66BB6A), White (#FFFFFF), Grey (#333333, #EEEEEE)
 * Professional, Responsive, Light Mode
 */


/* 2. Main Container Styling - Premium Card Effect */
.thank-you-box {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Soft, professional shadow */
    transition: transform 0.3s ease-in-out;
}

/* 3. Content Wrapper - Flexbox for Alignment */
.thank-you-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px; /* Provides spacing at the bottom of the card content */
}

/* 4. Icon Styling (Light Green Theme) */
.thank-you-box .fa-check-circle {
    font-size: 4rem; /* Large, prominent icon */
    color: #66BB6A; /* Light Green */
    margin-bottom: 10px;
}

/* 5. Text Styling */
.thank-you-text h2 {
    font-size: 1.8rem;
    color: #333333; /* Dark Grey for prominence */
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.thank-you-text p {
    font-size: 1rem;
    color: #555555; /* Slightly lighter grey for body text */
    line-height: 1.6;
    margin: 0;
}

.thank-you-text strong {
    color: #66BB6A; /* Highlight important text in green */
    font-weight: 600;
}

/* 6. Responsive Adjustments (Mobile Optimization) */
@media (max-width: 600px) {
    .thank-you-box {
        padding: 30px 20px;
        border-radius: 0; /* Optional: Make it full width on very small screens */
        min-height: 100vh;
        max-width: none;
        box-shadow: none; /* Remove shadow on full screen mobile */
    }

    .thank-you-content-wrapper {
        gap: 15px;
        margin-bottom: 25px;
    }

    .thank-you-box .fa-check-circle {
        font-size: 3.5rem;
    }

    .thank-you-text h2 {
        font-size: 1.5rem;
    }
    
    .thank-you-text p {
        font-size: 0.9rem;
    }
}