/* ==========================================================================
   İLETİŞİM — solda süreç + iletişim kartları, sağda başlık şeritli form kartı
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.contact__copy { display: grid; gap: 20px; }
.contact .section-title { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); }

/* ---------- Süreç adımları ---------- */
.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
  counter-reset: none;
}
.contact-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Adımlar arasındaki ok */
.contact-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--line-2);
  border-right: 2px solid var(--line-2);
  transform: translateY(-50%) rotate(45deg);
}
.contact-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.contact-steps li:last-child > span { background: var(--red-600); }
.contact-steps div { display: grid; line-height: 1.3; min-width: 0; }
.contact-steps strong { font-size: 14.5px; }
.contact-steps small { font-size: 12.5px; color: var(--muted); }

/* ---------- İletişim kartları ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.contact-cards a {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .3s var(--ease-out);
}
.contact-cards a:hover { border-color: var(--navy-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-cards__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--navy-50);
  color: var(--navy-800);
  transition: background-color .2s, color .2s;
}
.contact-cards a:hover .contact-cards__icon { background: var(--navy-900); color: #fff; }
.contact-cards__icon--wa { background: #e3f6ea; color: #1a9c4f; }
.contact-cards a:hover .contact-cards__icon--wa { background: #1fa855; color: #fff; }
.contact-cards a > span:last-child { display: grid; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
.contact-cards small { font-size: 12.5px; font-weight: 500; color: var(--muted); }

.contact__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}
.contact__address:hover { color: var(--ink); }
.contact__address .i { margin-top: 2px; color: var(--red-600); }

/* ---------- Form kartı ---------- */
.form {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background:
    radial-gradient(60% 140% at 100% 0%, rgb(211 20 28 / .3), transparent 60%),
    var(--navy-900);
  color: #fff;
}
.form__head div { display: grid; gap: 2px; }
.form__head strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.form__head small { font-size: 13.5px; color: rgb(255 255 255 / .65); }
.form__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / .1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.form__badge .i { width: 15px; height: 15px; }

.form__body { display: grid; gap: 18px; padding: 24px 28px 28px; }

.form__label {
  margin-bottom: 8px;
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* Konu seçimi: ikonlu kartlar */
.topic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.topic legend { grid-column: 1 / -1; }
.topic label { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.topic span .i { width: 17px; height: 17px; }
.topic label:hover span { border-color: var(--ink-2); }
.topic input:checked + span {
  border-color: var(--navy-900);
  background: var(--navy-50);
  color: var(--navy-900);
  box-shadow: inset 0 0 0 1px var(--navy-900);
}
.topic input:focus-visible + span { outline: 2px solid var(--red-600); outline-offset: 2px; }

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field--full { grid-column: 1 / -1; }

.form .field__error[data-error-for="kvkk"] { margin-top: -10px; }

.form__status {
  min-height: 1.4em;
  font-size: 13px;
  text-align: center;
  color: var(--green-600);
}
.form__status:empty { display: none; }

.form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.form__note .i { width: 15px; height: 15px; color: var(--green-600); }

/* Başlık konuya göre değişirken kısa geçiş */
[data-form-title].is-changing { animation: title-swap .4s var(--ease-out); }
@keyframes title-swap { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Duyarlı ---------- */
@media (max-width: 1060px) {
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .contact-steps { grid-template-columns: 1fr; }
  .contact-steps li:not(:last-child)::after {
    right: auto;
    left: 29px;
    top: auto;
    bottom: -9px;
    transform: rotate(135deg);
  }
  .contact-cards { grid-template-columns: 1fr; }
  .form__head { padding: 18px 20px; }
  .form__body { padding: 20px; }
  .form__grid { grid-template-columns: 1fr; }
  .topic span { height: 44px; font-size: 14px; }
}

.contact__mail { font-size: 14px; color: var(--muted); }
.contact__mail a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.contact__mail a:hover { text-decoration-color: currentColor; }
