﻿/* =========================================
   CONTACT PAGE STYLING - BLACK & WHITE
   ========================================= */

.contact-page {
    min-height: 100vh;
    background: #fff;
    padding-top: 0;
}

/* =========================================
   PAGE TITLE SECTION (EDGE-TO-EDGE)
   ========================================= */
.page-title-section {
    background: #000000; /* Strict Black */
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

    /* Animated background pattern */
    .page-title-section::before {
        content: '';
        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% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
        animation: patternMove 20s ease-in-out infinite;
    }

@keyframes patternMove {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.page-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: titleFadeIn 1s ease-out;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   CONTACT CARDS SECTION
   ========================================= */
.contact-cards-section {
    background: #f8f8f8; /* Neutral Light Gray */
    padding: 60px 20px;
}

.contact-cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-color: #000000;
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #000000; /* Black Icon Background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card-icon svg {
    width: 35px;
    height: 35px;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: #000;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.contact-card p {
    font-size: 1rem;
    color: #333;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* =========================================
   MAIN CONTENT AREA (OPTIMIZED)
   ========================================= */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* =========================================
   CONTACT FORM (OPTIMIZED SPACING)
   ========================================= */
.contact-form-section {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
}

    .contact-form-section h2 {
        font-size: 2rem;
        color: #000;
        margin: 0 0 8px 0;
        font-weight: 800;
    }

    .contact-form-section > p {
        font-size: 0.95rem;
        color: #666;
        margin: 0 0 25px 0;
    }

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .form-group label {
        font-size: 0.9rem;
        font-weight: 700;
        color: #000;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        border: 2px solid #e2e8f0;
        border-radius: 10px;
        font-size: 1rem;
        font-family: inherit;
        transition: all 0.3s ease;
        background: #fff;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #000000;
            box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
        }

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

.btn-submit {
    background: #000000; /* Strict Black */
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

    .btn-submit:hover {
        transform: translateY(-3px);
        background: #333333; /* Dark Gray Hover */
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    }

    .btn-submit:active {
        transform: translateY(-1px);
    }

    .btn-submit svg {
        width: 18px;
        height: 18px;
    }

/* Success Message */
.form-success {
    display: none;
    background: #000000; /* Black Success Box */
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    animation: slideDown 0.4s ease-out;
}

    .form-success.show {
        display: block;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   GOOGLE MAP SECTION (MATCHED HEIGHT)
   ========================================= */
.contact-map-section {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .contact-map-section h2 {
        font-size: 2rem;
        color: #000;
        margin: 0 0 8px 0;
        font-weight: 800;
    }

    .contact-map-section > p {
        font-size: 0.95rem;
        color: #666;
        margin: 0 0 25px 0;
    }

.map-container {
    flex: 1;
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .map-container:hover {
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
        border-color: #000000;
    }

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 900px) {
    .page-title {
        font-size: 2.5rem;
    }

    .page-title-section {
        padding: 100px 20px 60px;
    }

    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 20px;
    }

    .contact-form-section,
    .contact-map-section {
        padding: 30px;
    }

    .map-container {
        min-height: 400px;
    }
}

@media (max-width: 600px) {
    .page-title-section {
        padding: 90px 20px 50px;
    }

    .page-title {
        font-size: 2rem;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards-section {
        padding: 40px 15px;
    }

    .contact-content {
        padding: 40px 15px;
    }

    .contact-form-section,
    .contact-map-section {
        padding: 25px;
    }

        .contact-form-section h2,
        .contact-map-section h2 {
            font-size: 1.6rem;
        }

    .map-container {
        min-height: 350px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
    }

    .btn-submit {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
