/* Contact Page Specific Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 70px 0 0 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.header {
    background: url('/content/contact-hero.jpg') center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.header-content p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-form-card, .contact-info-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before, .contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    z-index: -1;
}

.contact-form-card:hover, .contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.contact-form-card .section-title,
.contact-info-card .section-title {
    font-size: 2rem;
    text-align: left;
    padding: 0;
}

.contact-form-card .section-title::after,
.contact-info-card .section-title::after {
    left: 0;
    transform: none;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--bg-light);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    transform: rotate(30deg);
    transition: all 0.5s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn:hover::before {
    transform: rotate(30deg) translate(50%, 50%);
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-light);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.success-message, .error-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 600;
    display: none;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.error-message {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.map-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    margin-bottom: 40px;
}

.map-header {
    padding: 24px;
    background: var(--bg-light);
}

.map-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.map-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.map-header p {
    color: var(--text-light);
}

.map-container {
    height: 400px;
    width: 100%;
    background: var(--neutral-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--glass-border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.divider {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 2px;
    margin: 40px auto;
    width: 120px;
    overflow: hidden;
    clear: both;
}

.divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

#footer-placeholder {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .header {
        height: 350px;
    }

    .header-content h1 {
        font-size: 2.4rem;
    }

    .header-content p {
        font-size: 1.1rem;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-form-card, .contact-info-card {
        padding: 24px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    #footer-placeholder {
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .header {
        height: 300px;
    }

    .header-content {
        padding: 20px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .contact-form-card, .contact-info-card {
        padding: 20px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .map-container {
        height: 300px;
    }

    #footer-placeholder {
        margin-top: 24px;
    }
}
