
/* Google Maps Section */
.contact-maps-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    z-index: 1;
    margin-top: 0;
}

.maps-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.maps-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Hero Banner */
.hero-banner {
    background-image: url('images/contact-page.jpg');
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* Scales hero height and spacing with viewport while keeping sane bounds */
    min-height: clamp(520px, 62vh, 880px);
    padding-top: clamp(220px, 30vh, 500px);
    padding-bottom: clamp(32px, 8vh, 120px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none; /* prevent overlay from blocking form interactions */
}

.hero-content {
    text-align: center;
    color: #ffffff;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    color: #ff0000;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Contact Info Overlay */
.contact-info-overlay {
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ff0000;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.contact-row {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.contact-left-column,
.contact-right-column {
    flex: 1;
}

/* Left Column: Get in Touch Card */
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px 0 0 15px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 0.2rem 0;
}

.contact-icon {
    width: 30px;
    height: 30px;
    background: #2c5530;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 0.8rem;
}

.contact-details h5 {
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-details p {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0 0 0.15rem 0;
}

.contact-details small {
    color: #888;
    font-size: 0.7rem;
    font-style: italic;
}

.contact-details strong {
    color: #333;
    font-weight: 600;
}

/* Social Media Section */
.social-section hr {
    border: none;
    height: 1px;
    background: #ddd;
    margin: 0.8rem 0;
}

.social-section p {
    color: #666;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 30px;
    height: 30px;
    background: #606D61;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #1e3a21;
    transform: translateY(-2px);
}

.social-icon i {
    color: white;
    font-size: 0.9rem;
}

/* Right Column: Contact Form */
.contact-form-card {
    background: #606D61;
    border-radius: 0 15px 15px 0;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hero/Overlay responsive sizing for large viewports */
@media (min-width: 1600px) {
    .hero-banner {
        min-height: 78vh;
        padding-top: 46vh;
        padding-bottom: 10vh;
    }
    .contact-info-overlay {
        bottom: -2rem;
    }
}

@media (max-width: 1400px) {
    .hero-banner {
        min-height: 64vh;
        padding-top: 36vh;
        padding-bottom: 8vh;
    }
}

/* Laptop-height specific tweaks: reserve extra space for overlay */
@media (max-height: 900px) and (min-width: 1100px) {
    .hero-banner {
        padding-bottom: 180px; /* keep overlay from covering the map */
    }
}

/* Specific optimization for 1440x900 resolution */
@media (min-width: 1400px) and (max-width: 1500px) and (min-height: 850px) and (max-height: 950px) {
    .hero-banner {
        min-height: 58vh;
        padding-top: 80vh;
        padding-bottom: 160px;
    }
    
    .contact-info-overlay {
        bottom: -1rem;
    }
    
    .contact-container {
        max-width: 1320px;
        padding: 0 1.5rem;
    }
    
    .contact-card,
    .contact-form-card {
        padding: 1.2rem;
    }
    
    .contact-card h3,
    .contact-form-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }
    
    .contact-details h5 {
        font-size: 0.75rem;
    }
    
    .contact-details p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .form-group label {
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.55rem;
        font-size: 0.75rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .contact-section-title {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }
    
    .contact-item {
        padding: 0.15rem 0;
    }
}

@media (max-height: 800px) and (min-width: 992px) {
    /* On short-height laptops (e.g., 1366x768), stack overlay below hero */
    .contact-info-overlay { position: static; bottom: auto; padding: 0 0 1rem 0; z-index: 1; }
    .hero-banner { padding-bottom: 2rem; }
}

@media (max-width: 1400px) and (min-height: 700px) {
    .contact-info-overlay { bottom: -0.75rem; }
}

.contact-form-card h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.send-btn {
    background: #d8d8d8;
    color: #333;
    border: none;
    padding: 0.4rem 2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: auto;
    width: 80%;
    max-width: 300px;
}

.send-btn:hover {
    background: #c0c0c0;
    transform: translateY(-2px);
}

/* Contact Section Responsive Design */
@media (max-width: 992px) {
    .hero-banner {
        min-height: 56vh;
        padding-top: 32vh;
        padding-bottom: 2rem; /* reduce to make room for in-flow overlay */
        background-position: center top;
    }
    /* Between 992px and 768px, let overlay flow under hero to prevent overlap */
    .contact-info-overlay { position: static; bottom: auto; padding: 0 0 1rem 0; z-index: 1; }
    .contact-container { margin-top: -1.25rem; }
    .hero-title {
        font-size: 3rem;
    }
    
    .contact-section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .contact-info-overlay {
        padding: 0;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-row {
        flex-direction: row;
        gap: 0;
    }
    
    .contact-card {
        border-radius: 15px 0 0 15px;
    }
    
    .contact-form-card {
        border-radius: 0 15px 15px 0;
    }
    
    .contact-card,
    .contact-form-card {
        padding: 0.8rem;
    }
    
    .contact-card h3,
    .contact-form-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-item {
        margin-bottom: 0.5rem;
    }
    
    .contact-icon {
        width: 22px;
        height: 22px;
        margin-right: 0.5rem;
    }
    
    .contact-icon i {
        font-size: 0.7rem;
    }
    
    .contact-details h5 {
        font-size: 0.7rem;
    }
    
    .contact-details p {
        font-size: 0.65rem;
    }
    
    .social-icon {
        width: 22px;
        height: 22px;
    }
    
    .form-group label {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    .form-group textarea {
        min-height: 50px;
    }
    
    .send-btn {
        padding: 0.35rem 1.5rem;
        font-size: 0.7rem;
        width: 75%;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    /* On small tablets/landscape phones, let overlay flow below hero */
    .hero-banner {
        min-height: 50vh;
        padding-top: 28vh;
        padding-bottom: 4vh;
    }
    .contact-info-overlay {
        position: static;
        padding: 0 0 1rem 0;
        z-index: 1;
    }
    .contact-container {
        margin-top: -2rem; /* keep cards visually hugging the banner */
    }
    .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-info-overlay {
        padding: 0;
    }
    
    .contact-container {
        padding: 0 0.5rem;
    }
    
    .contact-row {
        gap: 0;
        padding: 1rem;
    }
    
    .contact-card,
    .contact-form-card {
        padding: 0.6rem;
    }
    
    .contact-card h3,
    .contact-form-card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .contact-item {
        margin-bottom: 0.4rem;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
        margin-right: 0.4rem;
    }
    
    .contact-icon i {
        font-size: 0.6rem;
    }
    
    .contact-details h5 {
        font-size: 0.6rem;
    }
    
    .contact-details p {
        font-size: 0.55rem;
    }
    
    .social-icon {
        width: 20px;
        height: 20px;
    }
    
    .form-group label {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.4rem;
        font-size: 0.65rem;
    }
    
    .form-group textarea {
        min-height: 45px;
    }
    
    .send-btn {
        padding: 0.3rem 1.2rem;
        font-size: 0.65rem;
        width: 70%;
        max-width: 160px;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        min-height: 44vh;
        padding-top: 24vh;
        padding-bottom: 2vh;
        background-position: center 20%;
    }
    .hero-title {
        font-size: 2rem;
    }
    
    .contact-section-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-card {
        border-radius: 15px 15px 0 0;
    }
    
    .contact-form-card {
        border-radius: 0 0 15px 15px;
    }
    
    .contact-card,
    .contact-form-card {
        padding: 0.5rem;
    }
    
    .contact-card h3,
    .contact-form-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-item {
        margin-bottom: 0.3rem;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
        margin-right: 0.3rem;
    }
    
    .contact-icon i {
        font-size: 0.55rem;
    }
    
    .contact-details h5 {
        font-size: 0.55rem;
    }
    
    .contact-details p {
        font-size: 0.5rem;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    .form-group label {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.35rem;
        font-size: 0.6rem;
    }
    
    .form-group textarea {
        min-height: 40px;
    }
    
    .send-btn {
        padding: 0.25rem 1rem;
        font-size: 0.6rem;
        width: 65%;
        max-width: 140px;
    }
}

/* Service Center Section */
.service-center-section {
    background-image: url('images/service-center-list.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
}

.service-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.service-center-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.service-center-column {
    flex: 1;
    width: 100%;
}

.service-center-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.service-center-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0;
}

.service-center-content {
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding-left: 2rem;
}

.service-center-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.pdf-icon {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pdf-icon:hover {
    transform: translateY(-3px);
}

.pdf-icon-image {
    display: block;
}

/* Service Center Responsive Design */
@media (max-width: 992px) {
    .service-center-title {
        font-size: 2rem;
    }
    
    .service-center-content {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .service-center-section {
        height: 40vh;
    }
    
    .service-center-title {
        font-size: 1.8rem;
    }
    
    .service-center-content {
        gap: 1rem;
        padding-left: 1rem;
        align-items: flex-start;
    }
    
    .pdf-icon-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .service-center-section {
        height: 35vh;
    }
    
    .service-center-overlay {
        padding: 2rem 0;
    }
    
    .service-center-content {
        padding-left: 0.5rem;
    }
    
    .service-center-title {
        font-size: 1.5rem;
    }
    
    .pdf-icon-image {
        width: 40px;
        height: 40px;
    }
}