
@font-face {
    font-family: 'KIA';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/KiaSignatureLight.woff2") format("woff2"), url("../fonts/KiaSignatureLight.woff") format("woff");
}

@font-face {
    font-family: 'KIA';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/KiaSignatureRegular.woff2") format("woff2"), url("../fonts/KiaSignatureRegular.woff") format("woff");
}

@font-face {
    font-family: 'KIA';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/KiaSignatureBold.woff2") format("woff2"), url("../fonts/KiaSignatureBold.woff") format("woff");
}

:root {
    --kia-dark: #05141f;
    --kia-light: #e4e5e6;
    --kia-alert: #ff4141;
    --kia-success: #12b76a;
    --kia-border: #c4c6c8;
    --kia-muted: #a8a8a8;
    --kia-copyright: #6a6663;
    --radius: 12px;
    /* Katmanlı, yumuşak gölgeler: yakın ince kenar + uzak dağınık derinlik */
    --shadow-card: 0 1px 2px rgba(5, 20, 31, 0.06), 0 16px 40px rgba(5, 20, 31, 0.16);
    --shadow-soft: 0 6px 18px rgba(5, 20, 31, 0.14);
    --shadow-hover: 0 10px 26px rgba(5, 20, 31, 0.20);
    --transition: 180ms ease;
    /* Tüm tıklanabilir öğelerde tek tip klavye odak halkası */
    --ring: 0 0 0 3px rgba(5, 20, 31, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: 'KIA', Arial, sans-serif;
    font-weight: 300;
    color: var(--kia-dark);
    background: #fff;
    line-height: 1.55;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: #fff;
    color: var(--kia-dark);
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

.icon-sprite {
    display: none;
}

.icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    vertical-align: middle;
}

.icon--sm {
    width: 16px;
    height: 16px;
}

.icon--lg {
    width: 40px;
    height: 40px;
}

.icon--xl {
    width: 64px;
    height: 64px;
}

.muted {
    color: var(--kia-muted);
}

/* ---------- Üst bölüm ve hero ---------- */

.site-header {
    background: var(--kia-dark);
    padding: 22px 50px;
    box-shadow: 0 2px 14px rgba(5, 20, 31, 0.22);
}

.brand img {
    display: block;
    width: 150px;
    height: auto;
}

.hero {
    position: relative;
    background: var(--kia-dark);
    overflow: hidden;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 580px;
    object-fit: cover;
    opacity: 0.45;
}

.hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    letter-spacing: -0.01em;
}

.hero-text {
    margin: 0;
    max-width: 470px;
    font-size: 0.95rem;
    line-height: 1.6;
}



.site-main {
    padding: 48px 0 80px;
}

.step-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.step-head--sub {
    margin-top: 48px;
}

.step-number {
    font-size: 4.4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--kia-light);
}

.step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.card {
    background: #fff;
    padding: 34px 40px;
    box-shadow: var(--shadow-card);
}

.card--tight {
    padding: 24px 26px;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--kia-light);
    font-size: 1.05rem;
}

.field {
    margin-bottom: 22px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.field-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 400;
}

.field-input {
    width: 100%;
    padding: 10px 2px;
    border: 0;
    border-bottom: 1px solid var(--kia-border);
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
    color: var(--kia-dark);
    transition: border-color var(--transition);
}

select.field-input {
    padding-right: 24px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305141f' stroke-width='1.6'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 18px;
}

.field-input::placeholder {
    color: var(--kia-muted);
}

.field-input:focus {
    outline: none;
    border-bottom-color: var(--kia-dark);
    border-bottom-width: 2px;
    padding-bottom: 9px;
}

.field-input--area {
    border: 1px solid var(--kia-border);
    padding: 12px 14px;
    resize: vertical;
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--kia-alert);
}

.field-error:empty {
    display: none;
}

.input-validation-error {
    border-bottom-color: var(--kia-alert);
}

/* ---------- Kutu (boxed) alanlar, ikonlar ve durum ---------- */

.field--box .field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--kia-muted);
}

.field-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #f4f5f6;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.field-box:focus-within {
    background: #fff;
    border-color: var(--kia-dark);
    box-shadow: 0 0 0 3px rgba(5, 20, 31, 0.12);
}

.field-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--kia-muted);
    transition: color var(--transition);
}

.field-box:focus-within .field-icon {
    color: var(--kia-dark);
}

.field--box .field-input {
    flex: 1;
    min-width: 0;
    padding: 13px 0;
    border: 0;
    background: transparent;
    font-size: 1rem;
    color: var(--kia-dark);
}

.field--box .field-input:focus {
    outline: none;
    border: 0;
    padding: 13px 0;
}

/* Liste kutunun sol kenarından açılsın diye select tüm kutuyu kaplar, ikon üstünde durur. */
.field--box .field-icon {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.field--box select.field-input,
.field--box select.field-input:focus {
    align-self: stretch;
    margin: 0 -14px 0 -44px;
    /* Fontta İ'nin noktası üst sınırı aşıyor; satır yüksekliği verilmezse select onu kırpıyor. */
    padding: calc(13px - 0.15em) 36px calc(13px - 0.15em) 44px;
    line-height: 1.5;
    border-radius: var(--radius);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305141f' stroke-width='1.6'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    text-overflow: ellipsis;
    cursor: pointer;
}

.field--box .field-input::placeholder {
    color: var(--kia-muted);
}


.field-suffix {
    flex-shrink: 0;
    color: var(--kia-muted);
    font-size: 0.9rem;
}

/* Anlık doğrulama durumu: geçerli ✓ yumuşakça belirir. */
.field-status {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity var(--transition), transform var(--transition);
}

.field--gecerli .field-status {
    opacity: 1;
    transform: scale(1);
    color: var(--kia-success);
}

.field--gecerli .field-status::before {
    content: "\2713";
}

.field--gecerli .field-box {
    border-color: rgba(18, 183, 106, 0.5);
}

.field--hatali .field-box {
    border-color: var(--kia-alert);
    background: rgba(255, 65, 65, 0.04);
    animation: alan-titre 0.3s ease;
}

@keyframes alan-titre {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Hareket tercihini kapatanlarda titreme ve geçişler devre dışı. */
@media (prefers-reduced-motion: reduce) {
    .field--hatali .field-box {
        animation: none;
    }
}

/* ---------- Uyarılar ---------- */

.alert {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border-left: 4px solid;
    font-size: 0.95rem;
}

/* Doğrulama özeti hata yokken de kap üretir; boş kırmızı şerit görünmesin. */
.alert:empty,
.alert ul:empty,
.alert.validation-summary-valid {
    display: none;
}

.alert-error {
    border-color: var(--kia-alert);
    background: rgba(255, 65, 65, 0.07);
}

.alert p {
    margin: 4px 0 0;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

/* ---------- Düğmeler ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 13px 28px;
    border: 1px solid var(--kia-dark);
    background: linear-gradient(180deg, #0b2334, var(--kia-dark));
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition);
}

.btn:hover,
.btn:focus-visible {
    background: linear-gradient(180deg, #15304a, #0a1f30);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn:focus-visible {
    outline: 2px solid var(--kia-dark);
    outline-offset: 3px;
}

.btn:disabled {
    background: var(--kia-border);
    border-color: var(--kia-border);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-ghost {
    background: transparent;
    color: var(--kia-dark);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--kia-light);
    color: var(--kia-dark);
}

.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
}

.step-actions--end {
    justify-content: flex-end;
}

.step-actions--center {
    justify-content: center;
}

.link-button {
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.notice {
    margin: 28px 0;
    text-align: center;
    font-size: 0.95rem;
}

.notice a {
    font-weight: 700;
}

/* ---------- Onay kutuları ---------- */

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    cursor: pointer;
}

.check--block {
    margin-top: 22px;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--kia-muted);
}

.check input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--kia-dark);
}

.check--onay {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--kia-dark);
}

.consent-intro + .check--onay {
    margin-top: 18px;
}

.check--onay .link-button {
    display: inline;
    font-weight: 400;
    text-align: left;
    text-underline-offset: 2px;
}

.consent-intro {
    margin: 26px 0 0;
    font-size: 0.9rem;
}

.consent-intro a {
    font-weight: 700;
}

/* ---------- Sonuç sayfası ---------- */

.error-page {
    text-align: center;
}

.success-image {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 34px;
}

.success-title,
.error-title {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.success-text,
.error-text {
    margin: 0 auto 10px;
    max-width: 620px;
}

.error-page {
    padding: 40px 0 20px;
}

/* ---------- Pencereler ---------- */

.modal {
    width: min(560px, calc(100vw - 40px));
    padding: 26px 30px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    color: var(--kia-dark);
    font-size: 0.92rem;
}

.modal::backdrop {
    background: rgba(5, 20, 31, 0.55);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modal-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.modal h3 {
    margin: 18px 0 8px;
    font-size: 1rem;
}

.modal ul {
    margin: 0;
    padding-left: 20px;
}

.modal-close {
    border: 0;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: inherit;
    cursor: pointer;
}

.modal--metin {
    width: min(680px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
}

.modal--metin:not([open]) {
    display: none;
}

.modal-body {
    overflow-y: auto;
    line-height: 1.65;
}

.modal-body p {
    margin: 0 0 12px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body a {
    font-weight: 700;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

/* ---------- Duyarlılık ---------- */


@media (max-width: 767px) {
    .site-header {
        padding: 16px 20px;
    }

    .brand img {
        width: 110px;
    }

    .site-main {
        padding: 32px 0 56px;
    }

    .step-number {
        font-size: 2.6rem;
    }

    .card {
        padding: 24px 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column-reverse;
    }

    .step-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn:hover {
        transform: none;
    }
}
