/* =========================================================
   Teklif sayfası — modern form UX
   ========================================================= */

/* Yatay kaydırma / sağa boşluk engeli */
html:has(.page-teklif),
.page-teklif {
  overflow-x: hidden;
  max-width: 100%;
}

.page-teklif {
  background: #f4f7fb;
}

.page-teklif .header {
  background: rgba(255, 255, 255, 0.98);
}

.page-teklif main,
.page-teklif .container,
.page-teklif .teklif-hero,
.page-teklif .teklif-hero__inner,
.page-teklif .teklif-panel,
.page-teklif .teklif-form,
.page-teklif .teklif-trust,
.page-teklif .form-row,
.page-teklif .service-grid {
  max-width: 100%;
  min-width: 0;
}

.page-teklif .header__row {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hero + form layout */
.teklif-hero {
  padding: 2.25rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(11, 108, 184, 0.12), transparent 55%),
    linear-gradient(180deg, #e8f2fb 0%, #f4f7fb 55%, #f4f7fb 100%);
}

.teklif-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.teklif-hero__copy,
.teklif-panel {
  min-width: 0;
  max-width: 100%;
}

.teklif-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(11, 108, 184, 0.15);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.05);
}

.teklif-hero__copy h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 14ch;
  color: var(--navy);
}

.teklif-hero__lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 32em;
}

.teklif-hero__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.teklif-hero__perks li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.perk-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Form panel */
.teklif-panel {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(15, 39, 68, 0.08);
  box-shadow:
    0 4px 6px rgba(15, 39, 68, 0.02),
    0 24px 48px rgba(15, 39, 68, 0.08);
  overflow: hidden;
}

.teklif-steps-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border-bottom: 1px solid var(--line);
}

.step-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}

.step-pill span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: #e8eef5;
  color: var(--muted);
}

.step-pill.is-active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.step-pill.is-active span {
  background: var(--blue);
  color: #fff;
}

.teklif-form {
  padding: 0.5rem 1.35rem 1.5rem;
}

.form-block {
  padding: 1.35rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.form-block--last {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.form-block__title {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.form-block__num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue);
  padding-top: 0.2rem;
}

.form-block__title h2 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.form-block__title p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.form-row--2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.form-row--3 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.form-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
  min-width: 0;
  max-width: 100%;
}

.form-field label,
.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.form-field label em,
.form-label em {
  color: #e11d48;
  font-style: normal;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6a7c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #cbd5e1;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 108, 184, 0.12);
  background: #fff;
}

.form-field input[readonly] {
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 600;
}

.form-field select:disabled {
  background-color: #f1f5f9;
  color: var(--muted);
  cursor: not-allowed;
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.service-card {
  position: relative;
  cursor: pointer;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

/* Ekran dışı absolute input yatay taşmaya yol açmasın */
.service-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 92px;
  padding: 0.75rem 0.4rem;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fafbfc;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.service-card__icon {
  color: var(--blue);
  display: grid;
  place-items: center;
}

.service-card__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.service-card:hover .service-card__body {
  border-color: rgba(11, 108, 184, 0.35);
  background: #fff;
}

.service-card input:focus-visible + .service-card__body {
  box-shadow: 0 0 0 4px rgba(11, 108, 184, 0.15);
}

.service-card input:checked + .service-card__body {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 8px 20px rgba(11, 108, 184, 0.12);
  transform: translateY(-1px);
}

.service-card input:checked + .service-card__body .service-card__icon {
  color: var(--blue-dark);
}

/* Address */
.address-box {
  padding: 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 0.85rem;
}

.address-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8eef5;
}

.address-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

.address-status.is-ok {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.address-status.is-ok .address-status__dot {
  background: #10b981;
}

.address-status.is-error {
  color: #b45309;
  border-color: #fcd34d;
  background: #fffbeb;
}

.address-status.is-error .address-status__dot {
  background: #f59e0b;
}

.address-status.is-loading .address-status__dot {
  background: var(--blue);
  animation: pulse-dot 1s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Actions */
.form-actions {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.75rem;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0c8aeb, #085491);
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(8, 84, 145, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(8, 84, 145, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit__arrow {
  font-size: 1.15rem;
  transition: transform 0.15s ease;
}

.btn-submit:hover .btn-submit__arrow {
  transform: translateX(3px);
}

.form-note {
  margin: 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-note a {
  font-weight: 700;
}

.form-error,
.form-success {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.form-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

/* Trust strip */
.teklif-trust {
  padding: 0 0 3rem;
}

.teklif-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.trust-card {
  min-width: 0;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 6px 18px rgba(15, 39, 68, 0.04);
  box-sizing: border-box;
}

.trust-card strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.trust-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.trust-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .teklif-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .teklif-hero__copy h1 {
    max-width: none;
  }

  .teklif-hero__perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teklif-trust__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 640px) {
  .teklif-hero {
    padding: 1.15rem 0 1.5rem;
  }

  .teklif-hero__copy {
    display: none; /* form odaklı — kalabalık sol metin mobilde gizli */
  }

  .teklif-form {
    padding: 0.15rem 0.9rem 1.1rem;
  }

  .form-row--2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem;
  }

  .form-row--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .service-card__body {
    min-height: 78px;
    padding: 0.55rem 0.25rem;
  }

  .service-card__name {
    font-size: 0.7rem;
  }

  .teklif-steps-bar {
    display: none;
  }

  .form-block__title p {
    display: none;
  }

  .form-block {
    padding: 1rem 0 1.1rem;
  }

  .teklif-trust {
    padding-bottom: 1.5rem;
  }

  .teklif-trust__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .trust-card {
    padding: 0.75rem 0.55rem;
  }

  .page-teklif .header__logo img {
    max-width: 120px;
    height: auto;
  }

  .trust-card h3 {
    font-size: 0.82rem;
  }

  .trust-card p {
    display: none;
  }

  .trust-card strong {
    margin-bottom: 0.25rem;
  }
}
