/* Contact Hero Section */
.contact-hero {
    padding-top: 8rem; /* Adjust based on header height */
    padding-bottom: 4rem;
    background: linear-gradient(180deg, var(--neutral-light) 0%, var(--background) 100%);
    text-align: center;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Info Section */
.contact-info {
    padding: 3rem 0;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeUp 0.6s ease forwards;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.contact-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-card-content {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.contact-card-content:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeUp 0.6s ease forwards;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-form-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

.required {
    color: #dc3545;
}

.form-input,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--background);
    color: var(--text-dark);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 196, 154, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.contact-submit-btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    cursor: pointer;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* WhatsApp CTA Section */
.whatsapp-cta {
    padding: 4rem 0;
    background-color: var(--neutral-light);
}

.whatsapp-card {
    background-color: rgba(37, 211, 102, 0.1);
    border: 2px solid rgba(37, 211, 102, 0.2);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeUp 0.6s ease forwards;
}

.whatsapp-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.whatsapp-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    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:nth-child(5) { animation-delay: 0.5s; }

/* Form Validation Styles */
.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.success,
.form-textarea.success {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 196, 154, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-success i {
    color: var(--primary-color);
}

.notification-error i {
    color: #dc3545;
}

.notification-info i {
    color: var(--accent-color);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    border-radius: 0.25rem;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .contact-hero-title {
        font-size: 2.5rem;
    }

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

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .contact-form-card {
        padding: 2rem;
    }

    .contact-form-title {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .whatsapp-card {
        padding: 2rem;
    }

    .whatsapp-title {
        font-size: 1.75rem;
    }

    .contact-submit-btn,
    .btn-whatsapp {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 2rem;
    }

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

    .contact-card {
        padding: 1.5rem;
    }

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

    .contact-form-title {
        font-size: 1.75rem;
    }

    .whatsapp-card {
        padding: 1.5rem;
    }

    .whatsapp-title {
        font-size: 1.5rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

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