/* Evlüce Clio Talep: form sayfası. Beyaz, sade, kurumsal. */

:root {
  --ect-ink: #101828;
  --ect-text: #344054;
  --ect-muted: #667085;
  --ect-line: #e4e7ec;
  --ect-field: #d0d5dd;
  --ect-soft: #f8f9fb;
  --ect-navy: #1f3a7a;
  --ect-navy-dark: #162c5e;
  --ect-navy-soft: #eef2fa;
  --ect-accent: #f07c3e;
  --ect-error: #b42318;
  --ect-error-soft: #fef3f2;
  --ect-ok: #067647;
  --ect-radius: 10px;
  --ect-font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Sayfa ---------- */

body.ect-page {
  margin: 0;
  background: #ffffff;
  color: var(--ect-text);
  font-family: var(--ect-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ect-page *, .ect-page *::before, .ect-page *::after { box-sizing: border-box; }
.ect-page a { color: var(--ect-navy); }
.ect-page img { max-width: 100%; height: auto; }

.ect-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.ect-top { border-bottom: 1px solid var(--ect-line); background: #fff; }
.ect-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.ect-top__brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ect-ink); }
.ect-top__brand img { display: block; width: 88px; height: auto; }
.ect-top__name { padding-left: 14px; border-left: 1px solid var(--ect-line); font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--ect-ink); }
.ect-top__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ect-ink) !important; white-space: nowrap; }
.ect-top__phone svg { width: 18px; height: 18px; color: var(--ect-navy); }
.ect-top__phone:hover span { text-decoration: underline; text-underline-offset: 3px; }

.ect-main { padding: 56px 0 80px; }

.ect-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  grid-template-areas: "intro card" "more card";
  grid-template-rows: auto 1fr;
  column-gap: 72px;
  align-items: start;
}

.ect-intro { grid-area: intro; }
.ect-card { grid-area: card; }
.ect-more { grid-area: more; }

.ect-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 12px;
  border: 1px solid var(--ect-line); border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ect-navy);
}
.ect-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ect-accent); }

.ect-title {
  margin: 0 0 20px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.022em;
  color: var(--ect-ink);
  text-wrap: balance;
}

.ect-lead { max-width: 540px; font-size: 17px; color: var(--ect-text); }
.ect-lead p { margin: 0 0 14px; }

.ect-more { max-width: 540px; margin-top: 36px; }
.ect-more__title { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ect-muted); }

.ect-steps { list-style: none; margin: 0 0 36px; padding: 0; counter-reset: ect-step; }
.ect-steps li {
  position: relative;
  padding: 0 0 22px 52px;
  counter-increment: ect-step;
}
.ect-steps li::before {
  content: counter(ect-step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ect-navy-soft); color: var(--ect-navy);
  font-size: 14px; font-weight: 700;
}
.ect-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 6px; width: 1px; background: var(--ect-line);
}
.ect-steps strong { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 650; color: var(--ect-ink); }
.ect-steps span { display: block; font-size: 15px; color: var(--ect-muted); }

.ect-contact { padding: 22px 24px; border: 1px solid var(--ect-line); border-radius: 14px; background: var(--ect-soft); }
.ect-contact__label { margin: 0; font-size: 13px; color: var(--ect-muted); }
.ect-contact__name { margin: 2px 0 12px; font-size: 17px; font-weight: 650; color: var(--ect-ink); }
.ect-contact__list { list-style: none; margin: 0; padding: 0; }
.ect-contact__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ect-line); font-size: 15px; }
.ect-contact__list span { color: var(--ect-muted); }
.ect-contact__list a { font-weight: 600; text-decoration: none; }
.ect-contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Form kartı ---------- */

.ect-card {
  position: sticky; top: 24px;
  padding: 32px 36px 36px;
  border: 1px solid var(--ect-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 48px -24px rgba(16, 24, 40, .14);
}
.ect-card__head { padding-bottom: 22px; margin-bottom: 4px; border-bottom: 1px solid var(--ect-line); }
.ect-card__head h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--ect-ink); }
.ect-card__head p { margin: 0; font-size: 14px; color: var(--ect-muted); }

.ect-form { margin: 0; }
.ect-form[hidden], .ect-done[hidden] { display: none !important; }

.ect-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ect-alert { margin: 20px 0 0; padding: 12px 14px; border-radius: var(--ect-radius); background: var(--ect-error-soft); color: var(--ect-error); font-size: 14px; }

.ect-section { margin: 0; padding: 26px 0 4px; border: 0; min-width: 0; }
.ect-section + .ect-section { border-top: 1px solid var(--ect-line); }
/* legend kayan öğe yapılır: tarayıcı üst çizgiyi başlığın yanından geçirmez. */
.ect-section__title {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 0; margin: 0 0 18px;
  font-size: 15px; font-weight: 700; color: var(--ect-ink);
}
.ect-section__num {
  width: 24px; height: 24px; border-radius: 7px;
  display: inline-grid; place-items: center;
  background: var(--ect-navy); color: #fff;
  font-size: 12px; font-weight: 700;
}

.ect-section__title + * { clear: both; }

.ect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ect-grid__full { grid-column: 1 / -1; }

.ect-field { margin: 0 0 18px; min-width: 0; }
.ect-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ect-ink); }

.ect-input,
.ect-select select,
.ect-qty input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--ect-field);
  border-radius: var(--ect-radius);
  background: #fff;
  color: var(--ect-ink);
  font: inherit;
  font-size: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ect-input::placeholder { color: #98a2b3; }
.ect-input:hover, .ect-select select:hover, .ect-qty input:hover { border-color: #98a2b3; }
.ect-input:focus, .ect-select select:focus, .ect-qty input:focus {
  outline: none;
  border-color: var(--ect-navy);
  box-shadow: 0 0 0 4px rgba(31, 58, 122, .14);
}

.ect-select { position: relative; }
.ect-select select { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
.ect-select select:disabled { background: var(--ect-soft); color: var(--ect-muted); cursor: not-allowed; }
.ect-select::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--ect-muted); border-bottom: 2px solid var(--ect-muted);
  transform: rotate(45deg); pointer-events: none;
}

/* Adet */
.ect-qty { display: flex; align-items: center; gap: 8px; }
.ect-qty input { width: 96px; text-align: center; font-weight: 700; padding: 0 8px; -moz-appearance: textfield; }
.ect-qty input::-webkit-outer-spin-button, .ect-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ect-qty__btn {
  width: 48px; height: 48px; flex: none;
  border: 1px solid var(--ect-field); border-radius: var(--ect-radius);
  background: #fff; color: var(--ect-ink);
  font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.ect-qty__btn:hover { background: var(--ect-soft); border-color: #98a2b3; }
.ect-qty__btn:focus-visible { outline: none; border-color: var(--ect-navy); box-shadow: 0 0 0 4px rgba(31, 58, 122, .14); }
.ect-qty__unit { margin-left: 4px; color: var(--ect-muted); font-size: 15px; }

/* Satın alma zamanı */
.ect-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ect-option { position: relative; display: block; cursor: pointer; }
.ect-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ect-option__box {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--ect-field); border-radius: var(--ect-radius);
  background: #fff; color: var(--ect-ink);
  font-size: 15px; font-weight: 500;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ect-option__box::before {
  content: ""; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #98a2b3; background: #fff;
  transition: border .15s ease;
}
.ect-option:hover .ect-option__box { border-color: #98a2b3; }
.ect-option input:checked + .ect-option__box { border-color: var(--ect-navy); background: var(--ect-navy-soft); box-shadow: inset 0 0 0 1px var(--ect-navy); }
.ect-option input:checked + .ect-option__box::before { border: 5.5px solid var(--ect-navy); }
.ect-option input:focus-visible + .ect-option__box { box-shadow: 0 0 0 4px rgba(31, 58, 122, .14); border-color: var(--ect-navy); }

/* Bilgilendirme ve onaylar */
.ect-notice {
  display: flex; gap: 12px;
  margin: 8px 0 20px; padding: 14px 16px;
  border: 1px solid #d5ddef; border-radius: 12px;
  background: var(--ect-navy-soft); color: var(--ect-navy-dark);
  font-size: 14px; line-height: 1.55;
}
.ect-notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--ect-navy); }
.ect-notice p { margin: 0; }

.ect-consents { display: grid; gap: 12px; margin-bottom: 22px; }
.ect-consent { margin: 0; }
.ect-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.55; color: var(--ect-text); }
.ect-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ect-check__box {
  flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; margin-top: 1px;
  border: 1.5px solid #98a2b3; border-radius: 6px; background: #fff;
  color: #fff; transition: background .15s ease, border-color .15s ease;
}
.ect-check__box svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s ease; }
.ect-check input:checked + .ect-check__box { background: var(--ect-navy); border-color: var(--ect-navy); }
.ect-check input:checked + .ect-check__box svg { opacity: 1; }
.ect-check input:focus-visible + .ect-check__box { box-shadow: 0 0 0 4px rgba(31, 58, 122, .14); border-color: var(--ect-navy); }
.ect-check a { font-weight: 600; text-underline-offset: 2px; }

/* Gönder */
.ect-button {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; padding: 0 24px;
  border: 0; border-radius: var(--ect-radius);
  background: var(--ect-navy); color: #fff;
  font: inherit; font-size: 16px; font-weight: 650; letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
  transition: background .15s ease, box-shadow .15s ease;
}
.ect-button:hover { background: var(--ect-navy-dark); }
.ect-button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(31, 58, 122, .25); }
.ect-button__spinner {
  display: none; width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
  animation: ect-spin .7s linear infinite;
}
.ect-form.is-sending .ect-button { cursor: progress; background: var(--ect-navy-dark); }
.ect-form.is-sending .ect-button__spinner { display: block; }
@keyframes ect-spin { to { transform: rotate(360deg); } }

.ect-status { margin: 12px 0 0; font-size: 14px; color: var(--ect-error); text-align: center; }
.ect-status:empty { display: none; }

/* Hatalar */
.ect-error { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ect-error); }
.ect-field.has-error .ect-input,
.ect-field.has-error .ect-select select,
.ect-field.has-error .ect-qty input { border-color: var(--ect-error); }
.ect-field.has-error .ect-input:focus,
.ect-field.has-error .ect-select select:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.ect-field.has-error .ect-option__box { border-color: #f1a9a2; }
.ect-consent.has-error .ect-check__box { border-color: var(--ect-error); }
.has-error-shake { animation: ect-shake .32s ease; }
@keyframes ect-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Gönderildi */
.ect-done { padding: 40px 8px 12px; text-align: center; outline: none; }
.ect-done__icon { display: inline-block; width: 56px; height: 56px; margin-bottom: 14px; color: var(--ect-ok); }
.ect-done__icon svg { width: 100%; height: 100%; }
.ect-done__title { margin: 0 0 6px; font-size: 22px; line-height: 1.3; color: var(--ect-ink); }
.ect-done__no { margin: 0 0 14px; font-size: 15px; color: var(--ect-muted); }
.ect-done__no strong { color: var(--ect-ink); letter-spacing: .02em; }
.ect-done__text { max-width: 420px; margin: 0 auto 22px; color: var(--ect-text); }
.ect-done__again { font-size: 14px; font-weight: 600; }

/* ---------- Alt bilgi ---------- */

.ect-foot { border-top: 1px solid var(--ect-line); background: var(--ect-soft); font-size: 14px; color: var(--ect-muted); }
.ect-foot__inner { display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; padding-top: 32px; padding-bottom: 28px; }
.ect-foot p { margin: 0 0 4px; }
.ect-foot__company { font-weight: 700; color: var(--ect-ink); }
.ect-foot__list { list-style: none; margin: 0; padding: 0; text-align: right; }
.ect-foot__list li { margin: 0 0 4px; }
.ect-foot a { color: var(--ect-text); text-decoration: none; }
.ect-foot a:hover { color: var(--ect-navy); text-decoration: underline; text-underline-offset: 3px; }
.ect-foot__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ect-line); font-size: 13px; }

/* ---------- Dar ekranlar ---------- */

@media (max-width: 1020px) {
  .ect-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "more"; grid-template-rows: none; }
  .ect-card { position: static; margin-top: 28px; }
  .ect-lead, .ect-more { max-width: none; }
  .ect-more { margin-top: 44px; }
  .ect-main { padding: 36px 0 56px; }
}

@media (max-width: 600px) {
  .ect-wrap { padding: 0 16px; }
  .ect-top__inner { min-height: 64px; }
  .ect-top__brand img { width: 72px; }
  .ect-top__name { display: none; }
  .ect-main { padding: 28px 0 44px; }
  .ect-lead { font-size: 16px; }
  .ect-card { margin-left: -4px; margin-right: -4px; padding: 22px 18px 24px; border-radius: 14px; }
  .ect-grid, .ect-options { grid-template-columns: minmax(0, 1fr); }
  .ect-foot__inner { grid-template-columns: 1fr; }
  .ect-foot__list { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .ect-page *, .ect-page *::before, .ect-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
