/* css/contact.css */
/* Contact Page Specific Styles with Advanced Animations */

/* Page Header with Floating Elements */
.contact-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.contact-header .page-header-content {
    position: relative;
    z-index: 2;
}

.header-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.contact-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.1)" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"></path></svg>');
    animation: waveFloat 10s ease-in-out infinite;
}

@keyframes waveFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-phone,
.floating-envelope,
.floating-map {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.4);
    animation: floatContact 8s ease-in-out infinite;
}

.floating-phone {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-envelope {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-map {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatContact {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -15px) rotate(90deg);
    }
    50% {
        transform: translate(-10px, 10px) rotate(180deg);
    }
    75% {
        transform: translate(12px, -8px) rotate(270deg);
    }
}

/* Quick Contact Cards */
.quick-contact {
    padding: 3rem 0;
    background: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: left 0.4s ease;
    z-index: 1;
}

.contact-card:hover::before {
    left: 0;
}

.contact-card > * {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    background: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.card-icon i {
    font-size: 2rem;
    color: var(--white);
    transition: color 0.3s ease;
}

.contact-card:hover .card-icon i {
    color: var(--primary);
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.card-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.contact-link {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-link {
    color: var(--white);
}

.contact-address {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-address {
    color: var(--white);
}

.contact-note {
    font-size: 0.8rem;
    color: var(--gray);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-note {
    color: rgba(255, 255, 255, 0.8);
}

.opening-hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hour-item:last-child {
    border-bottom: none;
}

.contact-card:hover .hour-item {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 1;
}

.contact-card:hover .card-glow {
    opacity: 0.05;
}

/* Contact Main Section */
.contact-main {
    padding: 5rem 0;
    background: var(--light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}hg

/* Contact Form Styles */
.contact-form-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    gap: 1rem;
}

.form-group .input-group {
    flex: 1;
    position: relative;
}

.form-group .input-group.full-width {
    flex: 1 1 100%;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1.5rem;
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 3rem;
    color: var(--gray);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--white);
    padding: 0 0.5rem;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.input-group input:focus + label,
.input-group select:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group select:not([value=""]) + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: all 0.3s ease;
}

.input-group:focus-within .input-icon {
    color: var(--primary);
}

.input-group textarea ~ .input-icon {
    top: 1.5rem;
    transform: none;
}

.char-count {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.form-footer p {
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.emergency-alert {
    background: linear-gradient(135deg, var(--danger) 0%, #c82333 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
}

.alert-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.alert-icon i {
    font-size: 1.5rem;
}

.alert-content {
    flex: 1;
}

.alert-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.alert-content p {
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.map-container {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-header {
    padding: 1.5rem 2rem;
    background: var(--gradient);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    position: relative;
}

.map-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.map-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.map-content p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    line-height: 1.5;
}

.map-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.detailed-contact {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.detailed-contact h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(13, 71, 161, 0.05);
    transform: translateX(5px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-method:hover .method-icon {
    transform: scale(1.1) rotate(5deg);
}

.method-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.method-info h4 {
    margin: 0 0 0.3rem 0;
    color: var(--dark);
    font-size: 1rem;
}

.method-info p {
    margin: 0 0 0.5rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.method-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.method-info a:hover {
    color: var(--primary-dark);
}

.social-contact {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.social-contact h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.social-contact p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link.facebook {
    color: #1877F2;
    border-color: #1877F2;
}

.social-link.twitter {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.social-link.instagram {
    color: #E4405F;
    border-color: #E4405F;
}

.social-link.linkedin {
    color: #0A66C2;
    border-color: #0A66C2;
}

.social-link.youtube {
    color: #FF0000;
    border-color: #FF0000;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.social-link.facebook:hover {
    background: #1877F2;
    color: white;
}

.social-link.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.social-link.instagram:hover {
    background: #E4405F;
    color: white;
}

.social-link.linkedin:hover {
    background: #0A66C2;
    color: white;
}

.social-link.youtube:hover {
    background: #FF0000;
    color: white;
}

/* FAQ Section */
.contact-faq {
    padding: 5rem 0;
    background: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(13, 71, 161, 0.05);
}

.faq-question h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.1rem;
    flex: 1;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.faq-cta {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: 15px;
}

.faq-cta p {
    margin: 0;
    color: var(--gray);
    font-size: 1.1rem;
}

.faq-cta a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.faq-cta a:hover {
    text-decoration: underline;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.success-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    color: var(--white);
    font-size: 2.5rem;
}

.modal-body h3 {
    margin: 0 0 1rem 0;
    color: var(--dark);
    font-size: 1.5rem;
}

.modal-body p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-header {
        padding: 5rem 0 3rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-group {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .emergency-alert {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .map-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-form-section,
    .detailed-contact,
    .social-contact {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .map-actions {
        flex-direction: column;
    }
}

/* Focus States for Accessibility */
.contact-card:focus,
.faq-question:focus,
.social-link:focus,
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}