/*!
 * KONUTKENT · kk-form.css · 1.2.0 · 16 Eylül 2026
 *
 * 1.2.0: fieldset/legend eklendi. Ekran kontrolunde (375/768/1440) kanal
 * secimi kutusu tarayicinin varsayilan "groove" cercevesiyle ciziliyordu
 * (1.6px groove #F0F0F0) ve legend 16px duz yaziydi — sayfanin geri kalaniyla
 * uyumsuzdu. Artik KDS cizgisi: 1px #DFE5EC, legend 13px/600 #45566D.
 *
 * 1.1.0 DUZELTMESI: 1.0.0 onay kutularini bozuyordu. KVKK onay kutusu
 * .kk-input sinifini tasiyor; genel .kk-input kurali ona appearance:none ve
 * width:100% uyguladi, kutu 26x44 bos bir dikdortgene dondu, tik kayboldu.
 * Ayrica .kk-onay yapisi yanlis varsayilmisti: input ile label KARDES,
 * ic ice degil. Iki sekil var:
 *   A) p.kk-field.kk-onay > input.kk-input + label + span.kk-hata  (KVKK)
 *   B) span.kk-onay       > input          + label                 (kanal secimi)
 * Asagidaki kurallar ikisini de gercek markup'a gore ele alir ve
 * onay kutularinin YERLI gorunumunu korur.
 *
 * NEDEN: Ölçüm (staging, 375x812, CSSOM taraması) — .kk-form, .kk-field,
 * .kk-input, .kk-btn, .kk-onay, .kk-hata, .kk-form-baslik, .kk-form-gonder,
 * .kk-form-durum siniflari icin sitede HICBIR kural yoktu. Formlar tarayici
 * varsayilanlariyla ciziliyordu: input yuksekligi 27 px, padding 1px 2px.
 * Her sayfada 2-3 form var. Iletisim yuzeyimizin tamami boyleydi.
 *
 * OLCULEN CANLI DEGERLER (bu dosya onlara uyar, yeni bir dil getirmez):
 *   birincil buton : bg #0A2445 · beyaz · 13px/750 · yukseklik 44 · radius 2px
 *   h2             : 24px / 700 / #10233E
 *   govde yazi tipi: Aptos, "Segoe UI", sans-serif  (inherit edilir)
 *   cizgi rengi    : #DFE5EC
 *
 * KAPSAM: .kk-cerez-serit (cerez seridi formu) haric tutulur — onun kendi
 * kurallari var. Kart gorunumu yalniz .kk-form--kk_core_lead icindir;
 * .kk-form--kk_callback zaten .kk-cro-card icinde, ikinci kart almaz.
 *
 * GERI ALMA: bu dosyanin <link> satirini kaldirmak yeterlidir.
 */

/* --- 1) Ana talep formu: kart --------------------------------------------- */
.kk-form--kk_core_lead:not(.kk-cerez-serit) {
    max-width: 680px;
    margin: 0;
    padding: 28px 26px 26px;
    background: #FFFFFF;
    border: 1px solid #DFE5EC;
    border-radius: 2px;
}

/* --- 2) Baslik ------------------------------------------------------------ */
.kk-form:not(.kk-cerez-serit) .kk-form-baslik {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #10233E;
    letter-spacing: -.005em;
}

/* --- 3) Alan sarmalayici (p.kk-field — p marjlari sifirlanir) ------------- */
.kk-form:not(.kk-cerez-serit) .kk-field {
    display: block;
    margin: 0 0 18px;
}

.kk-form:not(.kk-cerez-serit) .kk-field > label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #45566D;
}

.kk-form:not(.kk-cerez-serit) .kk-field > label span[aria-hidden] {
    color: #9A3B3B;
    font-weight: 700;
}

/* --- 4) Girdiler ---------------------------------------------------------- */
.kk-form:not(.kk-cerez-serit) .kk-input:not([type="checkbox"]):not([type="radio"]) {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;          /* 16px altinda iOS sayfayi yakinlastirir */
    line-height: 1.4;
    color: #10233E;
    background: #FFFFFF;
    border: 1px solid #C9D3DF;
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.kk-form:not(.kk-cerez-serit) textarea.kk-input {
    min-height: 132px;
    padding: 12px;
    line-height: 1.55;
    resize: vertical;
}

.kk-form:not(.kk-cerez-serit) select.kk-input {
    padding-right: 34px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2345566D' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.kk-form:not(.kk-cerez-serit) .kk-input:not([type="checkbox"]):not([type="radio"])::placeholder {
    color: #8A99AC;
    opacity: 1;
}

.kk-form:not(.kk-cerez-serit) .kk-input:not([type="checkbox"]):not([type="radio"]):hover {
    border-color: #A9B8C9;
}

.kk-form:not(.kk-cerez-serit) .kk-input:not([type="checkbox"]):not([type="radio"]):focus,
.kk-form:not(.kk-cerez-serit) .kk-input:not([type="checkbox"]):not([type="radio"]):focus-visible {
    outline: none;
    border-color: #0A2445;
    box-shadow: 0 0 0 3px rgba(10, 36, 69, .13);
}

.kk-form:not(.kk-cerez-serit) .kk-input:not([type="checkbox"]):not([type="radio"])[aria-invalid="true"] {
    border-color: #9A3B3B;
}

.kk-form:not(.kk-cerez-serit) .kk-input:not([type="checkbox"]):not([type="radio"])[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(154, 59, 59, .15);
}

/* --- 5) Onay kutusu — GERCEK markup: input ile label KARDES --------------
 *   A) p.kk-field.kk-onay > input.kk-input.kk-hedef-44 + label + span.kk-hata
 *   B) span.kk-onay       > input.kk-hedef-44          + label
 * Kutunun yerli (native) gorunumu korunur; dokunma hedegi label ile saglanir.
 * ------------------------------------------------------------------------- */
.kk-form:not(.kk-cerez-serit) p.kk-onay {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 10px;
    margin: 0 0 16px;
}

.kk-form:not(.kk-cerez-serit) span.kk-onay {
    display: inline-flex;
    align-items: flex-start;
    gap: 0 10px;
    margin: 0 16px 0 0;
    vertical-align: top;
}

.kk-form:not(.kk-cerez-serit) .kk-onay > label {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #45566D;
    cursor: pointer;
}

/* YERLI gorunum geri verilir — 1.0.0 burada appearance:none birakiyordu */
.kk-form:not(.kk-cerez-serit) .kk-onay input[type="checkbox"],
.kk-form:not(.kk-cerez-serit) .kk-onay input[type="radio"] {
    -webkit-appearance: auto;
    appearance: auto;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    min-height: 0;
    margin: 11px 0 0;       /* (44 - 22) / 2 — label satiriyla hizalanir */
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    accent-color: #0A2445;
    cursor: pointer;
}

.kk-form:not(.kk-cerez-serit) .kk-onay input[disabled] {
    cursor: default;
    opacity: .6;
}

.kk-form:not(.kk-cerez-serit) .kk-onay input[disabled] + label {
    color: #7B8A9C;
    cursor: default;
}

/* hata metni kendi satirina iner */
.kk-form:not(.kk-cerez-serit) .kk-onay > .kk-hata {
    flex: 1 0 100%;
    margin: 0 0 0 32px;
}

.kk-form:not(.kk-cerez-serit) .kk-onay a {
    color: #0A2445;
    text-underline-offset: 2px;
}

/* --- 5b) Alan grubu (fieldset/legend) ------------------------------------
 * OLCUM: tarayici varsayilani 1.6px groove #F0F0F0 + 16px duz legend.
 * ------------------------------------------------------------------------- */
.kk-form:not(.kk-cerez-serit) fieldset.kk-field {
    min-width: 0;              /* flex/grid icinde tasmayi onler */
    margin: 0 0 18px;
    padding: 12px 16px 4px;
    border: 1px solid #DFE5EC;
    border-radius: 2px;
}

.kk-form:not(.kk-cerez-serit) fieldset.kk-field > legend {
    margin: 0 0 0 -4px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #45566D;
}

.kk-form:not(.kk-cerez-serit) fieldset.kk-field .kk-onay:last-of-type {
    margin-bottom: 0;
}

/* --- 6) Hata ve durum ----------------------------------------------------- */
.kk-form:not(.kk-cerez-serit) .kk-hata:empty,
.kk-form:not(.kk-cerez-serit) .kk-form-durum:empty {
    display: none;
}

.kk-form:not(.kk-cerez-serit) .kk-hata {
    display: block;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #9A3B3B;
}

.kk-form:not(.kk-cerez-serit) .kk-form-durum {
    margin: 0 0 18px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #10233E;
    background: #F2F6FA;
    border: 1px solid #DFE5EC;
    border-radius: 2px;
}

/* --- 7) Gonder ------------------------------------------------------------ */
.kk-form:not(.kk-cerez-serit) .kk-form-gonder {
    margin: 22px 0 0;
}

.kk-form:not(.kk-cerez-serit) .kk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
    color: #FFFFFF;
    background: #0A2445;
    border: .8px solid #0A2445;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.kk-form:not(.kk-cerez-serit) .kk-btn:hover {
    background: #16355C;
    border-color: #16355C;
}

.kk-form:not(.kk-cerez-serit) .kk-btn:focus-visible {
    outline: 2px solid #0A2445;
    outline-offset: 2px;
}

.kk-form:not(.kk-cerez-serit) .kk-btn[disabled] {
    opacity: .55;
    cursor: default;
}

/* --- 8) Tuzak alan — her kosulda gizli ------------------------------------ */
.kk-form .kk-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* --- 9) Dar ekran --------------------------------------------------------- */
@media (max-width: 560px) {
    .kk-form--kk_core_lead:not(.kk-cerez-serit) {
        padding: 22px 18px 20px;
    }
    .kk-form:not(.kk-cerez-serit) .kk-btn {
        width: 100%;
    }
}

/* --- 10) Hareket azaltma -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .kk-form:not(.kk-cerez-serit) .kk-input,
    .kk-form:not(.kk-cerez-serit) .kk-btn {
        transition: none;
    }
}
