/* ============================================================
   MERIDA PARK — İLETİŞİM (CONTACT) PAGE
   Page-specific layout: contact grid, quote form, contact
   aside, map placeholder, departments. Builds on styles.css
   tokens + pages.css shared components. No new colors/fonts.
   ============================================================ */

/* ---------------- CONTACT TWO-COLUMN LAYOUT ---------------- */
.contact {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------------- LEFT: FORM ---------------- */
.cform__title { margin: 0 0 16px; }
.cform__lede { margin: 0 0 40px; max-width: 52ch; }

.cform {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.cform__field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cform__field--full { grid-column: 1 / -1; }
.cform__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-2);
}

.cform__input,
.cform__select,
.cform__textarea {
  width: 100%;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.cform__input::placeholder,
.cform__textarea::placeholder { color: var(--muted-2); }

.cform__input:focus,
.cform__select:focus,
.cform__textarea:focus {
  border-color: var(--terracotta);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(237,125,31,0.10);
}

.cform__textarea {
  resize: vertical;
  min-height: 130px;
  max-height: 320px;
}

/* select with custom caret */
.cform__select-wrap { position: relative; }
.cform__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  cursor: pointer;
}
.cform__caret {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  color: var(--muted);
  pointer-events: none;
}

/* KVKK checkbox */
.cform__check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  margin-top: 2px;
}
.cform__check input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.cform__check-box {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bone);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
  margin-top: 1px;
}
.cform__check-box svg { width: 13px; height: 13px; opacity: 0; transition: opacity 0.12s ease; }
.cform__check input:checked + .cform__check-box {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.cform__check input:checked + .cform__check-box svg { opacity: 1; }
.cform__check input:focus-visible + .cform__check-box {
  box-shadow: 0 0 0 3px rgba(237,125,31,0.18);
}
.cform__check-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.cform__link {
  color: var(--ink-2);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cform__link:hover { color: var(--terracotta); border-color: var(--terracotta); }

.cform__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cform__note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- RIGHT: CONTACT ASIDE ---------------- */
.contact__aside {
  position: sticky;
  top: 100px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 32px 32px;
}
.cinfo {
  display: flex;
  flex-direction: column;
}
.cinfo-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cinfo-item:last-child { border-bottom: none; }
.cinfo-item__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--moss-2);
}
.cinfo-item__icon svg { width: 21px; height: 21px; }
.cinfo-item__title {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 8px;
}
.cinfo-item__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  font-weight: 500;
}
.cinfo-item__muted { color: var(--muted); font-weight: 400; font-size: 14px; }
.cinfo-item__link {
  color: var(--ink-2);
  transition: color 0.15s ease;
  border-bottom: 1px solid transparent;
}
.cinfo-item__link:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }

.cinfo__cta {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cinfo__cta-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 26ch;
}

/* ---------------- MAP PLACEHOLDER ---------------- */
.mapwrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -36px rgba(13,26,31,0.4);
}

/* ---------------- DEPARTMENTS ---------------- */
.depts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.dept {
  background: var(--paper);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  transition: background 0.18s ease;
  position: relative;
}
.dept:hover { background: #fbfaf5; }
.dept__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  font-weight: 500;
}
.dept__title {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.dept__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.dept__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.dept__contact {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.dept__contact:hover { color: var(--terracotta); border-color: var(--terracotta); }
.dept__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1080px) {
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .contact__aside { position: static; top: auto; }
  .depts { grid-template-columns: 1fr; }
  .dept { min-height: 0; }
  .mapwrap { aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  .cform__grid { grid-template-columns: 1fr; gap: 20px; }
  .contact__aside { padding: 8px 22px 26px; }
  .mapwrap { aspect-ratio: 4 / 3; }
  .cform__actions { gap: 14px; }
}
