/* ===== Contact Page Styles ===== */

/* Page Header */
.page-header {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, #047857 0%, #0d9488 100%);
    text-align: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Cards */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-info-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light);
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.15) 0%, rgba(13, 148, 136, 0.15) 100%);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.contact-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.contact-info-card p {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact-info-card a {
    color: var(--primary);
    font-weight: 600;
}

.contact-info-card small {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.map-container {
    height: 100%;
    min-height: 450px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light);
}

.contact-form-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.contact-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

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

/* Success Message Styles */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.success-message .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.15) 0%, rgba(13, 148, 136, 0.15) 100%);
    border-radius: 50%;
    color: var(--primary);
    animation: scaleIn 0.4s ease-out 0.2s both;
}

.success-message h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2rem);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.success-message p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 400px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading dots animation */
@keyframes loadingDots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

.loading-dots::after {
    content: '...';
    animation: loadingDots 1.4s infinite;
}

.loading-dots::after span {
    display: none;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .page-header {
        padding: 8rem 0 4rem;
    }

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

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}
