/* Genel Sıfırlama ve Fontlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
 
}

/* Ana Bölüm Ayarları */
.contact-section {
   position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* Eskiden center'dı, şimdi 'flex-start' yaparak yukarı alıyoruz */
    justify-content: flex-start; 
    /* 'flex-end' yaparak sağa yaslıyoruz */
    align-items: flex-end; 
    
    background-image: url('../../images/iletisim.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Üstten biraz boşluk bırak ki Navbar'a yapışmasın */
    padding-top: 120px;
}



/* --- FORM TASARIMI --- */
.form-container {
    /* Genişliği daralt ki vinci kapatmasın */
    width: 35%; 
    max-width: 500px;
    /* Sağdan boşluk bırak */
    margin-right: 10%; 
    /* Diğer marginleri sıfırla */
    margin-left: 0;
    margin-bottom: 0;
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* İki eşit sütun */
    gap: 5rem; /* Sütunlar arası boşluk */
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #000; /* Yazı rengi */
    -webkit-box-shadow: 0 0 0px 1000px transparent inset; /* Arkaplanı şeffaf yap */
    transition: background-color 5000s ease-in-out 0s; /* Arkaplan değişimini sonsuza kadar geciktir */
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 2.5rem;
    width: 100%;
    gap:0.5rem;
}

/* Etiket (Label) Tasarımı */
.input-group label {
    color: #3c467b; /* Görseldeki koyu lacivert tonu */
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Input ve Textarea Çizgileri */
.input-group input,
.input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid #3c467b; /* Alt çizgi rengi */
    padding: 5px ;
    color: #000;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
   
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color:#bf092f ; /* Tıklayınca çizgi beyaz olsun */
}

/* Mesaj kutusu ayarı */
.right-textarea .input-group textarea {
    height: 40px; /* Başlangıç yüksekliği */
    resize: none; /* Boyutlandırmayı kapatma (isteğe bağlı) */
    /* Görseldeki gibi tek uzun çizgi görünümü için: */
    width: 100%;
}

.right-textarea {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.right-textarea .input-group {
    margin-bottom: 0;
}

/* --- ALTTAKİ HOVER İKONLARI --- */
.bottom-icons {
   position: absolute;
    bottom: 50px;
    width: 100%;
    height: 60px;
   pointer-events: none;
    
    /* İŞTE SİHİRLİ KOD BURASI: */
    /* Elemanları uçlara doğru iter (Sol - Orta - Sağ) */
    justify-content: space-between; 
    
    align-items: center; /* Dikeyde ortalı dursunlar */
    
    /* Kenarlardan ne kadar içeride duracaklarını buradan ayarla */
    /* 0 yaparsan ekrana yapışır, 50px idealdir. */
    padding: 0 50px; 
    
    /* Mobilde taşma olmasın diye kutu modelini sınırla */
    box-sizing: border-box;
}

.icon-box {
    position: absolute;
    top:0;
     pointer-events: auto;
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 50px; /* Hap şekli */
    padding: 5px;
    width: 60px; /* Başlangıç genişliği (sadece yuvarlak) */
    height: 60px;
    overflow: hidden; /* İçerik taşmasın */
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
    transition-delay: 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
}

/* Hover Durumu - Genişleme */
.icon-box:hover {
    width: 280px; /* Açılınca ne kadar genişleyeceği */
    transition-delay: 0s;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: #2c3e50; /* İkon arka planı (Lacivert) */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Genişlerken yuvarlağın büzülmesini engeller */
    color: white;
    font-size: 1.2rem;
}

/* İçerideki Gizli Yazı */
.icon-text {
    white-space: nowrap; /* Yazının alt satıra geçmesini engeller */
    margin-left: 15px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover olunca yazı görünsün */
.icon-box:hover .icon-text {
    opacity: 1;
    transition-delay: 0.2s; /* Biraz gecikmeli gelsin */
}
.submit-btn {
 display: block;
 position: relative;
 margin: -70px auto 0 auto;
 margin-left: 100px;
    padding: 12px 50px;
    background-color: #bf092f; /* Logodaki Kırmızı */
    color: #ecefd2;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start; /* Butonu sola hizala (form içinde) */
}

.submit-btn:hover {
    background-color: #3c467b; /* Hover olunca Lacivert olsun */
    transform: scale(1.05); /* Hafif büyüsün */
}
/* Mobil Uyumluluk (Responsive) */
@media (max-width: 768px) {
    .contact-section {
        height: auto;
        padding-bottom: 350px; /* Alttaki ikonlar için yer aç */
        align-items: center; /* Formu ve ikonları ortala */
    }

    .form-container {
        width: 90%;
        margin: 0 auto;
    }
    .form-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun olsun */
        gap: 0;
    }
    
    .right-textarea {
        justify-content: flex-start;
    }
    
    .submit-btn {
        margin: 20px auto;
        width: 80%;
        text-align: center;
    }

    .bottom-icons {
        position: relative; /* Absolute yerine relative */
        display: flex;
        flex-direction: column; /* Alt alta */
        align-items: center;    /* Yatayda ortala */
        justify-content: center;
        gap: 20px;              /* Kutular arası boşluk */
        width: 100%;
        height: auto;
        margin-top: 30px;
        padding-bottom: 50px;   /* En altta biraz boşluk kalsın */
        bottom: auto;           /* Alt sabitlemeyi kaldır */
    }
    
    .icon-box,
    .icon-box:nth-child(1),
    .icon-box:nth-child(2),
    .icon-box:nth-child(3) {
        position: relative !important; /* Masaüstü absolute'u ezmek için */
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important; /* Ortadaki kutunun kaymasını engeller */
        
        width: 90%;          /* Ekranın %90'ını kaplasın */
        max-width: 320px;    /* Ama çok da devasa olmasın */
        margin: 0 auto;      /* Ortala */
    }
    .icon-box .icon-text {
        opacity: 1; /* Yazı hep görünsün */
    }
}
/* 1. Kutu: SOLDAKİ (Sola yaslı, sağa doğru açılır) */
.icon-box:nth-child(1) {
    left: 10%; /* Soldan %10 boşluk */
    /* left: 50px; de yapabilirsin piksel istersen */
}

/* 2. Kutu: ORTAKİ (Tam merkezde, iki yana doğru açılır gibi görünür) */
.icon-box:nth-child(2) {
    left: 50%; 
    transform: translateX(-50%); /* Tam göbeğe oturtur */
    /* Transform özelliği sayesinde genişlese bile hep merkezde kalır! */
}

/* 3. Kutu: SAĞDAKİ (Sağa yaslı, sola doğru açılır) */
.icon-box:nth-child(3) {
    right: 10%; /* Sağdan %10 boşluk */
    /* right: 50px; de yapabilirsin */
    
    /* Flex-direction'a gerek yok, right:10% dediğimiz için 
       genişlediğinde otomatik olarak sola doğru büyür. */
}