/* ========================================
   Modern Contact Page - Professional Design
   ======================================== */

/* Page Header - Modern with Gradient Overlay */
.contact-page-header {
    position: relative;
    padding: 140px 0 100px;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Animated Background Pattern */
.contact-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.02) 35px, rgba(255,255,255,0.02) 36px);
    pointer-events: none;
}

.contact-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumb */
.contact-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.contact-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-breadcrumb a:hover {
    color: white;
}

.contact-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.contact-breadcrumb-current {
    color: white;
    font-weight: 500;
}

/* Page Title - Two Lines */
.contact-page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.contact-page-title .line-1 {
    display: block;
    color: #ffffff;
    font-weight: 600;
}

.contact-page-title .line-2 {
    display: block;
    color: #ffffff;
    font-weight: 600;
}

.contact-page-title .highlight {
    background: linear-gradient(135deg, #4FC13C 0%, #22c55e 50%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.contact-page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section-modern {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern */
.contact-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.contact-section-modern .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   Main Layout - Two Columns
   ======================================== */
.contact-main-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: start;
}

/* Left Column - Map + Cards */
.contact-left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========================================
   Map Section
   ======================================== */
.contact-map-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.contact-map-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background: #e2e8f0;
    overflow: hidden;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
}

.contact-map-info {
    padding: 20px 24px;
}

.contact-map-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-map-info h3 svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
}

.contact-map-info p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
}

/* ========================================
   Compact Contact Info Cards - 2x2 Grid Below Map
   ======================================== */
.contact-info-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-info-card-compact {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 2px 4px -1px rgba(0, 0, 0, 0.05),
        0 4px 6px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-info-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #22c55e 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-info-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 20px -5px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.contact-info-card-compact:hover::before {
    transform: scaleY(1);
}

.contact-info-icon-compact {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe 0%, #dcfce7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-info-icon-compact svg {
    width: 22px;
    height: 22px;
}

.contact-info-card-compact:hover .contact-info-icon-compact {
    background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
    color: white;
    transform: scale(1.1);
}

.contact-info-content {
    flex: 1;
    min-width: 0;
}

.contact-info-content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.contact-info-content p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-info-content a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-content a:hover {
    color: #2563eb;
}

/* ========================================
   Contact Form - Modern Card
   ======================================== */
.contact-form-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.contact-form-header {
    margin-bottom: 24px;
    text-align: center;
}

.contact-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #dbeafe 0%, #dcfce7 100%);
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.contact-form-header p {
    font-size: 0.95rem;
    color: #64748b;
}

/* Success Alert */
.contact-alert-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #86efac;
    color: #166534;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-alert-success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Form Styles */
.contact-form-modern .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form-modern .form-group {
    margin-bottom: 18px;
}

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

.contact-form-modern label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.contact-form-modern .required {
    color: #ef4444;
}

.contact-form-modern .form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.contact-form-modern .form-control::placeholder {
    color: #94a3b8;
}

.contact-form-modern .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.contact-form-modern .form-control.is-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.contact-form-modern .error-message {
    display: block;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 4px;
}

.contact-form-modern textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #2563eb 0%, #22c55e 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.contact-submit-btn:hover svg {
    transform: translateX(4px);
}

/* ========================================
   CTA Section
   ======================================== */
.contact-cta-section {
    padding: 70px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
}

.contact-cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    line-height: 1.7;
}

.contact-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-cta-btn.primary {
    background: white;
    color: #2563eb;
}

.contact-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.contact-cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.contact-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .contact-main-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-left-column {
        gap: 20px;
    }
    
    .contact-map-wrapper {
        height: 300px;
    }
    
    .contact-form-section {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-page-header {
        padding: 60px 0 50px;
    }
    
    .contact-page-title {
        font-size: 1.75rem;
    }
    
    .contact-page-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-section-modern {
        padding: 40px 0 60px;
    }
    
    .contact-map-wrapper {
        height: 250px;
    }
    
    .contact-map-info {
        padding: 16px 20px;
    }
    
    .contact-info-grid-compact {
        gap: 12px;
    }
    
    .contact-info-card-compact {
        padding: 16px;
        gap: 12px;
    }
    
    .contact-info-icon-compact {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .contact-info-icon-compact svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-info-content h3 {
        font-size: 0.9rem;
    }
    
    .contact-info-content p {
        font-size: 0.8rem;
    }
    
    .contact-form-section {
        padding: 24px;
    }
    
    .contact-form-header h2 {
        font-size: 1.375rem;
    }
    
    .contact-form-modern .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-cta-section {
        padding: 50px 16px;
    }
    
    .contact-cta-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-cta-content p {
        font-size: 0.95rem;
    }
    
    .contact-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-cta-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-page-header {
        padding: 50px 0 40px;
    }
    
    .contact-breadcrumb {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }
    
    .contact-page-title {
        font-size: 1.5rem;
    }
    
    .contact-map-wrapper {
        height: 200px;
    }
    
    .contact-info-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card-compact {
        flex-direction: row;
        align-items: center;
    }
    
    .contact-form-section {
        padding: 20px;
    }
    
    .contact-form-header h2 {
        font-size: 1.25rem;
    }
    
    .contact-form-modern .form-group {
        margin-bottom: 16px;
    }
    
    .contact-form-modern .form-control {
        padding: 10px 12px;
    }
    
    .contact-submit-btn {
        padding: 12px 20px;
    }
    
    .contact-cta-section {
        padding: 40px 12px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes contactFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-map-section,
.contact-info-card-compact,
.contact-form-section {
    animation: contactFadeInUp 0.5s ease forwards;
}

.contact-map-section { animation-delay: 0.1s; }
.contact-info-card-compact:nth-child(1) { animation-delay: 0.2s; }
.contact-info-card-compact:nth-child(2) { animation-delay: 0.25s; }
.contact-info-card-compact:nth-child(3) { animation-delay: 0.3s; }
.contact-info-card-compact:nth-child(4) { animation-delay: 0.35s; }
.contact-form-section { animation-delay: 0.15s; }
