/*
    =============================================
    INDEX SAYFASI CSS - ANA FORM STİLLERİ
    =============================================
    
    Bu dosya ana form sayfası (index.html) için tüm CSS stillerini içerir.
    Kullanıcıların fiziksel özelliklerini girebileceği form arayüzünü tasarlar.
    
    ANA BÖLÜMLER:
    - Genel sayfa düzeni ve arka plan
    - Form konteyner ve kartları
    - Input alanları ve seçenekler
    - Butonlar ve etkileşimler
    - Responsive tasarım (mobil, tablet, desktop)
    - Animasyonlar ve geçişler
    
    TASARIM ÖZELLİKLERİ:
    - Modern glassmorphism tasarım (cam efekti)
    - Responsive mobil uyumlu (Android & iPhone)
    - Smooth animasyonlar ve geçişler
    - Gradient arka planlar ve renkler
    - Hover efektleri ve etkileşimler
    - Touch-friendly butonlar (mobil için)
    
    RESPONSIVE BREAKPOINT'LER:
    - 768px ve altı: Tablet ve mobil cihazlar
    - 480px ve altı: Küçük ekranlar
    - 390px ve altı: Çok küçük ekranlar
    
    KULLANILAN TEKNOLOJİLER:
    - CSS Grid: Düzen sistemi
    - Flexbox: Esnek düzen
    - CSS Variables: Renk ve boyut yönetimi
    - Media Queries: Responsive tasarım
    - CSS Transitions: Animasyonlar
*/

/* GENEL SAYFA DÜZENİ: Arka plan, font ve temel düzen */
body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100vw;
}

/* FORM AÇIKLAMASI */
.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* PROGRESS BAR */
.progress-container {
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4f8cff 0%, #3b7de0 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.3);
}

.progress-text {
    font-size: 0.9em;
    font-weight: 600;
    color: #4f8cff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}



/* ANİMASYONLAR */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

button:hover {
    animation: pulse 0.3s ease;
}

/* MOBİL OPTİMİZASYON - Gelişmiş responsive tasarım */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        margin: 20px auto;
        /* Daha iyi mobil deneyim için */
        min-height: calc(100vh - 40px);
        display: flex;
        flex-direction: column;
    }
    
    .progress-container {
        margin-bottom: 20px;
        flex-shrink: 0;
    }
    
    .form-description {
        font-size: 1em;
        margin-bottom: 20px;
        flex-shrink: 0;
    }
    
    /* Form alanları için daha iyi spacing */
    form {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Daha büyük dokunma alanları */
    .custom-select-trigger,
    input[type="text"],
    input[type="number"] {
        min-height: 48px;
        font-size: 16px; /* iOS zoom önleme */
        padding: 14px 16px;
    }
    
    /* Butonlar için daha iyi dokunma deneyimi */
    button {
        min-height: 48px;
        font-size: 16px;
        padding: 14px 20px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
        margin: 10px auto;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .form-description {
        font-size: 0.95em;
    }
}

/* ANA KONTEYNER: Form kartı ve glassmorphism efekti */
.container {
    max-width: 900px;
    margin: 48px auto;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
    animation: fadeIn 1.2s cubic-bezier(.39,.575,.565,1.000);
    box-sizing: border-box;
    width: 100%;
}

/* MOBİL RESPONSİVE: Küçük ekranlar için düzenleme */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
        background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1920&q=80');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    
    .container {
        margin: 8px;
        padding: 16px;
        max-width: calc(100vw - 16px);
        width: calc(100vw - 16px);
        border-radius: 12px;
        box-sizing: border-box;
        overflow-x: hidden;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 16px;
        text-align: center;
    }
    
    form {
        gap: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    form > div {
        width: 100%;
        box-sizing: border-box;
    }
    
    label {
        font-size: 0.95em;
        margin-bottom: 6px;
        display: block;
    }
    
    select, input {
        padding: 14px 16px;
        font-size: 16px; /* iOS zoom önleme */
        font-weight: 500;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        border: 2px solid #e8f0fe;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .face-shape-container {
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .face-shape-buttons {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .face-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        box-sizing: border-box;
    }
    
    .face-preview {
        margin-top: 12px;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    #camera-video, #gallery-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }
    
    .face-result {
        text-align: center;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .confirm-btn, .change-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        margin: 4px 0;
        box-sizing: border-box;
    }
    
    button[type="submit"] {
        width: 100%;
        padding: 16px;
        font-size: 16px;
        margin-top: 16px;
        box-sizing: border-box;
    }
    
    .input-hint {
        font-size: 0.8em;
        margin-top: 4px;
    }
}

/* KÜÇÜK MOBİL: Çok küçük ekranlar için düzenleme */
@media (max-width: 480px) {
    .container {
        margin: 4px;
        padding: 12px;
        max-width: calc(100vw - 8px);
        width: calc(100vw - 8px);
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 1.6em;
        margin-bottom: 12px;
    }
    
    form {
        gap: 12px;
    }
    
    select, input {
        padding: 14px 16px;
        font-size: 16px;
        font-weight: 500;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        border: 2px solid #e8f0fe;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .face-btn {
        padding: 14px;
        font-size: 14px;
    }
    
    .confirm-btn, .change-btn {
        padding: 14px;
        font-size: 14px;
    }
    
    button[type="submit"] {
        padding: 14px;
        font-size: 16px;
    }
}

/* IPHONE 13 ÖZEL: 390px genişlik için optimizasyon */
@media (max-width: 390px) {
    .container {
        margin: 2px;
        padding: 10px;
        max-width: calc(100vw - 4px);
        width: calc(100vw - 4px);
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    
    form {
        gap: 10px;
    }
    
    select, input {
        padding: 14px 16px;
        font-size: 16px;
        font-weight: 500;
        width: 100%;
        box-sizing: border-box;
        border: 2px solid #e8f0fe;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .face-btn, .confirm-btn, .change-btn {
        padding: 12px 8px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    button[type="submit"] {
        padding: 12px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* YENİ MOBİL BREAKPOINT'LER - Daha detaylı responsive tasarım */

/* Büyük tabletler ve küçük laptop'lar */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 800px;
        margin: 30px auto;
        padding: 28px 24px;
    }
    
    form {
        gap: 20px;
    }
    
    .custom-select-trigger,
    input[type="text"],
    input[type="number"] {
        padding: 16px 18px;
        font-size: 1.05em;
    }
}

/* Çok küçük ekranlar (iPhone SE, eski telefonlar) */
@media (max-width: 360px) {
    .container {
        margin: 1px;
        padding: 8px;
        max-width: calc(100vw - 2px);
        width: calc(100vw - 2px);
        border-radius: 6px;
    }
    
    h1 {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .form-description {
        font-size: 0.9em;
        margin-bottom: 12px;
    }
    
    form {
        gap: 8px;
    }
    
    .custom-select-trigger,
    input[type="text"],
    input[type="number"] {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .face-btn, .confirm-btn, .change-btn {
        padding: 10px 6px;
        font-size: 13px;
        min-height: 44px;
    }
    
    button[type="submit"] {
        padding: 14px;
        font-size: 15px;
        min-height: 48px;
    }
}

/* Landscape modda mobil cihazlar */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        margin: 5px auto;
        padding: 12px 16px;
        max-height: calc(100vh - 10px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    h1 {
        font-size: 1.6em;
        margin-bottom: 8px;
    }
    
    .form-description {
        font-size: 0.9em;
        margin-bottom: 8px;
    }
    
    form {
        gap: 8px;
    }
    
    .progress-container {
        margin-bottom: 8px;
    }
}

/* Ultra geniş ekranlar için optimizasyon */
@media (min-width: 1400px) {
    .container {
        max-width: 1000px;
        margin: 60px auto;
        padding: 40px 32px;
    }
    
    h1 {
        font-size: 3em;
        margin-bottom: 32px;
    }
    
    form {
        gap: 24px;
    }
    
    .custom-select-trigger,
    input[type="text"],
    input[type="number"] {
        padding: 18px 20px;
        font-size: 1.1em;
    }
    
    button {
        padding: 20px 32px;
        font-size: 1.2em;
    }
}

/* ANDROID UYUMLULUK: Touch ve viewport optimizasyonları */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    select, input {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 8px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f8cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 18px;
        padding-right: 45px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* MOBİL SELECT OPTİMİZASYONU: Çift tıklama sorununu çöz */
    select:focus {
        -webkit-tap-highlight-color: transparent;
        outline: none;
        border-color: #4f8cff;
        box-shadow: 0 4px 16px rgba(79, 140, 255, 0.15), 0 0 0 3px rgba(79, 140, 255, 0.1);
        background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
        transform: translateY(-1px);
    }
    
    /* MOBİL INPUT OPTİMİZASYONU */
    input:focus {
        -webkit-tap-highlight-color: transparent;
        outline: none;
        border-color: #4f8cff;
        box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.2);
    }
}

/* IPHONE SAFE AREA: Notch ve home indicator için */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* BÜYÜK EKRAN: Geniş ekranlar için düzenleme */
@media (min-width: 1920px) {
    .container {
        max-width: 900px;
    }
}

/* ANİMASYONLAR: Sayfa yüklenme ve döndürme efektleri */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* SPİN ANİMASYONU: Yükleme göstergesi için döndürme efekti */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* BAŞLIK STİLLERİ: Ana başlık ve alt başlıklar */
h1 {
    font-size: 2.5em;
    color: #2a3b4c;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

form > div {
    width: 100%;
    box-sizing: border-box;
}

label {
    font-size: 1.1em;
    color: #2a3b4c;
    margin-bottom: 6px;
    font-weight: 500;
    display: block;
}

select, input {
    padding: 14px 16px;
    font-size: 1em;
    font-weight: 500;
    border: 2px solid #e8f0fe;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    max-width: 100%;
    color: #2a3b4c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

select:focus, input:focus {
    border-color: #4f8cff;
    outline: none;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.15), 0 0 0 3px rgba(79, 140, 255, 0.1);
    transform: translateY(-1px);
}

/* Number input özel stilleri */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* CUSTOM SELECT STİLLERİ - Modern dropdown tasarımı */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    padding: 10px 14px;
    font-size: 0.95em;
    font-weight: 500;
    border: 2px solid #e8f0fe;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    max-width: 100%;
    color: #2a3b4c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}

.custom-select-trigger:hover {
    border-color: #4f8cff;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.15);
    transform: translateY(-1px);
}

.custom-select-trigger.active {
    border-color: #4f8cff;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.15), 0 0 0 3px rgba(79, 140, 255, 0.1);
    transform: translateY(-1px);
}

.custom-select-value {
    flex: 1;
    text-align: left;
}

.custom-select-arrow {
    font-size: 10px;
    color: #4f8cff;
    transition: transform 0.3s ease;
    margin-left: 6px;
}

.custom-select.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e8f0fe;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    display: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #4f8cff #f1f1f1;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    backdrop-filter: blur(8px);
}

.custom-select-options.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.custom-select-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #e8f0fe;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    color: #2a3b4c;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-left: 2px solid transparent;
    position: relative;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-select-option:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%);
    border-left-color: #4f8cff;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.12);
    color: #1a365d;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-select-option:active {
    background: linear-gradient(135deg, #e6f3ff 0%, #d1e7ff 100%);
    border-left-color: #2c5aa0;
    transform: translateX(1px);
    box-shadow: 0 1px 4px rgba(79, 140, 255, 0.15);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option.selected {
    background: linear-gradient(135deg, #4f8cff 0%, #3b7de0 100%);
    color: #ffffff;
    font-weight: 700;
    border-left-color: #2c5aa0;
    transform: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.4px;
}

/* Custom select scrollbar */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #f8f9ff;
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4f8cff 0%, #3b7de0 100%);
    border-radius: 3px;
    border: 1px solid #e8f0fe;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3b7de0 0%, #2c5aa0 100%);
}

.input-hint {
    display: block;
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 4px;
    font-style: italic;
}

button {
    padding: 16px 28px;
    background: linear-gradient(135deg, #4f8cff 0%, #3b7de0 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(135deg, #3b7de0 0%, #2c5aa0 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(79, 140, 255, 0.3);
}

.error-message {
    color: #e53935;
    font-size: 0.95em;
    display: none;
}

#random-eyes-bg {
    display: none;
}

/* Şehir Arama Stilleri */
.city-search-container {
    position: relative;
}

#city-search {
    width: 100%;
    padding: 12px 40px 12px 12px;
    font-size: 1em;
    border: 1px solid #e3eafc;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#city-search:focus {
    border-color: #4f8cff;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    color: #666;
    z-index: 1;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e3eafc;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10020;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #4f8cff #f1f1f1;
    /* Kaydırma için ek stiller */
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    backdrop-filter: blur(10px);
}

.city-dropdown.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10020 !important;
}

/* SCROLLBAR STİLLERİ */
.city-dropdown::-webkit-scrollbar {
    width: 8px;
}

.city-dropdown::-webkit-scrollbar-track {
    background: #f8f9ff;
    border-radius: 4px;
}

.city-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4f8cff 0%, #3b7de0 100%);
    border-radius: 4px;
    border: 1px solid #e8f0fe;
}

.city-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3b7de0 0%, #2c5aa0 100%);
}

.city-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #e8f0fe;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    /* Kaydırma için ek stiller */
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    color: #2a3b4c;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-left: 2px solid transparent;
    position: relative;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.city-option:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%);
    border-left-color: #4f8cff;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.12);
    color: #1a365d;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.city-option:active {
    background: linear-gradient(135deg, #e6f3ff 0%, #d1e7ff 100%);
    border-left-color: #2c5aa0;
    transform: translateX(1px);
    box-shadow: 0 1px 4px rgba(79, 140, 255, 0.15);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.city-option:last-child {
    border-bottom: none;
}

/* Yüz Şekli Stilleri */
.face-shape-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.face-shape-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.face-btn {
    flex: 1;
    padding: 12px 18px;
    background: #4f8cff;
    color: white;
    border: 2px solid #4f8cff;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(79, 140, 255, 0.2);
}

.face-btn:hover {
    background: #3b7de0;
    border-color: #3b7de0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 140, 255, 0.3);
}

.face-preview {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e3eafc;
}

#face-canvas {
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    max-width: 100%;
    height: auto;
}

.face-result p {
    margin: 8px 0;
    font-weight: 600;
    color: #2a3b4c;
}

.confirm-btn, .change-btn {
    padding: 8px 16px;
    margin: 4px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.confirm-btn {
    background: #28a745;
    color: white;
}

.confirm-btn:hover {
    background: #218838;
}

.change-btn {
    background: #6c757d;
    color: white;
}

.change-btn:hover {
    background: #5a6268;
}

/* MOBİL UYUMLU STİLLER - Gelişmiş touch optimizasyonu */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin: 10px auto;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    input, select, textarea {
        font-size: 16px; /* iOS zoom önleme */
        padding: 14px 16px;
        border-radius: 10px;
        font-weight: 500;
        /* Touch optimizasyonu */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Daha büyük dokunma alanları */
    .custom-select-option {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 16px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .city-option {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 16px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Butonlar için gelişmiş touch deneyimi */
    .face-btn, .confirm-btn, .change-btn, button[type="submit"] {
        min-height: 48px;
        min-width: 48px;
        padding: 14px 20px;
        font-size: 16px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        /* Daha iyi görsel feedback */
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    
    /* Touch feedback efekti */
    .face-btn:active, .confirm-btn:active, .change-btn:active, button[type="submit"]:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* Ripple efekti için pseudo-element */
    .face-btn::before, .confirm-btn::before, .change-btn::before, button[type="submit"]::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
        pointer-events: none;
    }
    
    .face-btn:active::before, .confirm-btn:active::before, .change-btn:active::before, button[type="submit"]:active::before {
        width: 200px;
        height: 200px;
    }
    
    .city-search-container {
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    
    #city-search {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        padding-right: 40px;
    }
    
    .city-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 4px;
        max-height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 9999;
        display: none;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f1f1f1;
        /* Mobilde kaydırma için ek stiller */
        overscroll-behavior: contain;
        scroll-behavior: smooth;
        touch-action: pan-y;
    }
    
    .city-dropdown.show {
        display: block;
    }
    
    .city-option {
        padding: 12px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
        font-size: 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .city-option:hover {
        background: #f5f5f5;
    }
    
    .city-option:active {
        background: #e9ecef;
    }
    
    /* MOBİL ŞEHİR ARAMA OPTİMİZASYONU */
    #city-search {
        -webkit-user-select: text;
        user-select: text;
        -webkit-touch-callout: default;
        touch-action: manipulation;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }
    
    #city-search:focus {
        -webkit-tap-highlight-color: transparent;
        outline: none;
        border-color: #4f8cff;
        box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.2);
    }
    
    .face-shape-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .face-btn {
        min-width: auto;
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .face-preview {
        margin-top: 15px;
    }
    
    #camera-video, #gallery-image {
        max-width: 100%;
        height: auto;
    }
    
    .confirm-btn, .change-btn {
        padding: 10px 15px;
        font-size: 14px;
        margin: 5px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
        margin: 5px auto;
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    input, select, textarea {
        font-size: 16px;
        font-weight: 500;
        padding: 14px 16px;
        border: 2px solid #e8f0fe;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .face-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .city-option {
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* MOBİL OPTİMİZASYONLAR - Android ve iPhone uyumlu */
@media (max-width: 768px) {
    /* iOS Safari için özel optimizasyonlar */
    @supports (-webkit-touch-callout: none) {
        body {
            -webkit-text-size-adjust: 100%;
            -webkit-tap-highlight-color: transparent;
            /* iOS için daha iyi scroll deneyimi */
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }
        
        input, select, textarea {
            -webkit-appearance: none;
            appearance: none;
            border-radius: 8px;
            /* iOS için daha iyi focus deneyimi */
            -webkit-tap-highlight-color: transparent;
        }
        
        button {
            -webkit-appearance: none;
            appearance: none;
            -webkit-tap-highlight-color: transparent;
        }
        
        /* iOS için custom select optimizasyonu */
        .custom-select-trigger {
            -webkit-appearance: none;
            appearance: none;
        }
    }
    
    /* Android Chrome için özel optimizasyonlar */
    @supports not (-webkit-touch-callout: none) {
        input, select, textarea {
            -webkit-appearance: none;
            appearance: none;
        }
        
        button {
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
    }
    
    /* Touch optimizasyonları */
    .face-btn, .custom-btn, .custom-select-trigger {
        min-height: 48px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        /* Daha iyi touch feedback */
        transition: all 0.15s ease;
    }
    
    /* Video element optimizasyonu */
    video {
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        -webkit-object-fit: cover;
        object-fit: cover;
        /* Touch ile zoom engelleme */
        touch-action: pan-x pan-y;
    }
    
    /* Galeri resmi optimizasyonu */
    #gallery-image {
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        -webkit-object-fit: cover;
        object-fit: cover;
        touch-action: pan-zoom;
    }
    
    /* Daha iyi scroll deneyimi */
    .custom-select-options, .city-dropdown {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scroll-behavior: smooth;
    }
    
    /* Form container için daha iyi scroll */
    .container {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Daha iyi keyboard deneyimi */
    input:focus, textarea:focus {
        /* iOS keyboard açıldığında viewport ayarlaması */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* YENİ: PWA ve mobil performans optimizasyonları */
@media (max-width: 768px) {
    /* Daha hızlı render için */
    .container, form, .custom-select, .city-search-container {
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* GPU acceleration için */
    .custom-select-options, .city-dropdown {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* Daha iyi animasyon performansı */
    .custom-select-option, .city-option {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* Buton animasyonları için GPU acceleration */
    button, .face-btn, .confirm-btn, .change-btn {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* MOBİL CİHAZ TESPİTİ İÇİN EK STİLLER */
.mobile-device .custom-select-trigger,
.mobile-device .custom-select-option,
.mobile-device .city-option,
.mobile-device button {
    /* Touch feedback için */
    transition: all 0.15s ease;
}

.mobile-device .touch-active {
    transform: scale(0.98);
    opacity: 0.8;
    background: linear-gradient(135deg, #e6f3ff 0%, #d1e7ff 100%);
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.3);
}

/* Daha iyi mobil deneyim için ek optimizasyonlar */
@media (max-width: 768px) {
    /* Form elemanları için daha iyi spacing */
    form > div {
        margin-bottom: 16px;
    }
    
    /* Label'lar için daha iyi görünürlük */
    label {
        font-weight: 600;
        color: #1a365d;
        margin-bottom: 8px;
    }
    
    /* Input focus durumunda daha iyi görünüm */
    input:focus, .custom-select-trigger:focus {
        border-color: #4f8cff;
        box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.1);
        outline: none;
    }
    
    /* Daha iyi error mesajları */
    .error-message {
        background: #fee;
        border: 1px solid #fcc;
        border-radius: 6px;
        padding: 8px 12px;
        margin-top: 8px;
        font-size: 14px;
        color: #c33;
    }
    
    /* Progress bar için mobil optimizasyon */
    .progress-container {
        margin: 16px 0;
    }
    
    .progress-bar {
        height: 6px;
        border-radius: 8px;
    }
    
    .progress-text {
        font-size: 14px;
        font-weight: 600;
    }
}

/* MOBİL SEÇİM LİSTESİ - Sadece mobilde aktif */
.mobile-selection-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Arka planın kaymasını engelle */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-selection-list.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    /* Arka planın kaymasını tamamen engelle */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.mobile-list-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-list-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    margin: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Yatay kaydırmayı engelle */
    overflow-x: hidden;
    /* Arka planın kaymasını engelle */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-selection-list.show .mobile-list-container {
    transform: scale(1) translateY(0);
}

.mobile-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #4f8cff 0%, #3b7de0 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-list-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.mobile-list-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-list-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-list-content {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Daha iyi kaydırma deneyimi */
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    /* Sadece dikey kaydırma */
    touch-action: pan-y;
    /* Arka planın kaymasını engelle */
    position: relative;
    isolation: isolate;
}

.mobile-list-options {
    padding: 0;
    /* Kaydırma için optimize */
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mobile-list-option {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1em;
    font-weight: 500;
    color: #2a3b4c;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
    min-height: 56px;
    border-bottom: 1px solid #f0f0f0;
    /* Kaydırma için optimize */
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    /* Yatay kaydırmayı engelle */
    overflow-x: hidden;
}

.mobile-list-option:last-child {
    border-bottom: none;
}

.mobile-list-option:hover {
    background: #f8f9fa;
    color: #1a365d;
}

.mobile-list-option:active {
    background: #e9ecef;
    transform: scale(0.98);
}

.mobile-list-option.selected {
    background: linear-gradient(135deg, #4f8cff 0%, #3b7de0 100%);
    color: white;
    font-weight: 600;
}

.mobile-list-option.selected::after {
    content: '✓';
    position: absolute;
    right: 20px;
    font-size: 1.2em;
    font-weight: bold;
}

/* Sadece mobilde göster */
@media (min-width: 769px) {
    .mobile-selection-list {
        display: none !important;
    }
}