/* DH — iletişim widget paneli */
.dh-cw {
  --dh-cw-z: 9800;
  --dh-cw-bg: #0a0b12;
  --dh-cw-bg-image: url("../images/contact-cover.jpg");
  --dh-cw-panel-h: 70vh;
  --dh-cw-radius: 108px;
  --dh-cw-border: rgba(255, 255, 255, 0.18);
  --dh-cw-ease: cubic-bezier(0.32, 0.72, 0, 1);
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: var(--dh-cw-z);
  pointer-events: none;
}

.dh-cw:not([hidden]) { pointer-events: auto; }

/* FAB */
.dh-cw__fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.65rem;
  height: 3.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, #6022ea 0%, #4a1bb8 55%, #101935 140%);
  color: #fff;
  box-shadow: 0 0 80px rgba(96, 34, 234, 0.35);
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.dh-cw__fab:hover,
.dh-cw__fab:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 100px rgba(96, 34, 234, 0.5);
}

.dh-cw__fab-icon { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; }
.dh-cw__fab-icon svg { width: 100%; height: 100%; }

.dh-cw__fab-pill {
  position: absolute;
  right: calc(100% + 0.7rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  min-width: 9.5rem;
  border-radius: 14px;
  background: rgba(10, 11, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s var(--dh-cw-ease);
}

.dh-cw__fab-dot {
  flex-shrink: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #6ef58a;
  box-shadow: 0 0 10px rgba(110, 245, 138, 0.6);
}

.dh-cw__fab-text { display: flex; flex-direction: column; gap: 0.08rem; }
.dh-cw__fab-hello { font-family: var(--pjsans); font-size: 0.88rem; font-weight: 700; color: #fff; }
.dh-cw__fab-sub { font-family: var(--pjsans); font-size: 0.68rem; color: rgba(255,255,255,0.48); white-space: nowrap; }

.dh-cw__fab:hover .dh-cw__fab-pill,
.dh-cw__fab:focus-visible .dh-cw__fab-pill { opacity: 1; transform: translateX(0); }

.dh-cw.is-open .dh-cw__fab { opacity: 0; pointer-events: none; transform: scale(0.9); }

/* Overlay + 70vh panel */
.dh-cw__overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--dh-cw-z) + 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible;
}

.dh-cw__overlay[hidden] { display: none; }

.dh-cw__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
}

.dh-cw__overlay.is-open .dh-cw__backdrop { opacity: 1; }

.dh-cw__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--dh-cw-panel-h);
  max-height: var(--dh-cw-panel-h);
  display: flex;
  flex-direction: column;
  background: transparent;
  transform: translateY(100%);
  transition: transform 0.55s var(--dh-cw-ease);
  overflow: visible;
}

.dh-cw__overlay.is-open .dh-cw__panel { transform: translateY(0); }

.dh-cw__panel-surface {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--dh-cw-bg);
  border-top: 1px solid var(--dh-cw-border);
  border-top-left-radius: var(--dh-cw-radius);
  border-top-right-radius: var(--dh-cw-radius);
  position: relative;
}

.dh-cw__panel-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 42%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(125deg, rgba(5, 7, 15, 0.72) 0%, rgba(5, 7, 15, 0.32) 48%, rgba(5, 7, 15, 0.68) 100%),
    var(--dh-cw-bg-image) center / cover no-repeat;
}

/* Kapat — üst çizginin tam ortasında, yarısı içerde yarısı dışarıda */
.dh-cw__close {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid var(--dh-cw-border);
  border-radius: 50%;
  background: var(--dh-cw-bg);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.dh-cw__close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.dh-cw__close:hover,
.dh-cw__close:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: #12131c;
  transform: translate(-50%, -50%) rotate(90deg);
}

.dh-cw__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2.25rem clamp(1.5rem, 4vw, 3rem) clamp(1.75rem, 4vh, 2.5rem);
}

.dh-cw__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 72rem;
  min-height: 100%;
  margin: 0 auto;
}

/* Sol kolon */
.dh-cw__info {
  max-width: 28rem;
  opacity: 0;
  transform: translateX(-4%);
  transition: opacity 0.55s var(--dh-cw-ease) 0.12s, transform 0.55s var(--dh-cw-ease) 0.12s;
}

.dh-cw__overlay.is-open .dh-cw__info {
  opacity: 1;
  transform: translateX(0);
}

.dh-cw__head { margin-bottom: 1.75rem; }

.dh-cw__title {
  margin: 0 0 0.65rem;
  font-family: var(--pjsans, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.dh-cw__title--right {
  text-align: right;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.dh-cw__quote {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: #fff;
  letter-spacing: -0.015em;
}

.dh-cw__quote-muted { opacity: 0.55; }

/* Telefon / mail — blur hissi, gerçek blur yok */
.dh-cw__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.dh-cw__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.15rem;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  font-weight: 400;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 24px rgba(0, 0, 0, 0.18);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.dh-cw__link i {
  font-size: 1.45rem;
  line-height: 1;
  opacity: 0.88;
}

.dh-cw__link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

/* Site butonu — dh-nav__cta */
.dh-cw__teklif {
  width: fit-content;
}

/* Ayırıcı */
.dh-cw__split {
  width: 1px;
  align-self: stretch;
  margin: 0 2rem;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: scaleY(0);
  transition: opacity 0.55s ease 0.2s, transform 0.55s var(--dh-cw-ease) 0.2s;
}

.dh-cw__overlay.is-open .dh-cw__split {
  opacity: 1;
  transform: scaleY(1);
}

/* Sağ kolon — form (mevcut) */
.dh-cw__form-wrap {
  max-width: 26rem;
  margin-left: auto;
  width: 100%;
  opacity: 0;
  transform: translateX(4%);
  transition: opacity 0.55s var(--dh-cw-ease) 0.12s, transform 0.55s var(--dh-cw-ease) 0.12s;
}

.dh-cw__overlay.is-open .dh-cw__form-wrap {
  opacity: 1;
  transform: translateX(0);
}

.dh-cw__form { display: block; }

.dh-cw__fields {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.dh-cw__field { display: block; }

.dh-cw__field input:not([type="checkbox"]) {
  box-sizing: border-box;
  width: 100%;
  height: 3.25rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.dh-cw__field input::placeholder { color: rgba(255, 255, 255, 0.38); }

.dh-cw__field input:focus {
  border-color: rgba(96, 34, 234, 0.65);
  box-shadow: 0 0 0 3px rgba(96, 34, 234, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

/* Telefon — ülke kodu seçici */
.dh-cw__phone {
  display: flex;
  align-items: stretch;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.dh-cw__phone:focus-within {
  border-color: rgba(96, 34, 234, 0.65);
  box-shadow: 0 0 0 3px rgba(96, 34, 234, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.dh-cw__phone select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 1.65rem 0 0.75rem;
  width: 7.5rem;
  max-width: 42%;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
}

.dh-cw__phone select option {
  background: #12131c;
  color: #fff;
}

.dh-cw__phone input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 1rem;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dh-cw__hp { position: absolute; left: -9999px; opacity: 0; }

.dh-cw__status { margin: 0 0 0.75rem; font-size: 0.85rem; }
.dh-cw__status.is-ok { color: #6ef58a; }
.dh-cw__status.is-err { color: #ff8a8a; }

.dh-cw__form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.dh-cw__check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.dh-cw__check:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.dh-cw__check:has(input:checked) {
  border-color: rgba(96, 34, 234, 0.45);
  background: rgba(96, 34, 234, 0.1);
  box-shadow: 0 0 0 3px rgba(96, 34, 234, 0.1);
}

.dh-cw__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dh-cw__check-box {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: #fff;
  transition: border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.dh-cw__check-box svg {
  width: 0.8rem;
  height: 0.8rem;
  opacity: 0;
  transform: scale(0.55) rotate(-10deg);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.dh-cw__check:has(input:checked) .dh-cw__check-box {
  border-color: transparent;
  background: linear-gradient(145deg, #7a4dff, #3c43dd);
  box-shadow: 0 4px 14px rgba(96, 34, 234, 0.32);
}

.dh-cw__check:has(input:checked) .dh-cw__check-box svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.dh-cw__check-text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.dh-cw__check-text a {
  color: #d4c4ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  transition: color 0.25s ease;
}

.dh-cw__check-text a:hover { color: #fff; }

.dh-cw__cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--pjsans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.dh-cw__cta--submit { flex-shrink: 0; }

.dh-cw__cta--submit:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.dh-cw__cta--submit:disabled { opacity: 0.5; cursor: not-allowed; }

html.dh-cw-open,
body.dh-cw-open { overflow: hidden; }

@media (max-width: 1024px) {
  .dh-cw { --dh-cw-panel-h: 82vh; }

  .dh-cw__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }

  .dh-cw__info { order: 3; max-width: none; }
  .dh-cw__split {
    order: 2;
    width: 100%;
    height: 1px;
    margin: 1.75rem 0;
    transform: scaleX(0);
  }
  .dh-cw__overlay.is-open .dh-cw__split { transform: scaleX(1); }
  .dh-cw__form-wrap { order: 1; max-width: none; margin: 0; }

  .dh-cw__title--right {
    text-align: center;
    margin-bottom: 1.75rem;
  }

  .dh-cw__title br { display: none; }

  .dh-cw__links {
    max-width: none;
    margin-bottom: 1.25rem;
  }

  .dh-cw__teklif {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .dh-cw { --dh-cw-panel-h: 88vh; }

  .dh-cw__fab-pill { display: none; }

  .dh-cw__inner { padding-inline: 1.25rem; }

  .dh-cw__phone select {
    width: 6.5rem;
    font-size: 0.72rem;
    padding-right: 1.35rem;
  }

  .dh-cw__form-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .dh-cw__check { width: 100%; }

  .dh-cw__cta--submit { width: 100%; text-align: center; }
}
