/* =========================================
   CONTACT PAGE (SPLIT LAYOUT EDITION)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --bg-body: #ffffff;
    --primary: #4f46e5;
    --secondary: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --card-shadow: 0 20px 40px -5px rgba(0,0,0,0.08);
    --input-bg: #f8fafc;
}

body {
    background-color: var(--bg-body);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* 1. HERO SECTION */
.contact-hero {
    padding: 160px 0 80px;
    background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #ffffff 80%);
    text-align: center;
}
.contact-title {
    font-size: 3.5rem; font-weight: 900; color: var(--secondary); margin-bottom: 20px; letter-spacing: -1px;
}
.contact-desc {
    font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto;
}

/* 2. INFO BOXES (KOMPAKT & DOLU) */
.info-section { padding-bottom: 60px; }
.info-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.info-card {
    background: white; padding: 30px 20px; border-radius: 20px;
    box-shadow: var(--card-shadow); text-align: center;
    border: 1px solid #f1f5f9; transition: 0.3s;
    display: flex; flex-direction: column; justify-content: center; height: 100%;
}
.info-card:hover { transform: translateY(-5px); border-color: var(--primary); }

.info-icon {
    width: 50px; height: 50px; background: #eef2ff; color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin: 0 auto 15px;
}
.info-card h4 { font-size: 1.1rem; font-weight: 800; color: var(--secondary); margin-bottom: 8px; }
.info-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.info-card strong { color: var(--secondary); display: block; margin-top: 3px; font-weight: 700; }

/* 3. MAIN SPLIT SECTION (HARİTA + FORM) */
.main-contact-section { padding-bottom: 120px; }
.split-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Yarı Yarıya Böl */
    gap: 40px; 
    align-items: stretch; /* Yükseklikleri eşitle */
}

/* --- SOL: HARİTA KUTUSU --- */
.map-box {
    width: 100%; 
    height: 100%; 
    min-height: 600px; /* Form ile aynı boyda durması için */
    border-radius: 30px; 
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    position: relative;
}
.map-frame { width: 100%; height: 100%; border: none; filter: grayscale(20%); }

/* --- SAĞ: FORM KUTUSU --- */
.form-box {
    background: white; 
    padding: 50px; 
    border-radius: 30px;
    box-shadow: var(--card-shadow); 
    border: 1px solid #e2e8f0;
}

.form-title { font-size: 2rem; font-weight: 800; color: var(--secondary); margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--secondary); margin-bottom: 8px; }
.form-input, .form-textarea {
    width: 100%; padding: 15px; border-radius: 12px;
    border: 1px solid #e2e8f0; background: var(--input-bg);
    font-size: 1rem; color: var(--text-main); transition: 0.3s;
    font-family: 'Outfit', sans-serif;
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary); background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.form-textarea { resize: none; height: 140px; }

/* Checkbox */
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 30px; }
.form-check input { margin-top: 4px; accent-color: var(--primary); }
.form-check label { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.form-check a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Buton */
.btn-submit {
    width: 100%; background: var(--secondary); color: white;
    padding: 18px; border: none; border-radius: 12px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer;
    transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit:hover { background: var(--primary); transform: translateY(-3px); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Bildirimler */
.alert-box {
    padding: 15px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; display: none;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .contact-title { font-size: 2.5rem; }
    .info-grid { grid-template-columns: 1fr 1fr; gap: 15px; } /* Mobilde 2'li olsun */
    
    .split-grid { 
        grid-template-columns: 1fr; /* Alt alta düşür */
        gap: 30px; 
    }
    
    .map-box { 
        min-height: 300px; /* Mobilde harita boyunu küçült */
        height: 300px;
        order: 2; /* Haritayı formun altına al (tercihen) */
    }
    .form-box {
        padding: 30px 20px;
        order: 1; /* Formu üste al */
    }
}

@media (max-width: 600px) {
    .info-grid { grid-template-columns: 1fr; } /* Çok küçükse tek sütun */
    .contact-hero { padding: 120px 0 60px; }
}

/* =========================================
   5. SOCIAL & DIGITAL CHANNELS (YENİ EKLENTİ)
   ========================================= */
.social-section { padding: 80px 0 100px; background: #fff; border-top: 1px solid #f1f5f9; }
.social-header { text-align: center; margin-bottom: 50px; }
.social-header h3 { font-size: 2.5rem; font-weight: 800; color: var(--secondary); margin-bottom: 15px; }
.social-header p { font-size: 1.1rem; color: var(--text-muted); }

.channels-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
    max-width: 1100px; margin: 0 auto;
}

.channel-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #f8fafc; padding: 30px 20px; border-radius: 20px;
    text-decoration: none; transition: 0.3s; border: 1px solid #e2e8f0;
    position: relative; overflow: hidden;
}
.channel-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow); background: white; }

.channel-icon {
    font-size: 2.5rem; margin-bottom: 15px; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
    width: 70px; height: 70px; border-radius: 50%; background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.channel-name { font-size: 1.1rem; font-weight: 700; color: var(--secondary); margin-bottom: 5px; }
.channel-action { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

/* Marka Renkleri (Hover Durumunda) */
/* WhatsApp */
.channel-card.whatsapp:hover { border-color: #25D366; }
.channel-card.whatsapp .channel-icon { color: #25D366; }
.channel-card.whatsapp:hover .channel-icon { background: #25D366; color: white; }

/* Instagram */
.channel-card.instagram:hover { border-color: #E1306C; }
.channel-card.instagram .channel-icon { color: #E1306C; }
.channel-card.instagram:hover .channel-icon { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }

/* LinkedIn */
.channel-card.linkedin:hover { border-color: #0077b5; }
.channel-card.linkedin .channel-icon { color: #0077b5; }
.channel-card.linkedin:hover .channel-icon { background: #0077b5; color: white; }

/* X (Twitter) */
.channel-card.x:hover { border-color: #000; }
.channel-card.x .channel-icon { color: #000; }
.channel-card.x:hover .channel-icon { background: #000; color: white; }

/* 6. FLOATING WHATSAPP BUTTON (SABİT BUTON) */
.float-whatsapp {
    position: fixed; bottom: 30px; left: 30px; /* Sol alt köşe */
    width: 60px; height: 60px; background-color: #25d366; color: #FFF;
    border-radius: 50px; text-align: center; font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s; text-decoration: none;
}
.float-whatsapp:hover { background-color: #128c7e; transform: scale(1.1); color: white; }
.float-whatsapp::after {
    content: ''; position: absolute; width: 100%; height: 100%;
    border-radius: 50%; border: 1px solid #25d366;
    animation: pulse-ws 1.5s infinite; opacity: 0;
}
@keyframes pulse-ws {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .channels-grid { grid-template-columns: 1fr 1fr; gap: 15px; padding: 0 20px; }
}