/* Contact Page Styles */

/* Hero Section */
.contact-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
    overflow: hidden;
    padding: 140px 0 80px; /* Increased top padding to account for fixed header */
    margin-top: 0; /* Ensure no negative margin */
}

.contact-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero .hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.contact-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff; /* Pure white for better contrast */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add text shadow for better readability */
}

.contact-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff; /* Changed to white for better contrast */
    margin-bottom: 2.5rem;
    opacity: 0.95; /* Slightly increased opacity */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Add subtle text shadow */
}

.contact-hero .hero-actions {
    margin-top: 2rem;
}

/* Contact Form Section */
.contact-form-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.contact-form-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.contact-form-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.form-container {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

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

.form-group {
    margin-bottom: 2rem;
    width: 100%;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(15, 163, 163, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.form-input:hover,
.form-textarea:hover {
    border-color: var(--primary-teal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--border-light);
    border-radius: 8px;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-teal);
    background: rgba(15, 163, 163, 0.05);
}

.file-upload-label i {
    font-size: 2rem;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.file-upload-label span {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.file-upload-label small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-sidebar .info-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-sidebar .info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.contact-info-sidebar .info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-info-sidebar .info-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.contact-info-sidebar h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-info-sidebar p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Contact Information Section */
.contact-info-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.contact-info-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.contact-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.contact-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-card .card-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.contact-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-card .card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-card .card-details {
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Map Section */
.map-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.map-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
    position: relative;
}

.map-container:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.map-container iframe {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-light);
}

.map-placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.map-placeholder-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-teal);
}

.map-placeholder-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Final CTA Section */
.final-cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-teal) 100%);
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
}

.final-cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Success Message Modal */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.success-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: successSlideIn 0.3s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color, #10b981);
    margin-bottom: 1.5rem;
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info-sidebar {
        flex-direction: row;
        gap: 1rem;
    }
    
    .contact-info-sidebar .info-card {
        flex: 1;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 50vh;
        padding: 100px 0 60px;
    }
    
    .contact-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .contact-hero .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .contact-form-section,
    .contact-info-section,
    .map-section,
    .final-cta-section {
        padding: 80px 0;
    }
    
    .contact-form-section .section-title,
    .cta-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .contact-form .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .contact-info-sidebar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-hero .hero-title {
        font-size: 2rem;
    }
    
    .contact-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-card .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-card .card-icon i {
        font-size: 1.5rem;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .map-placeholder-content i {
        font-size: 3rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.file-input:focus + .file-upload-label {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.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 {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error states */
.form-group.success .form-input,
.form-group.success .form-textarea {
    border-color: var(--success-color, #10b981);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: var(--error-color, #ef4444);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-message,
.error-message {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-message.success,
.success-message {
    color: var(--success-color, #10b981);
}

.form-message.error,
.error-message {
    color: var(--error-color, #ef4444);
}

.error-message::before {
    content: '⚠';
    font-size: 1rem;
}

.success-message::before {
    content: '✓';
    font-size: 1rem;
}