:root {
    --primary-green: #043620;
    --light-green: #EBF1EA;
    --bg-color: #FAFAFA;
    --bottom-bg-color: #EEF3EF;
    --text-dark: #374151;
    --text-light: #6B7280;
    --border-color: #D1D5DB;
}

/* --- YAPI VE ARKA PLAN KONTROLÜ --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--primary-green);
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-section {
    flex: 1; /* Kalan tüm boşluğu üst bölüm alır */
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Yazıları bölümün ortasında sabitler, aşağı kaymasını engeller */
    position: relative; 
    z-index: 1; 
}

.bottom-section {
    flex: none; /* Sadece içeriği kadar yer kaplar ve en alta oturur */
    background-color: var(--bottom-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    position: relative; 
    z-index: 2; 
}

.bottom-section::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -25%;
    width: 150%;
    height: 160px;
    background-color: var(--bottom-bg-color);
    border-top-left-radius: 100% 100%;
    border-top-right-radius: 100% 100%;
    z-index: -1;
}

.form-container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    margin-top: -60px;
    margin-bottom: 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

#formMessage {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    z-index: 10;
    margin-top: -10px;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 20px 0 10px 0;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 30px 0;
    letter-spacing: -1px;
}

.divider-line {
    width: 50px;
    height: 1px;
    background-color: var(--primary-green);
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-1 { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; }
.fade-in-2 { animation: fadeInUp 0.6s ease-out 0.2s forwards; opacity: 0; }
.fade-in-4 { animation: fadeInUp 0.6s ease-out 0.6s forwards; opacity: 0; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.gift-container {
    position: relative;
    display: inline-flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
}

.gift-circle {
    width: 80px;
    height: 80px;
    background-color: var(--light-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-circle i {
    font-size: 38px;
    color: var(--primary-green);
}

/* --- KIVILCIM ANİMASYONLARI --- */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.spark {
    position: absolute;
    width: 8px;
    height: 2px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.s1 { left: -16px; top: 25%; transform: rotate(45deg); animation: twinkle 1.5s infinite alternate; }
.s2 { left: -22px; top: 50%; transform: translateY(-50%); animation: twinkle 2s infinite alternate-reverse; }
.s3 { left: -16px; bottom: 25%; transform: rotate(-45deg); animation: twinkle 1.2s infinite alternate; }
.s4 { right: -16px; top: 25%; transform: rotate(-45deg); animation: twinkle 1.8s infinite alternate-reverse; }
.s5 { right: -22px; top: 50%; transform: translateY(-50%); animation: twinkle 1.4s infinite alternate; }
.s6 { right: -16px; bottom: 25%; transform: rotate(45deg); animation: twinkle 1.6s infinite alternate-reverse; }

/* --- ABONELİK FORMU --- */
.subscribe-form {
    display: flex;
    width: 100%;
    gap: 15px;
    margin-bottom: 20px;
}

.subscribe-form input {
    flex-grow: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s ease;
}

.subscribe-form input:focus {
    border-color: var(--primary-green);
}

.subscribe-form button {
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 35px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.subscribe-form button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.subscribe-form button:active {
    transform: scale(0.98);
}

/* --- FOOTER --- */
footer {
    padding-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    position: relative; /* Yeni eklendi */
    z-index: 1; /* Footer'ın üstte kalmasını sağlar */
}

footer p {
    margin: 6px 0;
}

footer .copyright {
    font-size: 12px;
}

/* --- MOBİL UYUM (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    h1 { font-size: 40px; }
    h2 { font-size: 26px; }

    .subscribe-form { flex-direction: column; }
    .subscribe-form button {
        padding: 16px;
        justify-content: center;
    }
}
