/* Genel sayfa stilleri */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #11cb71 0%, #2575fc 100%);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Sayfanın tüm yüksekliğini kapsar */
    color: #fff;
    justify-content: flex-start; /* Sayfa içeriği üstte başlar */
    align-items: center; /* Formu ve footer'ı ortalamak için */
    overflow-x: hidden; /* Yatay kaydırma çubuğunu engellemek için */
}

/* Header Stili */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    box-sizing: border-box; /* Padding ve border'ı genişliğe dahil et */
    z-index: 100;
}

header img {
    height: 50px; /* Logo boyutu */
    cursor: pointer;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    border: 2px solid white; /* Başlangıçta beyaz çerçeve */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav a:hover {
    background-color: #2575fc; /* Butona hover yapıldığında mavi efekt */
    border-color: #6a11cb;
}

/* Form Container */
.form-container {
    display: block;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    animation: fadeIn 1.5s ease-out;
    width: 100%;
    max-width: 600px; /* Formu ortalamak için max-width */
    margin-bottom: 100px; /* Footer ile çakışmaması için margin ekledim */
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

label {
    font-size: 16px;
    margin-top: 15px;
    display: block;
    font-weight: 500;
    color: #333;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #2575fc;
    background-color: #e6f0ff;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #2575fc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #11cb95;
    transform: translateY(px);
}

button:active {
    transform: translateY(1px);
}

/* Mail Animasyonu */
.mail {
    position: absolute;
    right: -100px;
    top: 50%;
    width: 50px;
    height: 50px;
    background: url('https://img.icons8.com/ios-filled/50/ffffff/mail.png') no-repeat center center;
    background-size: contain;
    display: none;
    animation: flyMail 2s ease-in-out forwards;
}

@keyframes flyMail {
    0% {
        right: -100px;
        top: 50%;
        opacity: 1;
    }
    50% {
        right: 50%;
        top: 10%;
        transform: translateX(50%) translateY(-30px);
        opacity: 0.8;
    }
    100% {
        right: 100%;
        top: 10%;
        opacity: 0;
    }
}

/* Footer Stili */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    box-sizing: border-box; /* Padding ve border'ı genişliğe dahil et */
    z-index: 100;
}

/* FadeIn Animasyonu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 30px;
    }

    .form-container {
        padding: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }
}



.error {
    border: 2px solid red;
}


















