/* --- ILETISIM.CSS --- */

/* 1. MASAÜSTÜ (WEB) İÇİN GİZLEME KURALI - EN BAŞA EKLENDİ */
/* Bu kısım hamburger menüyü ve açılır menüyü bilgisayarda gizler */
.mobile-toggle-btn, 
.mobile-menu-overlay {
    display: none !important;
}

:root {
    --primary-blue: #0071e3;
    --error-red: #ff3b30;
    --input-bg: #f5f5f7;
    --input-border: #d2d2d7;
    --text-dark: #1d1d1f;
    --text-gray: #86868b;
}

/* Hero Alanı */
.contact-hero {
    padding: 120px 20px 60px;
    background-color: #f5f5f7;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 20px;
    line-height: 1.4;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Ana Container */
.contact-section {
    background-color: #fff;
    padding: 60px 20px 100px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

/* Sol Taraf: Bilgi & Harita */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.address-text {
    font-size: 17px;
    line-height: 1.5;
    color: #424245;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.c-link {
    font-size: 17px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.c-link:hover {
    text-decoration: underline;
}

.map-frame {
    width: 100%;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    background: #e5e5ea;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sağ Taraf: Form */
.contact-form-wrapper {
    padding: 10px 0;
}

.form-header h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Form Elemanları */
.teknogis-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, textarea {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background-color: #fff;
    font-family: inherit;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* Hata Durumları */
input.error {
    border-color: var(--error-red) !important; /* Kırmızı renk kesinleşti */
    background-color: rgba(255, 59, 48, 0.05);
    animation: shake 0.4s ease-in-out; /* Hata anında titreme efekti */
}
.validation-feedback {
    display: none; /* Varsayılan olarak gizli */
    font-size: 14px;
    color: var(--error-red);
    background: rgba(255, 59, 48, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: -10px;
    border: 1px solid var(--error-red); /* İnce kırmızı çerçeve */
}


.validation-feedback.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
/* Gönder Butonu */
.submit-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-blue);
    color: white;
    font-size: 17px;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    width: fit-content;
}

.submit-btn:hover {
    background-color: #0077ed;
}

.submit-btn:active {
    transform: scale(0.98);
}


/* --- RESPONSIVE / MOBİL AYARLAR --- */

@media (max-width: 900px) {
    
    /* 2. MOBİLDE GÖRÜNÜR YAPMA */
    /* Masaüstünde gizlediğimiz butonları mobilde geri getiriyoruz */
    .mobile-toggle-btn {
        display: flex !important;
        margin-left: auto; /* Sağa yasla */
    }
    
    .mobile-menu-overlay {
        display: flex !important;
        /* Diğer overlay stilleri style.css veya genel css'ten gelir, 
           burada sadece display'i açıyoruz. */
    }

    /* Hero Mobilde Küçült */
    .contact-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }

    /* Grid'i Tek Kolona Düşür */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info-wrapper {
        order: 2;
    }
    
    .contact-form-wrapper {
        order: 1;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    /* Menü Açıkken Body Kaydırmayı Engelle */
    body.menu-open {
        overflow: hidden;
    }
}