/*
 * Quote form styles.
 *
 * These rules used to live in an inline <style> block on contact.html only,
 * which meant the form markup rendered unstyled anywhere else. They are shared
 * now so the estimate form can appear on every page that discusses cost.
 * contact.html loads this file too, so there is one definition, not two.
 */

/* --- the white card the form sits in --- */
.contact-form-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contact-form-card h3 {
    color: #111;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-form-card .subtitle {
    color: #666;
    margin-bottom: 2rem;
}

/* --- fields --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* --- the embedded estimate section (not used on contact.html) --- */
.quote-form-section {
    padding-top: 0;
}

.quote-form-intro {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.quote-form-intro h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.quote-form-intro p {
    color: #bbb;
    line-height: 1.7;
    font-size: 1.05rem;
}

.quote-form-section .contact-form-card {
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    /* scoped to the embedded section so contact.html keeps its existing padding */
    .quote-form-section .contact-form-card {
        padding: 2rem 1.5rem;
    }
}

/* --- spam trap: off-screen, not display:none, so form-filling bots still see and fill it --- */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
