/* ---------------------------------------------------------------------------
   Essirius Form - genel basvuru formu stilleri
   Renkler :root uzerinde token olarak tanimli; kurumsal renginizi
   --accent degerini degistirerek uygulayabilirsiniz.
--------------------------------------------------------------------------- */

:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-alt: #f0f2f5;
    --border: #d9dde3;
    --text: #1b1f24;
    --text-muted: #5b6672;
    --accent: #1f6feb;
    --accent-contrast: #ffffff;
    --accent-soft: #e8f0fe;
    --danger: #b3261e;
    --danger-soft: #fdeceb;
    --success: #1b7f4b;
    --success-soft: #e6f4ec;
    --warning: #8a6100;
    --warning-soft: #fdf3dc;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .05);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #14171b;
        --surface: #1c2026;
        --surface-alt: #23282f;
        --border: #333a43;
        --text: #e8eaed;
        --text-muted: #a1aab5;
        --accent: #6ea8ff;
        --accent-contrast: #0b0f14;
        --accent-soft: #1d2a3d;
        --danger: #ff8a80;
        --danger-soft: #3a2220;
        --success: #7ddb9f;
        --success-soft: #16301f;
        --warning: #f0c669;
        --warning-soft: #332a13;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    }
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 44rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}

/* --- baslik ------------------------------------------------------------- */

.form-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    margin-bottom: 1rem;
}

.brand {
    margin: 0 0 .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.form-header h1 { margin: 0; font-size: 1.6rem; line-height: 1.3; }

.form-description { margin: .75rem 0 0; color: var(--text-muted); }

.deadline {
    margin: 1rem 0 0;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text-muted);
}

/* --- alanlar ------------------------------------------------------------ */

form { display: block; }

.field {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: .75rem;
}

.field-error { border-color: var(--danger); }

.field-label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
}

.req { color: var(--danger); }

.field-help, .field-hint {
    margin: 0 0 .65rem;
    font-size: .875rem;
    color: var(--text-muted);
}

.field-hint { margin: .5rem 0 0; }

.field-message {
    margin: .6rem 0 0;
    font-size: .875rem;
    color: var(--danger);
    font-weight: 500;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], input[type="time"], input[type="password"],
textarea, select {
    width: 100%;
    padding: .6rem .75rem;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .15s, box-shadow .15s;
}

textarea { resize: vertical; min-height: 6rem; }

input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type="file"] {
    width: 100%;
    padding: .6rem;
    font: inherit;
    color: var(--text-muted);
    background: var(--surface-alt);
    border: 1px dashed var(--border);
    border-radius: 8px;
}

/* --- secenekler --------------------------------------------------------- */

.choices { display: flex; flex-direction: column; gap: .15rem; }

.choice, .consent {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .45rem .5rem;
    border-radius: 8px;
    cursor: pointer;
}

.choice:hover, .consent:hover { background: var(--surface-alt); }

.choice input, .consent input {
    margin: .25rem 0 0;
    accent-color: var(--accent);
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
}

.consent { align-items: flex-start; font-weight: 500; }

/* "Diger:" secenegi - kutucuk, etiket ve serbest metin ayni satirda */
.choice-other { align-items: center; gap: .5rem; flex-wrap: wrap; }
.choice-other > span { flex: none; }

.other-input {
    flex: 1;
    min-width: 8rem;
    width: auto;
    padding: .3rem .5rem;
    font: inherit;
    color: var(--text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}

.other-input:focus-visible {
    outline: none;
    border-bottom-color: var(--accent);
    box-shadow: 0 1px 0 0 var(--accent);
}

/* --- olcek -------------------------------------------------------------- */

.scale {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}

.scale-label { font-size: .85rem; color: var(--text-muted); }

.scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    cursor: pointer;
    min-width: 2.5rem;
}

.scale-item input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }

/* --- bolum basligi ------------------------------------------------------ */

.form-section {
    margin: 1.75rem 0 .75rem;
    padding: 1rem 1.25rem;
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}

.form-section h2 { margin: 0; font-size: 1.15rem; }
.section-help { margin: .4rem 0 0; color: var(--text-muted); font-size: .9rem; }

/* --- gonderim ----------------------------------------------------------- */

.form-actions {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.btn-primary {
    font: inherit;
    font-weight: 600;
    color: var(--accent-contrast);
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: .7rem 1.6rem;
    cursor: pointer;
    transition: filter .15s;
}

.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { filter: brightness(.94); }

.privacy-note {
    margin: .9rem 0 0;
    font-size: .8rem;
    color: var(--text-muted);
}

/* --- bildirimler -------------------------------------------------------- */

.notice {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.notice h1, .notice h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.notice p { margin: 0; }

.notice-error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.notice-success { border-left: 4px solid var(--success); background: var(--success-soft); }
.notice-closed { border-left: 4px solid var(--warning); background: var(--warning-soft); }

.reference {
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 1.05rem;
}

.reference strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.muted { color: var(--text-muted); font-size: .85rem; }

.back-link { text-align: center; }
.back-link a, a { color: var(--accent); }

.page-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
}

/* --- bal kupu ve erisilebilirlik ---------------------------------------- */

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .page { padding: 1.5rem 1rem 3rem; }
    .form-header, .field, .form-actions { padding: 1rem; }
    .btn-primary { width: 100%; }
}
