/* ============================================================
   ESTORIX — Paket bulucu aracı (.epb) + Detaylı bilgi formu (.eplf)
   index.php ve kampanyalar.php ortak kullanır.
   ============================================================ */

.epb {
    padding: 64px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.epb__wrap {
    max-width: 860px;
    margin: 32px auto 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
    padding: 28px 26px 30px;
}

/* ── Adım göstergesi ── */
.epb__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    flex-wrap: wrap;
}
.epb__step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: #f1f5f9;
    transition: background .18s, color .18s;
}
.epb__step span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}
.epb__step.is-active { background: #dbeafe; color: #1d4ed8; }
.epb__step.is-active span { background: #2563eb; color: #fff; }
.epb__step.is-done { background: #dcfce7; color: #15803d; }
.epb__step.is-done span { background: #16a34a; color: #fff; }

/* ── Paneller ── */
.epb__panel { display: none; }
.epb__panel.is-active { display: block; animation: epbIn .26s ease both; }

@keyframes epbIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .epb__panel.is-active { animation: none; }
}

.epb__q {
    font-size: clamp(19px, 2.4vw, 23px);
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0 0 6px;
}
.epb__hint {
    text-align: center;
    color: #64748b;
    font-size: 13.5px;
    margin: 0 0 18px;
}
.epb__q + .epb__opts { margin-top: 20px; }

/* ── Seçenekler ── */
.epb__opts { display: grid; gap: 12px; }
.epb__opts--tile { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.epb__opts--row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.epb__opts--check { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.epb__opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .16s, background .16s, transform .16s;
}
.epb__opt i { font-size: 22px; color: #2563eb; }
.epb__opt:hover { border-color: #2563eb; background: #f8fafc; transform: translateY(-2px); }
.epb__opt.is-on { border-color: #2563eb; background: #eff6ff; }

.epb__opt--pill {
    flex-direction: row;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 14px;
}

/* Çoklu seçim kutuları */
.epb__check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .16s, background .16s;
}
.epb__check:hover { border-color: #93c5fd; background: #f8fafc; }
.epb__check input { position: absolute; opacity: 0; width: 0; height: 0; }
.epb__check-box {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 1.5px solid #cbd5e1;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: #fff;
    margin-top: 1px;
    transition: background .16s, border-color .16s;
}
.epb__check-box i { font-size: 11px; color: #fff; opacity: 0; transition: opacity .16s; }
.epb__check input:checked ~ .epb__check-box { background: #2563eb; border-color: #2563eb; }
.epb__check input:checked ~ .epb__check-box i { opacity: 1; }
.epb__check input:focus-visible ~ .epb__check-box { outline: 2px solid #2563eb; outline-offset: 2px; }
.epb__check:has(input:checked) { border-color: #2563eb; background: #eff6ff; }

.epb__check-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.epb__check-ad { font-size: 14.5px; font-weight: 650; color: #0f172a; }
.epb__check-ad i { color: #2563eb; margin-right: 5px; font-size: 13px; }
.epb__check-ac { font-size: 12.5px; color: #64748b; line-height: 1.45; }

/* ── Gezinme ── */
.epb__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.epb__back {
    background: none;
    border: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 4px;
    margin-top: 18px;
}
.epb__actions .epb__back { margin-top: 0; }
.epb__back:hover { color: #2563eb; }

.epb__go {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 26px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s, transform .16s;
}
.epb__go:hover { background: #1d4ed8; transform: translateY(-1px); }

/* ── Sonuç ── */
.epb__result { text-align: center; }
.epb__result-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .01em;
}
.epb__result-name {
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0 4px;
    letter-spacing: -.02em;
}
.epb__result-price {
    font-size: 15px;
    color: #475569;
}
.epb__result-price strong { color: #0f172a; font-size: 20px; font-weight: 800; }
.epb__result-price small { display: block; color: #94a3b8; font-size: 12px; margin-top: 3px; }

.epb__result-ai {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 14px auto 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 13px;
    font-weight: 650;
}

.epb__result-why {
    text-align: left;
    max-width: 520px;
    margin: 22px auto 0;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.epb__result-why-t {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.epb__result-why ul { margin: 0; padding-left: 18px; }
.epb__result-why li {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 5px;
}

.epb__result-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.epb__cta-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border: none;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 163, 74, .25);
    transition: background .16s, transform .16s;
}
.epb__cta-main:hover { background: #15803d; transform: translateY(-1px); }
.epb__cta-alt {
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.epb__cta-alt:hover { border-color: #cbd5e1; color: #0f172a; }

.epb__result-note {
    max-width: 520px;
    margin: 18px auto 0;
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ── Araç: mobil ── */
@media (max-width: 720px) {
    .epb { padding: 44px 0; }
    .epb__wrap { padding: 22px 16px 24px; border-radius: 18px; margin-top: 24px; }
    .epb__steps { gap: 6px; }
    .epb__step { font-size: 12px; padding: 5px 11px 5px 5px; }
    .epb__opts--tile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .epb__opts--check { grid-template-columns: 1fr; }
    .epb__opt { padding: 16px 10px; font-size: 13.5px; }
    .epb__opt i { font-size: 19px; }
    .epb__actions { flex-direction: column-reverse; align-items: stretch; }
    .epb__go { justify-content: center; width: 100%; }
    .epb__cta-main, .epb__cta-alt { width: 100%; justify-content: center; }
}

/* ============================================================
   Detaylı bilgi formu (modal)
   ============================================================ */

.eplf {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
}
.eplf[hidden] { display: none; }

.eplf__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(3px);
    border: none;
}

.eplf__panel {
    position: relative;
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .32);
    padding: 30px 30px 26px;
    -webkit-overflow-scrolling: touch;
}

.eplf__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 15px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .16s;
}
.eplf__close:hover { background: #e2e8f0; }

.eplf__head { margin-bottom: 22px; padding-right: 34px; }
.eplf__head h2 {
    font-size: clamp(21px, 3vw, 26px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 7px;
    letter-spacing: -.02em;
}
.eplf__head p { margin: 0; font-size: 14px; color: #64748b; line-height: 1.6; }


/* ── Alanlar ── */
.eplf__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.eplf__f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eplf__f--full { grid-column: 1 / -1; }

.eplf__f label {
    font-size: 13px;
    font-weight: 650;
    color: #334155;
}
.eplf__f label span { color: #dc2626; }

.eplf__f input,
.eplf__f select,
.eplf__f textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color .16s, box-shadow .16s;
}
.eplf__f textarea { resize: vertical; min-height: 76px; }
.eplf__f input:focus,
.eplf__f select:focus,
.eplf__f textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.eplf__f input.is-err,
.eplf__f select.is-err {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .10);
}
.eplf__hint { font-size: 12px; color: #94a3b8; }

/* ── KVKK ── */
.eplf__kvkk {
    margin-top: 18px;
    padding: 15px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.eplf__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.8px;
    color: #475569;
    line-height: 1.55;
    cursor: pointer;
}
.eplf__consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: #2563eb;
    cursor: pointer;
}
.eplf__consent a { color: #2563eb; font-weight: 650; text-decoration: underline; }
.eplf__consent.is-err { color: #dc2626; }

/* ── Mesaj / gönder ── */
.eplf__msg {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.eplf__submit {
    width: 100%;
    margin-top: 16px;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s;
}
.eplf__submit:hover:not(:disabled) { background: #1d4ed8; }
.eplf__submit:disabled { opacity: .65; cursor: not-allowed; }

.eplf__foot {
    margin: 11px 0 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

/* ── Başarı ── */
.eplf__done { text-align: center; padding: 22px 6px 10px; }
.eplf__done-ico { font-size: 52px; color: #16a34a; margin-bottom: 12px; }
.eplf__done h3 { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.eplf__done p { margin: 0 auto 20px; max-width: 400px; font-size: 14px; color: #64748b; line-height: 1.6; }
.eplf__done-btn {
    padding: 13px 32px;
    border: none;
    border-radius: 11px;
    background: #0f172a;
    color: #fff;
    font-size: 14.5px;
    font-weight: 650;
    cursor: pointer;
}

/* ── Form: mobil ── */
@media (max-width: 640px) {
    .eplf { padding: 0; place-items: stretch; }
    .eplf__panel {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        padding: 24px 18px 30px;
    }
    .eplf__grid { grid-template-columns: 1fr; }
    /* iOS 16px altı yazı tipinde alanı otomatik yakınlaştırır */
    .eplf__f input,
    .eplf__f select,
    .eplf__f textarea { font-size: 16px; }
}
