﻿/* ----------------------------------------------------------------
   1. GENEL STİL VE SAYFA YERLEŞİMİ
   Profesyonel ve Kurumsal Tasarım Yenilemesi
----------------------------------------------------------------- */

/* Evrensel kutu modeli */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f9fafb; /* Daha temiz bir arka plan rengi */
}

.internship-page-container {
    width: 100%;
    max-width: 100%;
    padding: 2rem 15px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(100vh - 4rem);
    /* Arka plana çok hafif bir desen eklendi */
    background-image: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.form-layout-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    justify-content: center;
    width: 100%;
    /* Varsayılan (mobil) maksimum genişlik */
    max-width: 700px;
    transition: max-width 0.3s ease;
}

.form-sidebar-col {
    display: none; /* Mobil ve tablette varsayılan olarak gizli */
}

/* Ana form alanı için profesyonel kart stili (Mobil) */
.form-main-col {
    position: relative;
    width: 100%;
    padding: 2rem; /* Daha modern bir dolgu */
    box-sizing: border-box;
    transition: padding 0.3s ease;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

    /* Kurumsal renk (kırmızı) ile üst çubuk */
    .form-main-col::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        /* Renk paletini birleştirmek için kırmızı kullanıldı */
        background: linear-gradient(90deg, #D21E2B, #b91a26);
    }

/* ----------------------------------------------------------------
   2. KENAR ÇUBUĞU (Sidebar) İÇERİĞİ
   Desktop için stil (medya sorgusunda aktifleşir)
----------------------------------------------------------------- */
.sidebar-title {
    font-size: 2.25rem; /* Biraz küçültüldü */
    font-weight: 700;
    line-height: 1.2;
    color: #111827; /* Varsayılan renk */
    margin-bottom: 1.5rem;
}

.sidebar-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
    padding-top: 0;
}

/* ----------------------------------------------------------------
   3. FORM YAPISI (Fieldset, Legend, Row)
   Daha modern ve temiz bir bölümleme
----------------------------------------------------------------- */

fieldset {
    /* Eski kenarlığı kaldır, daha temiz bir ayırıcı kullan */
    border: none;
    border-top: 1px solid #e5e7eb;
    padding: 2.5rem 0 0 0; /* Sadece üstten dolgu */
    margin-bottom: 2.5rem;
    background-color: transparent; /* Arka planı kaldır */
    border-radius: 0; /* Köşeyi kaldır */
    position: relative;
    transition: all 0.3s ease;
}

    /* Son fieldset'in alt boşluğunu kaldır */
    fieldset:last-of-type {
        margin-bottom: 1.5rem;
    }

.form-legend {
    /* Legend'ı pozisyonlamadan, normal akışta kullan */
    position: static;
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
    padding: 0;
    background: none;
}

.form-title {
    text-align: center;
    color: #1f2937;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2.5rem; /* Boşluk artırıldı */
    letter-spacing: -0.025em;
}

.form-input-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.form-input-group-full,
.form-input-group-half {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 1.75rem; /* Alanlar arası boşluk artırıldı */
    box-sizing: border-box;
}

/* ----------------------------------------------------------------
   4. TEMEL FORM ELEMANLARI (Label, Input, Select, Textarea)
   Daha yumuşak gölgeler ve odaklanma efekti
----------------------------------------------------------------- */

.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #374151;
}





.form-label.required::after {
    content: " *";
    color: #D21E2B; /* Sizin temanızdaki kırmızı renk */
    font-weight: bold;
    margin-left: 4px;
}




.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    background: #f9fafb; /* Hafif kirli beyaz, daha kurumsal */
    border-radius: 8px;
    /* Daha yumuşak, modern gölge */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #d1d5db;
    padding: 1rem 1rem; /* YENİ: Daha estetik dikey dolgu (0.875rem'den) */
    outline: none;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    position: relative;
}

    /* Daha belirgin ve erişilebilir odaklanma (focus) efekti */
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        background: #ffffff; /* Odaklanınca beyaza döner */
        border-color: #D21E2B; /* Kurumsal renkle çerçeve */
        /* Kurumsal rengin açık tonuyla halka (ring) efekti */
        box-shadow: 0 0 0 3px rgba(210, 30, 43, 0.15);
        transform: none; /* Layout shift'e neden olan transform kaldırıldı */
    }

    .form-input::placeholder,
    .form-textarea::placeholder {
        color: #9CA3AF;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .form-input:focus::placeholder,
    .form-textarea:focus::placeholder {
        opacity: 0.5;
    }

.validation-error {
    width: 100%;
    margin-top: 0.375rem;
    font-size: 0.875rem; /* Hata mesajı biraz büyütüldü */
    color: #D21E2B; /* Kurumsal kırmızı */
    min-height: 1.2em; /* YENİ: Simetriyi korumak için minimum yükseklik */
}

/* ----------------------------------------------------------------
   5. ÖZEL FORM ELEMANLARI (Select, Checkbox, File)
----------------------------------------------------------------- */

.form-select-wrapper {
    position: relative;
}

    .form-select-wrapper .form-select {
        padding-right: 30px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

.form-select-arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 16px;
    height: 16px;
    fill: #6B7280;
}

.form-checkbox-wrapper {
    display: flex;
    align-items: center;
    padding-top: 0.5rem; /* Diğer alanlarla hizalamak için */
}

.form-checkbox-input {
    display: none;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem; /* 14px */
    color: #374151;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
}

.form-checkbox-checkmark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    box-shadow: none;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Kurumsal renk (kırmızı) ile uyumlu hale getirildi */
.form-checkbox-input:checked + .form-checkbox-label .form-checkbox-checkmark {
    background: #D21E2B;
    border-color: #D21E2B;
}

    .form-checkbox-input:checked + .form-checkbox-label .form-checkbox-checkmark::after {
        content: "";
        position: absolute;
        left: 7px;
        top: 3px;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.form-checkbox-label a {
    color: #D21E2B; /* Kurumsal renk */
    text-decoration: none;
    font-weight: 500;
}

    .form-checkbox-label a:hover {
        text-decoration: underline;
    }

.form-file-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.form-file-input {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

/* Dosya seçme butonu ikincil buton gibi stilize edildi */
.form-file-button {
    background: #F3F4F6;
    border-radius: 8px;
    box-shadow: none;
    color: #374151;
    padding: 0.75rem 1.5rem;
    border: 1px solid #D1D5DB;
    transition: background-color 0.2s ease;
    pointer-events: none; /* Tıklamayı input'un alması için */
    font-weight: 500;
}

.form-file-wrapper:hover .form-file-button {
    background-color: #E5E7EB;
}

.form-file-name-display {
    font-size: 0.875rem; /* 14px */
    color: #6B7280;
    font-style: normal;
}

/* ----------------------------------------------------------------
   6. FORM ALT BÖLÜM VE GÖNDERİM
   Buton kurumsal renk ile güncellendi
----------------------------------------------------------------- */

.form-footer-grid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 1rem;
}

.form-footer-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    align-items: center;
}

.form-footer-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
    /* Mobil için recaptcha ve dosya seçimi alt alta */
    margin-bottom: 1.5rem;
}

.form-submit-container {
    text-align: center;
    margin-top: 1.5rem;
}

/* Gönder butonu kurumsal renkle güncellendi */
.form-submit-button {
    background: #D21E2B; /* Kurumsal kırmızı */
    border-radius: 8px; /* Inputlarla aynı */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: white;
    padding: 0.875rem 2.5rem; /* Daha dengeli padding */
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem; /* Standart font boyutu */
    font-weight: 600;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

    /* Mavi gradient ve parlama efekti kaldırıldı */
    .form-submit-button::before {
        display: none;
    }

    .form-submit-button:hover,
    .form-submit-button:active {
        background: #b91a26; /* Kırmızının koyu tonu */
        box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
        transform: translateY(-2px);
    }

    .form-submit-button:active {
        transform: translateY(0);
    }




/* Arka plan karartması */
.modal-overlay {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Siyah şeffaf arka plan */
}

/* Modal kutusu */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* Üstten %5 boşluk ve ortala */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Genişlik - Mobil için %90 yapabilirsiniz */
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

/* Kapatma butonu (X) */
.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-content:hover,
.close-content:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



/* ----------------------------------------------------------------
   7. MEDYA SORGULARI (Responsive)
----------------------------------------------------------------- */

/* Form içi yarım sütunlar */
@media (min-width: 576px) {
    .form-input-group-half {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Tablet (Footer düzenlemesi VE Kart genişlemesi) */
@media (min-width: 768px) {
    /* YENİ: Tablette mobil kartı biraz daha genişlet */
    .form-layout-row {
        max-width: 800px;
    }

    .form-footer-col {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0;
    }
}

/* Geniş Ekran (Desktop) - Kurumsal Bölünmüş Kart Tasarımı */
@media (min-width: 992px) {
    /* Ana kapsayıcıyı genişlet ve kart haline getir (Tablet ayarını ezer) */
    .form-layout-row {
        max-width: 1100px; /* Geniş ekran için daha büyük kart */
        background: #ffffff;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-radius: 16px;
        overflow: hidden;
        justify-content: flex-start; /* İçerik sola yaslanır */
    }

    /* Sol taraftaki kurumsal renkli alanı (sidebar) göster */
    .form-sidebar-col {
        display: flex; /* Flex ile dikey ortalama */
        flex-direction: column;
        justify-content: center;
        position: relative;
        width: 100%;
        padding: 3rem;
        margin-bottom: 0;
        box-sizing: border-box;
        flex: 0 0 35%; /* Genişliğin %35'ini kapla */
        max-width: 35%;
        background: #D21E2B; /* Kurumsal renkli arka plan */
        color: #ffffff;
        overflow: hidden; /* YENİ: Şık efekt için eklendi */
    }

    /* Sidebar başlığını beyaza çevir */
    .sidebar-title {
        color: #ffffff;
        position: relative; /* YENİ: Resmin üstünde kalması için */
        z-index: 2;
    }

    /* YENİ: Desktop'taki resme şık bir blend efekti ekle */
    .sidebar-image {
        position: relative;
        z-index: 1;
        mix-blend-mode: multiply; /* Resmi kırmızı arka planla harmanla */
        opacity: 0.7; /* Biraz soluklaştır */
        filter: grayscale(50%) contrast(120%); /* Rengi al ve kontrastı artır */
    }

    /* Sağ taraftaki formu ayarla */
    .form-main-col {
        flex: 0 0 65%; /* Genişliğin %65'ini kapla */
        max-width: 65%;
        /* Mobil için olan kart stillerini sıfırla */
        background: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 3rem; /* Desktop için daha fazla iç boşluk */
    }
        /* Üstteki kırmızı çubuğu gizle (çünkü artık yanda var) */
        .form-main-col::before {
            display: none;
        }
}


/* Mobil Recaptcha düzeltmesi */
@media (max-width: 767px) {
    .form-footer-col {
        overflow: hidden;
        width: 100%;
    }

    .g-recaptcha {
        margin-top: 1rem;
        margin-left: auto;
        margin-right: auto;
        width: 304px; /* Standart recaptcha genişliği */
        /* Gerekirse transform:scale(0.9) vb. eklenebilir */
    }
}
