/* ===== CONTACT PAGE STYLES ===== */

/* Contact Hero */
.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 1rem;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.95)), 
                url('/images/2.jpg') center/cover;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 168, 116, 0.1), rgba(34, 197, 94, 0.05));
    z-index: 0;
}

.contact-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #dcfce7;
    color: #166534;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-hero-badge i {
    font-size: 1rem;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-hero-gradient {
    background: linear-gradient(90deg, #16a34a, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-description {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 4rem 1rem;
    background: #f9fafb;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Contact Info */
.contact-info-header {
    margin-bottom: 2rem;
}

.contact-info-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.contact-info-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #16a34a, #10b981);
    color: white;
    font-size: 1.25rem;
}

.address-icon { background: linear-gradient(135deg, #16a34a, #10b981); }
.phone-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.email-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.contact-card-content {
    flex: 1;
}

.contact-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-card-text {
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.contact-card-note {
    color: #9ca3af;
    font-size: 0.875rem;
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #16a34a;
    font-weight: 500;
    margin-top: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-link:hover {
    color: #15803d;
}

/* Social Media */
.social-media-section {
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.social-media-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.social-media-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: #dcfce7;
    color: #166534;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #bbf7d0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-icon i {
    font-size: 1.125rem;
}

/* Contact Form */
.contact-form-container {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-form-header {
    margin-bottom: 2rem;
}

.contact-form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-form-description {
    color: #6b7280;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    appearance: none;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 2px solid #d1d5db;
    cursor: pointer;
    accent-color: #10b981;
}

.checkbox-label {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.submit-btn {
    background: linear-gradient(135deg, #16a34a, #10b981);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #15803d, #0d966d);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.submit-btn i {
    font-size: 1rem;
}

/* Map Section */
.map-section {
    padding: 4rem 1rem;
    background: white;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-header {
    text-align: center;
    margin-bottom: 3rem;
}

.map-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.map-description {
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.map-wrapper {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.map-embed {
    position: relative;
}

.map-iframe {
    width: 100%;
    height: 500px;
    border: none;
    filter: grayscale(0.1) contrast(1.05) saturate(1.1);
}

.location-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pin-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #16a34a, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
}

.map-footer {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 1.5rem;
    border-top: 1px solid #bbf7d0;
}

.map-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.map-footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-footer-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #16a34a, #10b981);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.map-footer-title {
    font-weight: 600;
    color: #1f2937;
}

.map-footer-address {
    color: #6b7280;
    font-size: 0.875rem;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #16a34a;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #bbf7d0;
    transition: all 0.3s ease;
}

.map-directions-btn:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 1rem;
    background: #f9fafb;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.faq-description {
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.faq-item {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.faq-icon {
    width: 40px;
    height: 40px;
    background: #dcfce7;
    color: #166534;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-content {
    flex: 1;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: #6b7280;
    line-height: 1.6;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (min-width: 768px) {
    .contact-hero {
        padding: 8rem 2rem;
    }
    
    .contact-hero-title {
        font-size: 3.5rem;
    }
    
    .contact-section {
        padding: 6rem 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .map-section {
        padding: 6rem 2rem;
    }
    
    .map-footer-content {
        flex-direction: row;
    }
    
    .faq-section {
        padding: 6rem 2rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .contact-hero-title {
        font-size: 4rem;
    }
    
    .contact-section {
        padding: 8rem 2rem;
    }
    
    .map-section {
        padding: 8rem 2rem;
    }
    
    .faq-section {
        padding: 8rem 2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .contact-hero {
        padding: 4rem 1rem;
    }
    
    .contact-hero-title {
        font-size: 2.25rem;
    }
    
    .contact-hero-description {
        font-size: 1.125rem;
    }
    
    .contact-section,
    .map-section,
    .faq-section {
        padding: 3rem 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-card-icon {
        margin: 0 auto;
    }
    
    .social-media-icons {
        justify-content: center;
    }
    
    .map-iframe {
        height: 300px;
    }
    
    .pin-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-badge {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon i {
        font-size: 1rem;
    }
    
    .map-footer-content {
        text-align: center;
    }
    
    .map-footer-info {
        flex-direction: column;
    }
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .contact-hero-container,
    .contact-container,
    .map-container,
    .faq-container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    
    /* Ensure all elements stay within viewport */
    .contact-hero-content,
    .contact-info-header,
    .contact-cards,
    .social-media-section,
    .contact-form-container,
    .map-wrapper,
    .faq-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix for form elements */
    .form-input,
    .form-select,
    .form-textarea,
    .submit-btn {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix for map iframe */
    .map-embed,
    .map-iframe {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure contact cards don't overflow */
    .contact-card {
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Fix for social icons */
    .social-media-icons {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }
    
    /* Remove any negative margins that might cause overflow */
    * {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Extra fix for very small screens */
@media (max-width: 480px) {
    .contact-hero,
    .contact-section,
    .map-section,
    .faq-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Ensure text doesn't overflow */
    .contact-hero-title,
    .contact-info-title,
    .contact-form-title,
    .map-title,
    .faq-title,
    .contact-card-title,
    .faq-question {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix for long URLs or email addresses */
    .contact-card-text,
    .contact-card-link,
    .map-footer-address {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* Fix for iOS Safari specifically */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767px) {
        .contact-hero-container,
        .contact-container,
        .map-container,
        .faq-container {
            -webkit-overflow-scrolling: touch;
        }
    }
}