/*
 * PK — Talep formları (Satmak / Almak / Kiralamak istiyorum)  •  Eylül 2026
 *
 * YALNIZCA .pk-rf sarmalayıcısının içini etkiler. Site genelindeki style.css'e
 * dokunulmamıştır; bu dosya sadece üç form sayfasında yüklenir.
 *
 * Eski hâlindeki sorunlar:
 *  - Bootstrap 4 CDN'i temanın üstüne biniyor, ızgara düzensiz kalıyordu
 *    (col-lg-2 / col-lg-auto karışık, başlıklar iki satıra bölünüyordu).
 *  - Seçenekler pasif giriş kutusu gibi görünüyor, seçili hâli belli olmuyordu.
 *  - Açılır kutuların ok ikonu 404'tü (CSS yanlış tema klasörünü gösteriyordu).
 *  - Mobilde alanlar taşıyordu.
 */

.pk-rf {
    --pk-navy: #283462;
    --pk-navy-soft: #3d4b80;
    --pk-accent: #078BC8;
    --pk-accent-soft: #e8f4fb;
    --pk-line: #dfe3ec;
    --pk-bg: #f6f8fc;
    --pk-text: #3c4257;
    --pk-muted: #767f95;

    padding: 48px 0 96px;
    background: var(--pk-bg);
}

/* ---------- başlık ---------- */

.pk-rf__hero { text-align: center; max-width: 720px; margin: 0 auto 36px; padding: 0 16px; }

.pk-rf__hero h1 {
    font-size: 38px; line-height: 1.2; font-weight: 700;
    color: var(--pk-navy); margin: 0 0 12px;
}

.pk-rf__hero p { font-size: 16px; line-height: 1.6; color: var(--pk-muted); margin: 0; }

/* ---------- form kartı ---------- */

.pk-rf__card {
    background: #fff; border: 1px solid var(--pk-line); border-radius: 16px;
    box-shadow: 0 2px 4px rgba(40, 52, 98, .04), 0 12px 32px rgba(40, 52, 98, .06);
    padding: 8px 32px 32px; max-width: 980px; margin: 0 auto;
}

/* ---------- adım ---------- */

.pk-rf__step { display: flex; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--pk-line); }
.pk-rf__step:last-of-type { border-bottom: 0; }

.pk-rf__no {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--pk-navy); color: #fff;
    font-size: 15px; font-weight: 700; line-height: 34px; text-align: center;
    margin-top: 2px;
}

.pk-rf__body { flex: 1 1 auto; min-width: 0; }

.pk-rf__title {
    font-size: 17px; font-weight: 700; line-height: 1.35;
    color: var(--pk-navy); margin: 4px 0 4px;
}

.pk-rf__hint { font-size: 13px; color: var(--pk-muted); margin: 0 0 14px; }
.pk-rf__title + .pk-rf__chips,
.pk-rf__title + .pk-rf__grid { margin-top: 14px; }

/* ---------- seçim çipleri ---------- */

.pk-rf__chips { display: flex; flex-wrap: wrap; gap: 10px; }

.pk-rf__chip { position: relative; margin: 0; }

/* input görsel olarak gizli ama klavyeyle erişilebilir kalır */
.pk-rf__chip input {
    position: absolute; opacity: 0; width: 1px; height: 1px;
    margin: 0; pointer-events: none;
}

.pk-rf__chip label {
    display: block; margin: 0; cursor: pointer;
    padding: 11px 18px; border: 1.5px solid var(--pk-line); border-radius: 999px;
    background: #fff; color: var(--pk-text);
    font-size: 14px; font-weight: 500; line-height: 1.3;
    transition: border-color .15s, background-color .15s, color .15s;
    user-select: none;
}

.pk-rf__chip label:hover { border-color: var(--pk-accent); color: var(--pk-navy); }

.pk-rf__chip input:checked + label {
    background: var(--pk-navy); border-color: var(--pk-navy); color: #fff;
}

/* klavye ile gezinirken seçili çip görünür olsun */
.pk-rf__chip input:focus-visible + label {
    outline: 2px solid var(--pk-accent); outline-offset: 2px;
}

/* ---------- alan ızgarası ---------- */

.pk-rf__grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.pk-rf__grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.pk-rf__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.pk-rf__label {
    font-size: 12px; font-weight: 600; letter-spacing: .02em;
    text-transform: uppercase; color: var(--pk-muted);
}

.pk-rf__input,
.pk-rf__select {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1.5px solid var(--pk-line); border-radius: 10px;
    background: #fff; color: var(--pk-text);
    font-size: 15px; line-height: 44px;
    transition: border-color .15s, box-shadow .15s;
}

.pk-rf__input::placeholder { color: #a5adc0; }

.pk-rf__input:focus,
.pk-rf__select:focus {
    outline: none; border-color: var(--pk-accent);
    box-shadow: 0 0 0 3px var(--pk-accent-soft);
}

/* açılır kutu oku — CSS'e gömülü, dış dosya yok (eski ikon 404 veriyordu) */
.pk-rf__select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23283462' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* ---------- il/ilçe/mahalle (PHP tarafından üretilen bootstrap kolonları) ---------- */

.pk-rf__places { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* gizli ülke kutusu ızgarada yer kaplamasın */
.pk-rf__places > [style*="display: none"],
.pk-rf__places > [style*="display:none"] { display: none !important; }

/* PHP'nin bastığı col-* sınıflarını nötrle; ızgara genişliği yönetsin */
.pk-rf__places > div { width: auto; max-width: none; flex: none; padding: 0; min-width: 0; }
.pk-rf__places .form-group { margin: 0; display: flex; flex-direction: column; gap: 6px; }

.pk-rf__places .form-label {
    font-size: 12px; font-weight: 600 !important; letter-spacing: .02em;
    text-transform: uppercase; color: var(--pk-muted); margin: 0;
}

.pk-rf__places select {
    width: 100%; height: 46px; padding: 0 40px 0 14px;
    border: 1.5px solid var(--pk-line); border-radius: 10px;
    background-color: #fff; color: var(--pk-text); font-size: 15px;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23283462' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
}

.pk-rf__places select:focus {
    outline: none; border-color: var(--pk-accent);
    box-shadow: 0 0 0 3px var(--pk-accent-soft);
}

/* ---------- gönder ---------- */

.pk-rf__footer {
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
    padding-top: 26px; border-top: 1px solid var(--pk-line); margin-top: 8px;
}

.pk-rf__submit {
    /* tema style.css'indeki genel .btn/button kuralları taşırmasın diye açıkça sabitlendi */
    flex: 0 0 auto; width: auto; min-width: 200px; max-width: 100%;
    appearance: none; border: 0; cursor: pointer;
    background: var(--pk-navy); color: #fff;
    padding: 14px 40px; border-radius: 10px;
    font-size: 15px; font-weight: 600; letter-spacing: .01em;
    transition: background-color .15s, transform .05s;
}

.pk-rf__submit:hover { background: var(--pk-navy-soft); }
.pk-rf__submit:active { transform: translateY(1px); }
.pk-rf__submit:focus-visible { outline: 3px solid var(--pk-accent); outline-offset: 2px; }

.pk-rf__note { font-size: 12.5px; color: var(--pk-muted); margin: 0; flex: 1 1 240px; }

/* google recaptcha kutusu taşmasın */
.pk-rf__footer .g-recaptcha { transform-origin: left center; }

/* ---------- geri bildirim ---------- */

.pk-rf__alert {
    border-radius: 12px; padding: 14px 18px; margin: 0 auto 24px;
    max-width: 980px; font-size: 14px; line-height: 1.5;
}
.pk-rf__alert--ok   { background: #e6f6ec; border: 1px solid #bfe5cd; color: #14682f; }
.pk-rf__alert--fail { background: #fdeceb; border: 1px solid #f3cbc8; color: #a12119; }

/* ---------- mobil ---------- */

@media (max-width: 767px) {
    .pk-rf { padding: 28px 0 64px; }
    .pk-rf__hero h1 { font-size: 27px; }
    .pk-rf__card { padding: 4px 18px 24px; border-radius: 12px; margin: 0 14px; }
    .pk-rf__step { gap: 12px; padding: 20px 0; }
    .pk-rf__no { flex-basis: 28px; width: 28px; height: 28px; line-height: 28px; font-size: 13px; }
    .pk-rf__title { font-size: 15.5px; }
    .pk-rf__chip label { padding: 10px 15px; font-size: 13.5px; }
    .pk-rf__grid, .pk-rf__grid--3, .pk-rf__places { grid-template-columns: 1fr; }
    .pk-rf__submit { width: 100%; flex: 1 1 100%; }
    .pk-rf__footer .g-recaptcha { transform: scale(.87); }
}

/* ---------- sağdan sola diller (AR / FA) ---------- */

[dir="rtl"] .pk-rf__select,
[dir="rtl"] .pk-rf__places select { padding: 0 14px 0 40px; background-position: left 15px center; }
