/* ==========================================================================
   Ziraat GYO Landing Page — Figma Birebir Tasarım
   
   Figma Kaynak Ölçüleri:
   - Frame 1: 5022x1521  (hero bölümü)
   - Beyaz Panel (Rectangle 23): 491px genişlik, x:954'ten başlıyor
   - Sol görselin genişliği: ~954px / 5022 = %19 (ama Figma'da frame dışına taşıyor)
   - Aslında Panel genişliği: 491 / (954+491) ≈ %34
   - Input boyutları: 361x39
   - Mesaj kutusu: 361x71
   - Buton: 361x50, bg:#ED1C24, border-radius:5
   - Başlık fontu: Americana BT 700 60px/65px → Playfair Display 700 kullanılıyor
   - Form fontu: Gotham 400 13px → Montserrat 400 kullanılıyor
   - Harita: 2358x764
   ========================================================================== */

/* ===== Değişkenler ===== */
:root {
    --red: #ED1C24;
    --red-dark: #c41419;
    --black: #000000;
    --white: #ffffff;
    --gray-placeholder: #888888;
    --gray-border: #000000;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* ===== Sıfırlama ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

/* ==========================================================================
   HERO SECTION
   
   Split-screen: Sol bina görseli + Sağ beyaz form paneli
   Figma oranı: panel ~34% genişlik
   ========================================================================== */
.hero-section {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
    background-image: url('assets/images/bg-building.jpg');
    background-size: cover;
    background-position: center;
}

/* --- Sol Kısım: Bina Görseli --- */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

/* Alt kısımda hafif karartma (yazı okunabilirliği için) */
.hero-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.05) 60%,
            rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.hero-visual-content {
    position: relative;
    z-index: 2;
    padding: 80px 60px 0 60px;
    color: var(--white);
}

/* Küçük üst yazı: "İzmir, yeni bir değere hazırlanıyor." */
.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* Ana başlık: Figma'da Americana BT 700 60px/65px — her satır altı çizgili */
.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 60px;
    line-height: 65px;
    color: var(--white);
}

.hero-title .line {
    display: inline;
    /* Figma'daki altı çizili (underline) her satır efekti */
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* Satır sonlarını zorlama */
.hero-title .line::after {
    content: '\A';
    white-space: pre;
}

.hero-title .line:last-child::after {
    content: '';
}

/* --- Sağ Kısım: Beyaz Form Paneli --- */
/* Figma: Rectangle 23 → 491px genişlik / beyaz zemin */
.hero-sidebar {
    width: 380px;
    min-width: 380px;
    height: 80vh;
    align-self: flex-start;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 40px 35px;
    overflow: hidden;
}

/* Logo Alanı */
.sidebar-logo {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    right: -45px;

}

.sidebar-logo img {
    height: 150px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Form Alanı */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* Figma inputları: 361x39, stroke: rgb(0,0,0), Gotham 400 13px */
.form-fields input,
.form-fields textarea {
    width: 100%;
    height: 39px;
    padding: 0 18px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--black);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-fields textarea {
    height: 71px;
    /* Figma: 361x71 */
    padding: 12px 18px;
    resize: none;
    line-height: 1.4;
}

.form-fields input::placeholder,
.form-fields textarea::placeholder {
    color: var(--gray-placeholder);
    font-weight: 400;
}

.form-fields input:focus,
.form-fields textarea:focus {
    border-color: var(--red);
}

/* ===== Onay Kutuları ===== */
/* Figma: 15x15 checkbox, stroke:black, Gotham 400 10px / lh:12px */
.consent-area {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 10px;
    line-height: 12px;
    color: var(--black);
    user-select: none;
}

.checkbox-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Figma: 15x15 kare, stroke black */
.cb-box {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    border: 1px solid var(--black);
    border-radius: 0;
    position: relative;
    margin-top: 0;
    transition: background-color 0.15s ease;
}

.checkbox-row input:checked+.cb-box {
    background-color: var(--red);
    border-color: var(--red);
}

.checkbox-row input:checked+.cb-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.cb-text {
    flex: 1;
    font-family: var(--font-body);
    font-weight: 400;
}

.kvkk-link {
    color: var(--red);
    text-decoration: underline;
    font-weight: 500;
}

/* ===== Bildirim Kutusu ===== */
.alert-box {
    display: none;
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.alert-box.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Gönder Butonu ===== */
/* Figma: 361x50, fill: rgb(237,28,36), radius:5 */
/* Figma font: Americana BT 700 25px — Playfair Display 700 kullanıyoruz */
.submit-button {
    width: 100%;
    height: 50px;
    background-color: var(--red);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.submit-button:hover {
    background-color: var(--red-dark);
}

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

/* Buton yükleniyor durumu */
.submit-button.loading .btn-text {
    visibility: hidden;
}

.submit-button.loading .btn-spinner {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.7s linear infinite;
}

.btn-spinner {
    display: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ==========================================================================
   MAP SECTION
   
   Figma: Harita görseli tam genişlik, 2358x764 oranında
   Sağ üstte kırmızı "Yol Tarifi Al" butonu + pin ikonu
   ========================================================================== */
.map-section {
    width: 100%;
    position: relative;
}

.map-iframe-wrapper {
    width: 100%;
    height: 600px;
    line-height: 0;
}

.map-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Figma: Rectangle 12 → 314x57, fill: #ED1C24, sağ üst köşede */
/* Text: "Yol Tarifi Al" Gotham 400 25px, beyaz */
/* Map pin ikonu: 32x32 beyaz */
.directions-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: var(--red);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    transition: background-color 0.2s ease;
}

.directions-btn:hover {
    background-color: var(--red-dark);
}

.directions-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   
   Figma: Kırmızı zemin, sol tarafta beyaz logo + "Ortaklıktan daha fazlası"
   ========================================================================== */
.main-footer {
    background-color: var(--red);
    padding: 45px 60px;
    position: relative;
    overflow: hidden;
}

/* Arka plan deseni (footer.png) */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/footer.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 2;
}

.footer-logo-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    /* Logo beyaz yapma — Figma'da beyaz logo kırmızı zemin üzerinde duruyor */
    filter: brightness(0) invert(1);
    margin-bottom: 6px;
}

.footer-tagline {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   MODAL (KVKK)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 35px;
    border-radius: 4px;
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--red);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    color: var(--black);
    padding-right: 30px;
}

.modal-body {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 14px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .hero-visual {
        width: 100%;
        min-height: 500px;
    }

    .hero-visual-content {
        padding: 60px 40px 0 40px;
    }

    .hero-title {
        font-size: 44px;
        line-height: 50px;
    }

    .hero-sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        padding: 40px;
    }

    .directions-btn {
        font-size: 15px;
        padding: 10px 20px;
    }

    .main-footer {
        padding: 35px 40px;
    }
}

/* Mobil */
@media (max-width: 576px) {
    .hero-visual {
        min-height: 380px;
    }

    .hero-visual-content {
        padding: 40px 24px 0 24px;
    }

    .hero-title {
        font-size: 32px;
        line-height: 38px;
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .hero-sidebar {
        padding: 30px 20px;
    }

    .submit-button {
        font-size: 18px;
        height: 46px;
    }

    .directions-btn {
        font-size: 13px;
        padding: 8px 16px;
        top: 10px;
        right: 10px;
    }

    .main-footer {
        padding: 30px 20px;
    }

    .modal-content {
        padding: 25px;
    }
}