:root {
    --brand-dark: #0E1337;
    --brand-text: #05081D;
    --brand-text-light: #5B5F7B;
    --brand-bg: #f8f9fa;
    --brand-border: #E2E4F0;
    --brand-accent-blue: #4A47E4;
    --brand-accent-purple: #7209b7;
    --brand-error: #e53e3e;
    --font-main: 'Inter', sans-serif;
    --lume-font: 'Inter', sans-serif;
    --lume-black: #000000;
    --lume-white: #FFFFFF;
    --lume-dark: #0E1337;
    --lume-text: #05081D;
    --lume-text-light: #5B5F7B;
    --lume-bg-light: #f9f9f9;
    --lume-border: #E2E4F0;
    --container-width: 1240px;
}
.contact-page-wrapper {
    padding: 60px 0;
    background-color: #f4f6f9;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
}

textarea {
    resize: none;
}

/* ==========================================================================
   Panel Yapısı ve Grid Düzeni
   ========================================================================== */
.contact-panel {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.contact-content-grid {
    display: grid;
    /* Form ve görsel alanını 1'e 1 oranında böldük */
    grid-template-columns: 1fr 1fr;
}

/* ==========================================================================
   Form Alanı Stilleri (Sol Sütun)
   ========================================================================== */
.contact-form-column {
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* İçeriği dikeyde ortalar */
}

.contact-form-column h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-form-subtitle {
    font-size: 15px;
    color: #5f6c7b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form-actual .form-group {
    margin-bottom: 22px;
    position: relative;
}

.contact-form-actual label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #5f6c7b;
    margin-bottom: 7px;
}

.contact-form-actual input[type="text"],
.contact-form-actual input[type="email"],
.contact-form-actual input[type="tel"],
.contact-form-actual textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #333333;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ccd0d5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-actual input[type="text"]:focus,
.contact-form-actual input[type="email"]:focus,
.contact-form-actual input[type="tel"]:focus,
.contact-form-actual textarea:focus {
    outline: none;
    border-bottom-color: #5353c6;
    box-shadow: 0 1px 0 0 #5353c6;
}

.contact-form-actual textarea {
    min-height: 90px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccd0d5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    padding-left: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.phone-input-wrapper:focus-within {
    border-bottom-color: var(--lume-dark);
    box-shadow: 0 1px 0 0 var(--lume-dark);
}

.phone-input-wrapper .phone-prefix {
    padding: 10px 8px 10px 0;
    font-size: 15px;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 6px;
    border-right: 1px solid #e0e0e0;
    margin-right: 8px;
}

.phone-input-wrapper input[type="tel"] {
    border-bottom: none;
    padding-left: 0;
}

.phone-input-wrapper input[type="tel"]:focus {
    box-shadow: none;
}

.contact-form-actual .checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 25px;
}

.contact-form-actual .checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    accent-color: var(--lume-dark);
    cursor: pointer;
    flex-shrink: 0;
}

.contact-form-actual .checkbox-group label {
    font-size: 13px;
    color: #5f6c7b;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.4;
}

.contact-form-actual .checkbox-group label a {
    color: #5353c6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-form-actual .checkbox-group label a:hover {
    color: #3e3e9d;
}

.contact-form-actual .submit-button {
    width: 100%;
    padding: 13px 20px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
}

.contact-form-actual .submit-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

/* ==========================================================================
   Görsel Alanı Stilleri (Sağ Sütun) - YENİ DÜZENLEME
   ========================================================================== */
.contact-image-collage-column {
    background-color: #f0f0f0;
    /* Resim yüklenemezse görünecek arkaplan */
}

.contact-single-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* background-image artık PHP dosyasından inline style olarak geliyor */
    min-height: 600px;
    /* Form ile görselin yüksekliğini dengeler */
}


/* ==========================================================================
   Hata ve Başarı Mesajları
   ========================================================================== */
.form-message-container {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 14.5px;
    line-height: 1.55;
    border-width: 1px;
    border-style: solid;
}

.form-message-container.error {
    background-color: #fdecea;
    border-color: #f5c6cb;
    color: #721c24;
}

.form-message-container.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    text-align: center;
}

/* ==========================================================================
   Modal Pencere (Kullanım Sözleşmesi)
   ========================================================================== */
.modal-overlay {
    z-index: 1050;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px 35px;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(-10px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e6ed;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 20px;
    color: #1a1a1a;
    margin: 0;
}

.close-modal {
    font-size: 26px;
    font-weight: bold;
    color: #5f6c7b;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s ease;
}

/* ==========================================================================
   Görsel Alanı Stilleri (Sağ Sütun) - ANİMASYON İÇİN GÜNCELLENDİ
   ========================================================================== */
.contact-image-collage-column {
    position: relative;
    /* İçerideki absolute pozisyonlu elemanlar için gerekli */
    overflow: hidden;
    /* Dışarı taşmaları engeller */

    /* Arka planı animasyonlu gradyan ile değiştiriyoruz */
    background: linear-gradient(130deg, #34415d 0%, #2a3244 50%, #22304e 100%);
    background-size: 200% 200%;
    /* GSAP ile animasyon için */
    min-height: 600px;
}
.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ÖNEMLİ: 'noise.png' adında bir dosyayı images klasörüne atman gerekebilir */
    background: url('../images/noise.png') repeat;
    opacity: .03;
    pointer-events: none;
    /* Tıklama olaylarını engeller */
}
#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem; /*32px*/
    color: white;
    line-height: 1.4;
}
#message .line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
}

#logo {
    position: absolute;
    bottom: 2.5rem;
    /* 40px */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    /* Animasyon başlangıç değeri */
    font-family: 'K2D', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    /* 64px */
    color: white;
    opacity: 0;
    /* Animasyon başlangıç değeri */
}

@media (max-width: 992px) {
    #message {
        font-size: 1.75rem;
    }

    #logo {
        font-size: 3.5rem;
    }
}
@media (max-width: 992px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
        /* Sütunlar alt alta gelir */
    }

    .contact-form-column {
        padding: 35px 25px;
        order: 1;
        /* Form üste gelir */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* Form içeriğini yatayda ortalar */
        width: 100%;
    }

    .contact-form-actual {
        width: 100%;
        max-width: 500px;
        /* Maksimum genişlik sınırı */
    }

    .contact-image-collage-column {
        order: 2;
        /* Görsel alta gelir */
        min-height: 350px;
        /* Tablette görsel yüksekliği */
        margin-bottom:20px;
        margin-top:-2.5em;
        border-radius:4px;
    }

    .contact-panel {
        margin: 30px 15px;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .contact-page-wrapper {
        padding: 30px 0;
        /* align-items: flex-start; bu satırı kaldırıyoruz */
        display: flex;
        align-items: center;
        /* Sayfayı dikeyde ortalar */
        justify-content: center;
        /* Sayfayı yatayda ortalar */
        min-height: calc(100vh - 120px);
    }

    .contact-image-collage-column {
        display: none;
        /* Mobilde görsel alanı tamamen gizlenir */
    }

    .contact-panel {
        margin: 20px 10px;
        width: calc(100% - 20px);
        /* Tam genişlik kontrolü */
    }

    .contact-form-column {
        padding: 30px 20px;
        align-items: center;
        /* İçeriği ortalar */
    }

    .contact-form-actual {
        width: 100%;
        max-width: 400px;
        /* Mobilde daha dar maksimum genişlik */
    }

    .contact-form-column h2 {
        font-size: 22px;
        text-align: center;
        /* Başlığı ortalar */
    }

    .contact-form-subtitle {
        text-align: center;
        /* Alt başlığı ortalar */
    }
}

@media (max-width: 480px) {
    .contact-page-wrapper {
        padding: 20px 0;
        align-items: center;
        /* Küçük ekranlarda da ortalama */
        justify-content: center;
    }

    .contact-panel {
        margin: 15px 5px;
        width: calc(100% - 10px);
    }

    .contact-form-column {
        padding: 25px 15px;
        align-items: center;
    }

    .contact-form-actual {
        width: 100%;
        max-width: 350px;
    }

    .phone-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        border-bottom: none;
    }
    .phone-input-wrapper input[type="tel"] {
        padding-left: 0;
        border-bottom: 1px solid #ccd0d5;
    }
}
