/* 
  Pro Rapid Building Group - Contact Us Page Styles
*/

/* --- General Utilities --- */
.text-dark {
    color: #111 !important;
}
.text-white {
    color: var(--white) !important;
}

/* --- Hero Section --- */
.contact-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: 130px; /* Offset for fixed header */
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.contact-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 50%, rgba(17,17,17,0.2) 100%);
}

.contact-hero-content {
    max-width: 650px;
    padding-top: 40px;
}

.contact-hero-content .hero-title {
    font-size: 5rem;
    margin-bottom: 25px;
    line-height: 0.95;
}

.contact-hero-text {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* --- Main Contact Section (Split) --- */
.contact-main {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
}

/* Form Side */
.contact-form-side .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.form-intro {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: #333;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Info Side */
.contact-info-side .section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: var(--white);
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(200,16,46,0.1); /* light red tint */
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.info-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Map Section --- */
.map-section {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #eaeaea; /* fallback */
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-overlay-box {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background-color: var(--white);
    padding: 40px;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
}

.map-overlay-icon {
    margin-bottom: 15px;
}

.map-overlay-box h4 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.1;
}

.map-overlay-box p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Experience You Can Trust --- */
.trust-section {
    background-color: #f8f9fa; /* slightly off-white */
    padding: 100px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.trust-item {
    text-align: center;
    padding: 0 10px;
}

.trust-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.trust-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.trust-item p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* --- Bottom CTA Section --- */
.contact-cta {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    background-color: #111;
}

.contact-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.contact-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17,17,17,1) 0%, rgba(17,17,17,0.8) 50%, rgba(17,17,17,0.4) 100%);
    z-index: 1;
}

.contact-cta-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-cta-content .cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--white);
    line-height: 1;
    margin-bottom: 15px;
}

.contact-cta-content p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 500px;
}

.contact-cta-btn .btn-outline {
    border-width: 2px;
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.contact-cta-btn .btn-outline:hover {
    background: var(--white);
    color: #111;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
    }
    .map-overlay-box {
        right: 50%;
        transform: translate(50%, -50%);
        text-align: center;
        width: 80%;
    }
    .map-overlay-icon {
        justify-content: center;
    }
    .contact-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .contact-cta-content p {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .info-list {
        padding: 20px;
    }
    .contact-hero-content .hero-title {
        font-size: 3.5rem;
    }
}
