/**
 * CONTACT PAGE - MODERN REDESIGN
 * Updated hero, sections, and gradients
 */

:root {
    --primary-purple: #9333ea;
    --purple-light: #a855f7;
    --purple-dark: #7e22ce;
    --purple-pale: #c084fc;
    --purple-lighter: #e9d5ff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --pink: #ec4899;
    --blue: #3b82f6;
    --purple: #a855f7;
}

/* ============================================
   CONTACT HERO SECTION - Animated Geometric Pattern
   ============================================ */

.contact-hero {
    position: relative;
    padding: 150px 20px 100px;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
    background: #ffffff;
}

/* Animated geometric shapes background - Purple */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    animation: float-shapes 20s ease-in-out infinite;
    z-index: 1;
}

/* Geometric pattern overlay - Purple */
.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, rgba(147, 51, 234, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(147, 51, 234, 0.03) 87.5%, rgba(147, 51, 234, 0.03)),
        linear-gradient(150deg, rgba(147, 51, 234, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(147, 51, 234, 0.03) 87.5%, rgba(147, 51, 234, 0.03)),
        linear-gradient(30deg, rgba(147, 51, 234, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(147, 51, 234, 0.03) 87.5%, rgba(147, 51, 234, 0.03)),
        linear-gradient(150deg, rgba(147, 51, 234, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(147, 51, 234, 0.03) 87.5%, rgba(147, 51, 234, 0.03));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    opacity: 1;
    z-index: 1;
}

@keyframes float-shapes {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(5deg);
    }

    66% {
        transform: translateY(10px) rotate(-5deg);
    }
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-light) 50%, var(--purple-pale) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
}

.contact-hero p {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Georgia Pro', Georgia, serif !important;
}

/* ============================================
   CONTACT CARDS SECTION - Bento Box Style
   ============================================ */

.contact-cards {
    padding: 100px 20px;
    background: var(--bg-white);
}

.contact-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--purple-light);
}

.contact-card:hover::before {
    width: 300px;
    height: 300px;
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.contact-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.contact-card a,
.contact-whatsapp-button {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.contact-card a:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

.contact-whatsapp-button {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple));
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.contact-whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* ============================================
   CONTACT FORM SECTION - Two Column Layout
   ============================================ */

.contact-form-section {
    padding: 100px 20px;
    background: var(--bg-light);
}

.contact-form-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

/* Contact Info Column */
.contact-form-info {
    position: sticky;
    top: 100px;
}

.contact-form-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
}

.contact-form-info>p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 40px;
    font-family: 'Georgia Pro', Georgia, serif !important;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-white);
    border-radius: 16px;
    border-left: 4px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-info-item:nth-child(4) {
    border-left-color: var(--primary-purple);
}

.contact-info-item:nth-child(5) {
    border-left-color: var(--purple-light);
}

.contact-info-item:nth-child(6) {
    border-left-color: var(--purple-light);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-info-content p,
.contact-info-content a {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
}

.contact-info-content a:hover {
    color: var(--primary-purple);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple));
    color: white;
    border-color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.3);
}

/* Contact Form Column */
.contact-form-wrapper {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border);
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
}

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

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

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-control {
    padding: 15px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple));
    color: white;
    border: none;
    padding: 17px 45px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    width: fit-content;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

/* ============================================
   MAP SECTION
   ============================================ */

.map-section {
    padding: 0;
    background: var(--bg-white);
}

.map-container {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-top: 2px solid var(--border);
}

/* ============================================
   WHATSAPP CHAT BUTTON
   ============================================ */

.whatsapp-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-chat .contact-whatsapp-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.whatsapp-chat .contact-whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-chat .contact-whatsapp-button i {
    font-size: 1.5rem;
}

/* ============================================
   FADE IN ANIMATION
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 992px) {
    .contact-hero h1 {
        font-size: 2.8rem;
        font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
    }

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

    .contact-form-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 20px 80px;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
        font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
    }

    .contact-hero p {
        font-size: 1.1rem;
    }

    .contact-cards {
        padding: 70px 20px;
    }

    .contact-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-section {
        padding: 70px 20px;
    }

    .contact-form-info h2 {
        font-size: 2rem;
        font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }

    .contact-form-wrapper h3 {
        font-size: 1.7rem;
        font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 100px 15px 70px;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
        font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-cards {
        padding: 50px 15px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .contact-form-section {
        padding: 50px 15px;
    }

    .contact-form-info h2 {
        font-size: 1.7rem;
        font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
    }

    .contact-info-item {
        padding: 20px;
    }

    .contact-form-wrapper {
        padding: 35px 25px;
    }

    .contact-form-wrapper h3 {
        font-size: 1.5rem;
        font-family: 'Times New Roman MT', 'Times New Roman', Times, serif !important;
    }

    .form-submit {
        width: 100%;
    }

    .whatsapp-chat {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-chat .contact-whatsapp-button span {
        display: none;
    }

    .whatsapp-chat .contact-whatsapp-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
}