/* Contact Page Styles */
/* Purpose: Comprehensive styling for the Contact Us page */
/* Author: Minds4AI Development Team */
/* Last Modified: 2024 */

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* ===== CONTACT PAGE HEADER ===== */
.contact-header {
    position: relative;
    background: linear-gradient(135deg, 
    #000000 0%, 
    #100d28 70%, 
    #3d0e82 99%, 
    #3d0e82 100%);
    padding: 120px 0 80px;
    overflow: hidden;
    color: white;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.tech-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pattern-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.pattern-node:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.pattern-node:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 1s;
}

.pattern-node:nth-child(3) {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.pattern-node:nth-child(4) {
    bottom: 40%;
    right: 25%;
    animation-delay: 3s;
}

.pattern-node:nth-child(5) {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

.communication-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.comm-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    animation: pulse 4s ease-in-out infinite;
}

.chat-icon {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.phone-icon {
    top: 25%;
    right: 20%;
    animation-delay: 1s;
}

.email-icon {
    bottom: 30%;
    left: 25%;
    animation-delay: 2s;
}

.ai-icon {
    bottom: 20%;
    right: 15%;
    animation-delay: 3s;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: white;
}

.separator {
    margin: 0 10px;
    opacity: 0.6;
}

.current {
    color: white;
    font-weight: 500;
}

.header-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== MAIN CONTACT SECTION ===== */
.contact-main {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #100d28, #8f4ff0);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.form-header p {
    color: #718096;
    line-height: 1.6;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8f4ff0;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-error {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e53e3e;
    background: #fed7d7;
}

.form-group.error .form-error {
    display: block;
}

.submit-btn {
    position: relative;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #100d28 0%, #3d0e82 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn .btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

.submit-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(4px);
}

/* Form Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: #f0fff4;
    border-radius: 15px;
    border: 2px solid #68d391;
}

.form-success.show {
    display: block;
    animation: slideInUp 0.5s ease-out;
}

.success-icon {
    font-size: 3rem;
    color: #38a169;
    margin-bottom: 20px;
}

.form-success h3 {
    color: #2f855a;
    margin-bottom: 10px;
}

.form-success p {
    color: #68d391;
    line-height: 1.6;
}

/* ===== QUICK CONTACT SECTION ===== */
.quick-contact-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.quick-contact-header {
    margin-bottom: 30px;
}

.quick-contact-header h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.quick-contact-header p {
    color: #718096;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #100d28 0%, #3d0e82 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-content h4 {
    color: #2d3748;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-content a {
    color: #8f4ff0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: #100d28;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 200px;
    border: none;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

.map-caption {
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* ===== CHAT SECTION ===== */
.chat-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.chat-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.chat-header {
    margin-bottom: 40px;
}

.chat-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: bounce 2s ease-in-out infinite;
}

.chat-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.chat-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.chat-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: white;
    color: #25d366;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #128c7e;
}

.btn-whatsapp i {
    font-size: 24px;
}

.chat-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    opacity: 0.9;
}

.feature i {
    font-size: 20px;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
    padding: 80px 0;
    background: white;
}

.social-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-content h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.social-content p {
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px;
    background: #f7fafc;
    border-radius: 20px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    min-width: 120px;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-link.linkedin {
    border: 2px solid #8f4ff0;
}

.social-link.linkedin:hover {
    background: #8f4ff0;
    color: white;
}

.social-link.instagram {
    border: 2px solid #8f4ff0;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.youtube {
    border: 2px solid #8f4ff0;
}

.social-link.youtube:hover {
    background: #8f4ff0;
    color: white;
}

.social-link i {
    font-size: 2rem;
}

.social-link span {
    font-weight: 600;
    font-size: 14px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.faq-header p {
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.faq-question:hover {
    background: #f7fafc;
}

.faq-question h3 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: #8f4ff0;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 30px 25px;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    padding-top: 15px;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .contact-grid {
        gap: 40px;
    }
    
    .contact-form-section,
    .quick-contact-section {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-form-section,
    .quick-contact-section {
        padding: 25px;
    }
    
    .chat-features {
        gap: 20px;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-link {
        min-width: 100px;
        padding: 20px;
    }
    
    .comm-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .contact-header {
        padding: 100px 0 60px;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .contact-main,
    .chat-section,
    .social-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .contact-form-section,
    .quick-contact-section {
        padding: 20px;
    }
    
    .form-header h2,
    .quick-contact-header h2 {
        font-size: 1.5rem;
    }
    
    .chat-header h2,
    .social-content h2,
    .faq-header h2 {
        font-size: 2rem;
    }
    
    .chat-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.submit-btn:focus,
.btn-whatsapp:focus,
.social-link:focus,
.faq-question:focus {
    outline: 2px solid #8f4ff0;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-form-section,
    .quick-contact-section,
    .faq-item {
        border: 2px solid #2d3748;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 2px;
    }
}