/* assets/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1e6fd9;
    --primary-dark: #165bb8;
    --primary-light: #e6f0fa;
    --accent-color: #ffca28;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f5f9ff;
    --white: #ffffff;
    --error: #e74c3c;
    --success: #2ecc71;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* iOS Reset & Fixes */
input, textarea, select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0; /* Reset */
}

input[type="checkbox"], input[type="radio"] {
    -webkit-appearance: auto; /* Keep native boolean controls */
    appearance: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
    flex: 1;
    width: 100%;
}

/* Header Setup */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4facfe 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(30, 111, 217, 0.25);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

header h1 {
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Structure */
.form-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.form-section {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 35px 40px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.form-section h2 i {
    font-size: 1.5rem;
    background: var(--primary-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
}

/* Inputs */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.required::after {
    content: " *";
    color: var(--error);
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #eef2f7;
    border-radius: 8px;
    font-size: 16px; /* Prevents auto-zoom on iOS */
    transition: var(--transition);
    background-color: #fdfdfd;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 111, 217, 0.1);
}

textarea {
    resize: vertical;
}

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='%23333' 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 15px center;
    background-size: 15px;
    padding-right: 40px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    margin: 0;
}

/* Photo Upload */
.photo-upload {
    border: 2px dashed #cbd5e1;
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background-color: #fcfcfc;
}

.photo-upload:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.photo-upload i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0.8;
}

.photo-upload p {
    color: var(--text-light);
    font-weight: 500;
}

.photo-preview {
    display: none;
    margin-top: 20px;
    text-align: center;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* KVKK Box */
.kvkk-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.85rem;
    color: var(--text-light);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.checkbox-container label {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

/* Notices */
.form-notice {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 111, 217, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 111, 217, 0.4);
}

.btn-reset {
    background-color: #fff;
    color: var(--text-light);
    border: 1px solid #e2e8f0;
}

.btn-reset:hover {
    background-color: #f1f5f9;
    color: var(--text-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #e2e8f0;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
    background: var(--white);
}

/* Responsive - Large Desktop (1200px ve altı) */
@media (max-width: 1200px) {
    .container {
        padding: 0 24px;
    }
    
    .form-container {
        gap: 24px;
    }
    
    .form-section {
        padding: 28px 24px;
    }
}

/* Responsive - Tablet (992px ve altı) */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
        margin: 24px auto;
    }
    
    .form-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
    
    header {
        padding: 28px 24px;
        margin-bottom: 24px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
}

/* Responsive - Tablet Portrait (768px ve altı) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        margin: 16px auto;
    }

    .form-container {
        max-width: 100%;
        gap: 16px;
    }
    
    .form-section {
        padding: 24px 20px;
        border-radius: 10px;
    }
    
    .form-section h2 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .form-section h2 i {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    header {
        padding: 24px 20px;
        margin-bottom: 16px;
        border-radius: 10px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 0.95rem;
    }

    .buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    input, select, textarea {
        padding: 12px 14px;
    }
    
    .photo-upload {
        padding: 28px 16px;
    }
    
    .photo-upload i {
        font-size: 2.5rem;
    }
    
    footer {
        padding: 20px 16px;
    }
}

/* Responsive - Mobile (576px ve altı) */
@media (max-width: 576px) {
    .container {
        padding: 0 12px;
        margin: 12px auto;
    }
    
    .form-section {
        padding: 20px 16px;
    }
    
    header h1 {
        font-size: 1.35rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    .form-section h2 {
        font-size: 1rem;
        gap: 8px;
    }
    
    .form-section h2 i {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    label {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .kvkk-container {
        max-height: 120px;
        padding: 12px;
    }
    
    .checkbox-container label {
        font-size: 0.85rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
