/* Doğru Konut — landing + form design system (Phase 3).
   Mobile-first. Brand tokens from logo (Kararlar §22); neutral tokens are
   design tokens, not business data. Brand red is NOT used for error semantics. */
:root {
    /* Brand */
    --brand-red: #E30613;
    --brand-orange: #FF931E;
    --brand-gradient: linear-gradient(90deg, #E30613 0%, #FF931E 100%);

    /* Neutral palette (accessible) */
    --ink: #15181c;
    --ink-2: #3a434d;
    --muted: #6b7680;
    --line: #e4e8ec;
    --bg: #f6f8fa;
    --surface: #ffffff;
    --surface-2: #f0f3f6;

    /* Semantic (distinct from brand red) */
    --error: #b00020;
    --error-bg: #fdecef;
    --success: #1b7f4b;
    --success-bg: #e8f6ee;
    --info-bg: #eaf2fb;

    /* Scale */
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(16,24,32,.06), 0 2px 8px rgba(16,24,32,.05);
    --shadow: 0 2px 6px rgba(16,24,32,.08), 0 12px 32px rgba(16,24,32,.07);
    --space: 16px;
    --container: 1120px;

    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* HTML `hidden` niteliği, .field { display:block } gibi kurallara ezilmesin
   (TALEP_01: unvan/site adı/zaman kutusu hep görünüyordu). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius);
    font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink);
    background: var(--surface); transition: transform .06s ease, box-shadow .2s ease;
}
.btn--primary { color: #fff; background: var(--brand-gradient); border: none; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 3px solid rgba(255,147,30,.55); outline-offset: 2px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__logo { height: 50px; width: auto; max-width: 62vw; object-fit: contain; display: block; }
@media (min-width: 720px) { .brand__logo { height: 64px; } } /* TALEP_03: logo büyütüldü */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 400px) { .header-actions .btn { padding-left: 14px; padding-right: 14px; } }
.header-phone { display: none; font-weight: 600; color: var(--ink-2); text-decoration: none; }

/* Hero */
.hero { position: relative; padding: 48px 0 32px; background:
    radial-gradient(1200px 400px at 80% -10%, rgba(255,147,30,.10), transparent 60%),
    radial-gradient(900px 360px at 0% 0%, rgba(227,6,19,.08), transparent 55%); }
.hero__title { font-size: 30px; line-height: 1.2; margin: 0 0 12px; font-weight: 700; letter-spacing: -.3px; }
.hero__title .accent { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { font-size: 17px; color: var(--ink-2); max-width: 640px; margin: 0 0 24px; }

/* Choice cards (6 flows) */
.choices { display: grid; grid-template-columns: 1fr; gap: 12px; }
.choice-card {
    display: flex; align-items: center; gap: 14px; text-align: left;
    width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; color: var(--ink);
    transition: border-color .15s ease, transform .06s ease, box-shadow .2s ease;
}
.choice-card:hover { border-color: var(--brand-orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.choice-card:focus-visible { outline: 3px solid rgba(255,147,30,.55); outline-offset: 2px; }
.choice-card__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2);
    display: grid; place-items: center; }
.choice-card__icon span { width: 20px; height: 20px; border-radius: 6px; background: var(--brand-gradient); }
.choice-card__text { font-weight: 600; font-size: 16px; }

/* Sections */
.section { padding: 44px 0; }
.section--alt { background: var(--bg); }
.section__title { font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.section__lead { color: var(--muted); margin: 0 0 24px; }

.steps-how { display: grid; grid-template-columns: 1fr; gap: 16px; }
.how-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.how-step__n { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-gradient); color: #fff;
    display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }

.trust-note { color: var(--muted); font-size: 14px; }
.placeholder-box { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted);
    background: var(--surface-2); font-size: 14px; }

/* Footer */
.site-footer { background: #111418; color: #cfd6dd; padding: 40px 0 0; margin-top: 8px; }
.site-footer a { color: #cfd6dd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 24px; padding-bottom: 28px; }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; height: 44px; width: auto; }
.footer-address { margin: 12px 0 0; font-size: 14px; color: #9aa4ad; max-width: 360px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; padding-bottom: 20px;
    color: #8a949d; font-size: 13px; }
@media (min-width: 720px) {
    .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
    .footer-links { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; padding-top: 10px; }
}
/* Sabit WhatsApp/Ara butonları footer metnini örtmesin */
@media (max-width: 719px) { .site-footer { padding-bottom: 140px; } }
/* Form ve teşekkür sayfalarında WhatsApp butonu içeriği örtmesin */
.page-has-wa main { padding-bottom: 88px; }

/* Floating WhatsApp / phone */
.sticky-cta { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.sticky-cta .btn { box-shadow: var(--shadow); border-radius: 999px; padding: 14px 18px; }
.sticky-cta { align-items: flex-end; }

/* TALEP_03: sağ alt animasyonlu WhatsApp butonu */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 41; display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; height: 58px; min-width: 58px; padding: 0 14px; border-radius: 999px; background: #25D366; color: #fff;
    text-decoration: none; font-weight: 600; box-shadow: 0 6px 18px rgba(37,211,102,.45);
    animation: wa-bounce 3.2s ease-in-out infinite; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25D366; z-index: -1;
    animation: wa-pulse 2s ease-out infinite; }
.wa-float:hover, .wa-float:focus-visible { background: #1ebe5a; color: #fff; }
.wa-float:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 3px; }
.wa-float__label { display: none; }
@media (min-width: 720px) { .wa-float { padding: 0 20px 0 16px; } .wa-float__label { display: inline; } }
.sticky-cta .wa-float { position: relative; right: auto; bottom: auto; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes wa-bounce { 0%, 80%, 100% { transform: translateY(0); } 85% { transform: translateY(-6px); } 90% { transform: translateY(0); } 95% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::before { animation: none; } }

/* TALEP_03: footer "Web sitesi" butonu */
.footer-site-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 11px 18px; border-radius: 999px;
    background: var(--brand-gradient); color: #fff !important; font-weight: 600; font-size: 15px; box-shadow: var(--shadow-sm); }
.footer-site-btn:hover { filter: brightness(1.06); }

/* TALEP_03: il listesinde öncelikli il (Aydın) */
.select optgroup { font-weight: 700; color: var(--ink-2); }
.select option.option--priority { font-weight: 700; color: var(--brand-red); }

/* ---------- Multi-step form ---------- */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 20px; }

/* Form başlık bandı: bulunulan bölüm + adım (TALEP_01 #1) */
.form-head { margin: -20px -20px 20px; padding: 18px 20px 16px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--brand-gradient); color: #fff; }
.form-head__flow { font-size: 17px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.form-head__step { font-size: 13px; opacity: .92; margin: 4px 0 12px; }
.form-head .progress { margin: 0; }
.progress { display: flex; gap: 6px; margin-bottom: 20px; }
.progress__item { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); }
.progress__item.is-done { background: var(--brand-gradient); }
.progress__item.is-active { background: var(--brand-orange); }
.form-head .progress__item { background: rgba(255,255,255,.35); }
.form-head .progress__item.is-done, .form-head .progress__item.is-active { background: #fff; }
/* Adım adları ilerleme çubuğunun altında (TALEP_02) */
.form-head .progress { margin-bottom: 18px; }
.progress__item { position: relative; }
.progress__label { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-size: 11px;
    line-height: 1.2; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress__item.is-active .progress__label { color: #fff; font-weight: 700; }
.progress__item.is-done .progress__label { color: #fff; }
@media (min-width: 720px) { .progress__label { font-size: 12px; } }

/* Pastel Geri butonu (TALEP_01 #3) */
.btn--back { background: #fff1e3; color: #8a4b12; border-color: #ffd9b3; }
.btn--back:hover { background: #ffe7cf; }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--brand-red); text-decoration: underline; cursor: pointer; }
.textarea { resize: vertical; }

/* KVKK aydınlatma penceresi */
.kvkk-dialog { max-width: 640px; width: calc(100% - 32px); border: none; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.kvkk-dialog::backdrop { background: rgba(17,20,24,.55); }
.kvkk-dialog__body { max-height: 60vh; overflow: auto; font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }

.step { display: none; }
.step.is-active { display: block; }
.step__title { font-size: 20px; margin: 0 0 4px; }
.step__hint { color: var(--muted); margin: 0 0 18px; font-size: 14px; }

.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field__label .req { color: var(--error); }
.field__hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input, .select, .textarea {
    width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius);
    font: inherit; background: #fff; color: var(--ink);
}
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
    outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(255,147,30,.2);
}
.field.has-error { background: var(--error-bg); border-left: 3px solid var(--error); border-radius: 8px; padding: 10px 12px; }
.field.has-error .field__label { color: var(--error); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); box-shadow: 0 0 0 3px rgba(176,0,32,.12); }
.field__error { color: var(--error); font-size: 13px; margin-top: 5px; display: none; }
.field.has-error .field__error { display: block; }

.row { display: grid; grid-template-columns: 1fr; gap: 12px; }
.row--2 { grid-template-columns: 1fr 1fr; }

/* Chips (multi-select subtypes/rooms/features) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border: 1px solid var(--line);
    border-radius: 999px; background: var(--surface); cursor: pointer; font: inherit; font-size: 14px; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip.is-checked { border-color: var(--brand-orange); background: rgba(255,147,30,.10); font-weight: 600; }
.chip:focus-within { outline: 3px solid rgba(255,147,30,.45); outline-offset: 2px; }

.selected-count { font-size: 13px; color: var(--muted); margin-top: 8px; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

.alert { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert--error { background: var(--error-bg); color: var(--error); }
.alert--info { background: var(--info-bg); color: var(--ink-2); }
.alert--success { background: var(--success-bg); color: var(--success); }

.error-summary { border: 1px solid var(--error); background: var(--error-bg); color: var(--error);
    border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.error-summary ul { margin: 8px 0 0; padding-left: 18px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.consent input { margin-top: 3px; }

.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-list .k { color: var(--muted); }
.summary-list .v { font-weight: 600; text-align: right; }

/* Thank you */
.thankyou { max-width: 560px; margin: 60px auto; text-align: center; padding: 0 16px; }
.thankyou__check { width: 72px; height: 72px; border-radius: 50%; background: var(--success-bg); color: var(--success);
    display: grid; place-items: center; margin: 0 auto 18px; font-size: 34px; }
.thankyou__title { font-size: 26px; margin: 0 0 8px; }
.thankyou__text { color: var(--ink-2); margin: 0 0 24px; }

/* honeypot */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consent banner */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #111418; color: #e6ebf0; box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
.consent-banner__inner { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.consent-banner p { margin: 0; font-size: 14px; }
.consent-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent-banner .btn--ghost { color: #e6ebf0; border-color: rgba(255,255,255,.3); background: transparent; }
@media (min-width: 720px) {
    .consent-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Responsive */
@media (min-width: 560px) {
    .choices { grid-template-columns: 1fr 1fr; }
    .hero__title { font-size: 38px; }
}
@media (min-width: 900px) {
    .choices { grid-template-columns: 1fr 1fr 1fr; }
    .hero { padding: 72px 0 40px; }
    .hero__title { font-size: 46px; }
    .steps-how { grid-template-columns: repeat(4, 1fr); }
    .header-phone { display: inline-flex; }
}
