/* Contact Page Styles */
.contact-page {
    background-color: #fff;
}

.contact-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    color: white;
    padding: 4rem 0;
}

.contact-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.125rem;
    text-align: center;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    padding: 3rem 0 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Contact Form */
.contact-form-card {
    background: white;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c1d1f;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1c1d1f;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d7dc;
    border-radius: 4px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #5624d0;
    box-shadow: 0 0 0 3px rgba(86, 36, 208, 0.1);
}

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

.btn-submit {
    width: 100%;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #5f259f 0%, #8e44ad 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 37, 159, 0.3);
}

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

.alert-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.alert-success.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* Contact Info */
.contact-info-card {
    background: white;
    border: 1px solid #d1d7dc;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c1d1f;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    background: #f7f9fa;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.info-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5f259f 0%, #8e44ad 100%);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1c1d1f;
    margin-bottom: 0.25rem;
}

.info-content p {
    font-size: 0.9375rem;
    color: #6a6f73;
    margin: 0;
}

.info-content a {
    color: #5624d0;
    text-decoration: none;
    transition: color 0.2s;
}

.info-content a:hover {
    color: #4119a3;
}

/* Map Section */
.map-section {
    margin-top: 2rem;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d1d7dc;
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: #f7f9fa;
    border: 1px solid #d1d7dc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5624d0;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: linear-gradient(135deg, #5f259f 0%, #8e44ad 100%);
    color: white;
    border-color: #5f259f;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-hero {
        padding: 3rem 0;
    }
    
    .contact-content {
        padding: 2rem 0 3rem;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Mobile Landscape (768px) */
@media (max-width: 768px) {
    .contact-hero {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-content {
        padding: 1.5rem 0 2.5rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 1.25rem;
        border-radius: 6px;
    }
    
    .form-title,
    .info-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }
    
    .form-label i {
        margin-right: 0.375rem;
    }
    
    /* Prevent zoom on focus for iOS - inputs must be 16px+ */
    .form-input,
    .form-textarea {
        font-size: 16px;
        padding: 0.875rem 1rem;
        border-radius: 6px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .btn-submit {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 6px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Disable hover transform on touch devices */
    .btn-submit:hover {
        transform: none;
    }
    
    .btn-submit:active {
        transform: scale(0.98);
    }
    
    .info-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
        gap: 0.875rem;
    }
    
    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .info-content h3 {
        font-size: 0.9375rem;
    }
    
    .info-content p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    /* Make phone/email links more tappable */
    .info-content a {
        display: inline-block;
        padding: 0.25rem 0;
    }
    
    .map-section {
        margin-top: 1.5rem;
    }
    
    .map-container {
        height: 250px;
        border-radius: 6px;
    }
    
    /* Social links - better touch targets */
    .social-links {
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-top: 1rem;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .social-link:active {
        transform: scale(0.95);
    }
    
    /* Follow Us section on mobile */
    .contact-info-card > div[style*="border-top"] {
        margin-top: 1.25rem !important;
        padding-top: 1.25rem !important;
    }
    
    /* Alerts */
    .alert-success,
    .alert-error {
        padding: 0.875rem;
        font-size: 0.875rem;
        border-radius: 6px;
    }
    
    .alert-success i {
        font-size: 1.125rem;
    }
}

/* Mobile Portrait (480px) */
@media (max-width: 480px) {
    .contact-hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .contact-container {
        padding: 0 0.875rem;
    }
    
    .contact-content {
        padding: 1.25rem 0 2rem;
    }
    
    .contact-grid {
        gap: 1.25rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 1rem;
    }
    
    .form-title,
    .info-title {
        font-size: 1.125rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.75rem 0.875rem;
    }
    
    .btn-submit {
        padding: 0.875rem;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .info-icon {
        margin: 0 auto 0.5rem;
    }
    
    .info-content {
        text-align: center;
    }
    
    .map-container {
        height: 200px;
    }
    
    /* Center social links on very small screens */
    .social-links {
        justify-content: center;
    }
}

/* Extra small devices (360px and below) */
@media (max-width: 360px) {
    .contact-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.375rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 0.875rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 896px) and (orientation: landscape) {
    .contact-hero {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .contact-content {
        padding: 1rem 0 1.5rem;
    }
    
    .map-container {
        height: 180px;
    }
}

/* High DPI screens - crisper borders */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .contact-form-card,
    .contact-info-card,
    .info-item,
    .form-input,
    .form-textarea {
        border-width: 0.5px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .btn-submit,
    .social-link,
    .info-item,
    .form-input,
    .form-textarea,
    .alert-success {
        transition: none;
    }
    
    .alert-success.fade-out {
        transition: opacity 0.1s;
    }
}
