/* 1 - Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f6fa;
    color: #333;
    line-height: 1.6;
}

/* 2 - Genel Sayfa Stili */
.container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 1s ease-in-out;
}

/* 3 - Başlıklar */
.container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #002244;
}

/* 4 - Form Grubu */
.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

/* 5 - Etiket */
.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #004466;
    font-size: 1.1rem;
}

/* 6 - Giriş Alanları */
.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px;
    border: 1px solid #ccd5e0;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #f9fbfd;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #007acc;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
}

/* 7 - Gönder Butonu */
button[type="submit"] {
    background-color: #005baa;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #0077cc;
}

/* 8 - İletişim Bilgileri */
.contact-info {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info .info-box {
    flex: 1;
    background-color: #eef3f7;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.contact-info .info-box:hover {
    transform: translateY(-5px);
}

.contact-info .info-box h3 {
    color: #002244;
    margin-bottom: 10px;
}

.contact-info .info-box p {
    color: #555;
}

/* 9 - Animasyon */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 10 - Harita Kutusu */
.map-container {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* 11 - Harita içeriği */
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* 12 - Hata ve Başarı Mesajları */
.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    display: none; /* Başlangıçta gizli */
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 13 - İkonlu Alanlar */
.form-group i {
    position: absolute;
    margin-left: -30px;
    margin-top: 16px;
    color: #888;
}

/* 14 - Sosyal Medya */
.social-links {
    margin-top: 40px;
    text-align: center;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #005baa;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #0077cc;
}

/* 15 - Responsive Ayarlar */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 20px;
    }

    .form-group {
        flex-direction: column;
    }

    .contact-info {
        flex-direction: column;
    }

    button[type="submit"] {
        width: 100%;
    }

    .map-container iframe {
        height: 300px;
    }
}

/* 16 - Gelişmiş Buton Efekti */
button[type="submit"]::after {
    content: ' ➤';
    transition: margin-left 0.3s ease;
}

button[type="submit"]:hover::after {
    margin-left: 10px;
}

/* 17 - Field Validasyon Sınıfları */
input:invalid,
textarea:invalid {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

input:valid,
textarea:valid {
    border-color: #2ecc71;
}

/* 18 - Gölge Efektli Kutular */
.info-box {
    transition: all 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 19 - Ekstra Görsel Efekt */
input[type="text"],
input[type="email"],
textarea {
    background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
}

/* 20 - Footer (isteğe bağlı) */
footer {
    margin-top: 60px;
    padding: 20px;
    background-color: #002244;
    text-align: center;
    color: white;
    border-top: 5px solid #0077cc;
}

footer p {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* 21 - En Üstteki Ana Sayfa Dön Butonu */
.top-return {
    background-color: #f0f4f8;
    padding: 10px 20px;
    text-align: left;
    border-bottom: 2px solid #0077cc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.return-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    color: #005baa;
    background-color: #e3f2fd;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.return-button:hover {
    background-color: #0077cc;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 119, 204, 0.3);
}
