/* Contact Us Page Specific Styles */

/* CSS Variables */
:root {
    --brand: #25632D;
    --text: #111928;
    --muted: #847576;
    --bg: #ffffff;
    --footer: #111928;
    --stroke: #e5e7eb;
}

/* Estimate Section */
.estimate-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.estimate-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.estimate-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
}

.estimate-header p {
    font-size: 1.125rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.estimate-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Quote Form */
.quote-form-wrapper {
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--stroke);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 45, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Button Styles */
.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn.primary {
    background: var(--brand);
    color: var(--bg);
    border: 2px solid var(--brand);
}

.btn.primary:hover {
    background: #1e4f25;
    border-color: #1e4f25;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 45, 0.3);
}

.btn.primary:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Form Message */
#formMsg {
    padding: 1rem;
    border-radius: 8px;
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #15803d;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 1.45rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--bg);
    font-size: 1.25rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.contact-card p {
    margin: 0 0 0.25rem 0;
    color: var(--text);
    line-height: 1.5;
}

.contact-card a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card small {
    color: var(--muted);
    font-size: 0.875rem;
}

.contact-card address {
    font-style: normal;
    line-height: 1.5;
}

/* Why Choose Us Section */
.why-choose-section {
    padding: 4rem 0;
    background: var(--bg);
}

.why-choose-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--muted);
    margin: 0 auto 3rem auto;
    max-width: 600px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--brand);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.feature-icon i {
    color: var(--bg);
    font-size: 1.5rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem 0;
}

.feature-item p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Page Hero */
.page-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
}

/* Focus and Accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.contact-card:focus-within {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .estimate-content {
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .estimate-header h2,
    .why-choose-section h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .estimate-section {
        padding: 3rem 0;
    }
    
    .why-choose-section {
        padding: 3rem 0;
    }
    
    .estimate-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quote-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-cards {
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .estimate-header {
        margin-bottom: 2rem;
    }
    
    .estimate-header h2,
    .why-choose-section h2 {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .estimate-section {
        padding: 2rem 0;
    }
    
    .why-choose-section {
        padding: 2rem 0;
    }
    
    .quote-form-wrapper {
        padding: 1rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .estimate-header h2,
    .why-choose-section h2 {
        font-size: 1.75rem;
    }
    
    .feature-item {
        padding: 1.5rem 0.5rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1.125rem;
    }
}