﻿/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== Hero Section with Background Image ===== */
.contact-hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 50, 0, 0.85), rgba(0, 30, 0, 0.9)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

    .contact-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(0, 100, 0, 0.2) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(139, 195, 74, 0.15) 0%, transparent 50%);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.contact-hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #8BC34A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.contact-hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

    .hero-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
        background: linear-gradient(45deg, #45a049, #7CB342);
    }

/* ===== Contact Section with Background Pattern ===== */
.contact-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)), url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L50,0 L50,50 L0,50 Z" fill="%234CAF50" opacity="0.05"/><path d="M50,50 L100,50 L100,100 L50,100 Z" fill="%234CAF50" opacity="0.05"/></svg>');
    background-size: 200px 200px;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(139, 195, 74, 0.05) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(76, 175, 80, 0.05) 0%, transparent 20%);
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

    .section-header h2 {
        font-size: 2.8rem;
        color: #2E7D32;
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(to right, #4CAF50, #8BC34A);
            border-radius: 2px;
        }

    .section-header p {
        font-size: 1.2rem;
        color: #666;
        max-width: 600px;
        margin: 0 auto;
    }

/* ===== Contact Wrapper ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

/* ===== Contact Info ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #4CAF50;
}

    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.info-card h3 {
    color: #2E7D32;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.info-card p {
    color: #555;
    line-height: 1.6;
    margin: 5px 0;
}

/* Social Links */
.social-links {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

    .social-links h3 {
        color: #2E7D32;
        margin-bottom: 20px;
    }

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background: linear-gradient(45deg, #4CAF50, #8BC34A);
        color: white;
        transform: translateY(-3px);
    }

/* ===== Contact Form ===== */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .contact-form::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(to right, #4CAF50, #8BC34A, #FFC107);
    }

.form-header {
    margin-bottom: 30px;
}

    .form-header h2 {
        color: #2E7D32;
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .form-header p {
        color: #666;
    }

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

    .form-group label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
        font-weight: 600;
        color: #444;
    }

        .form-group label i {
            color: #4CAF50;
        }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: #f9f9f9;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #4CAF50;
            background: white;
            box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
        }

.custom-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-right: 50px;
}

.error-message {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* Submit Button */
.form-footer {
    margin-top: 30px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-submit:hover {
        background: linear-gradient(45deg, #45a049, #1B5E20);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

.form-note {
    text-align: center;
    margin-top: 15px;
    color: #777;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Success Message */
.success-message {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.5s ease;
}

    .success-message i {
        font-size: 24px;
    }

/* ===== Branches Section ===== */
.branches-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.branch-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .branch-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.branch-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.branch-card h3 {
    color: #2E7D32;
    margin-bottom: 10px;
}

.branch-card p {
    color: #666;
    margin: 5px 0;
}

/* ===== Map Section with Background ===== */
.map-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1542744095-fcf48d80b0fd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(76, 175, 80, 0.2) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(255, 193, 7, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.map-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

    .map-header h2 {
        font-size: 2.8rem;
        margin-bottom: 15px;
        background: linear-gradient(45deg, #fff, #8BC34A);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

    .map-container iframe {
        width: 100%;
        height: 500px;
        border: none;
        display: block;
    }

.map-info {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 3;
}

.map-info-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 25px;
    border-radius: 15px;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

    .map-info-card h3 {
        color: #2E7D32;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .map-info-card p {
        margin: 8px 0;
        color: #555;
    }

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.9)), url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

    .cta-content h2 {
        font-size: 3rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .cta-content p {
        font-size: 1.3rem;
        margin-bottom: 40px;
        opacity: 0.9;
    }

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 180px;
}

    .cta-btn.primary {
        background: white;
        color: #2E7D32;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

        .cta-btn.primary:hover {
            background: #f5f5f5;
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
        }

    .cta-btn.secondary {
        background: transparent;
        color: white;
        border: 2px solid white;
    }

        .cta-btn.secondary:hover {
            background: white;
            color: #2E7D32;
            transform: translateY(-3px);
        }

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide {
    animation: slideIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-left {
    animation: slideIn 1s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-right {
    animation: slideInRight 1s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-hero h1 {
        font-size: 3.5rem;
    }

    .cta-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 70vh;
        min-height: 500px;
    }

        .contact-hero h1 {
            font-size: 2.8rem;
        }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .map-container iframe {
        height: 400px;
    }

    .map-info {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-hero p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .info-card,
    .contact-form {
        padding: 20px;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }
}
