/* GTW: tüm seçimler #gtw-root altında; tema genel öğelerine müdahale edilmez. */
#gtw-root, #gtw-root *, #gtw-root *::before, #gtw-root *::after { box-sizing: border-box; }
#gtw-root { --gtw-navy: #102c45; --gtw-text: #243c50; --gtw-muted: #687b8a; --gtw-green: #20b865; --gtw-green-dark: #138949; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
#gtw-root [hidden] { display: none !important; }

/* Yukarı çık tuşuna göre JS tarafından hizalanır. */
#gtw-root .gtw-float {
  position: fixed; right: 24px; bottom: 92px; z-index: 99990;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; padding: 0; margin: 0;
  color: #fff !important; text-decoration: none !important;
  background: linear-gradient(145deg, #39db7e 0%, #20bd65 46%, #0c9850 100%);
  border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 7px 22px rgba(17, 133, 70, .30), 0 2px 7px rgba(0,0,0,.11);
  isolation: isolate; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .2s ease, transform .2s ease, bottom .2s ease, right .2s ease;
}
#gtw-root .gtw-float::before, #gtw-root .gtw-float::after {
  position: absolute; inset: -3px; z-index: -1; content: ""; pointer-events: none;
  background: rgba(37, 211, 102, .38); border: 1px solid rgba(37, 211, 102, .6);
  border-radius: 50%; animation: gtw-float-ripple 3.6s ease-out infinite;
}
#gtw-root .gtw-float::after { animation-delay: 1.8s; }
#gtw-root .gtw-float:hover { transform: translateY(-3px); box-shadow: 0 11px 27px rgba(17, 133, 70, .37); }
#gtw-root .gtw-float:focus-visible { outline: 3px solid #163f5a; outline-offset: 4px; }
#gtw-root .gtw-float__icon { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; }
#gtw-root .gtw-float__icon svg { display: block; width: 29px; height: 29px; }
#gtw-root .gtw-float__tooltip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  display: block; width: max-content; max-width: 160px; padding: 8px 11px;
  background: #173b4e; color: #fff; border-radius: 9px;
  font-size: 12px; font-weight: 650; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}
#gtw-root .gtw-float:hover .gtw-float__tooltip, #gtw-root .gtw-float:focus-visible .gtw-float__tooltip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
@keyframes gtw-float-ripple { 0% { transform: scale(1); opacity: .58; } 62%, 100% { transform: scale(1.63); opacity: 0; } }

/* Modal arayüzü */
#gtw-root .gtw-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; overscroll-behavior: contain; }
#gtw-root .gtw-modal__shade { position: absolute; inset: 0; background: rgba(5, 20, 34, .58); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s ease; }
#gtw-root .gtw-panel {
  position: relative; z-index: 1; width: min(100%, 482px); max-height: min(94dvh, 850px);
  margin: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid rgba(255,255,255,.78); border-radius: 23px;
  background: #fff; color: var(--gtw-text);
  box-shadow: 0 24px 80px rgba(5, 20, 34, .32), 0 2px 8px rgba(3, 14, 32, .08);
  opacity: 0; transform: translateY(19px) scale(.975);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .23s ease;
  scrollbar-width: thin; scrollbar-color: #d0dfd8 transparent;
}
#gtw-root .gtw-modal--open .gtw-modal__shade { opacity: 1; }
#gtw-root .gtw-modal--open .gtw-panel { opacity: 1; transform: translateY(0) scale(1); }
html.gtw-is-open { overflow: hidden !important; }
#gtw-root .gtw-panel__close {
  position: absolute; z-index: 3; top: 17px; right: 17px;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.30);
  border-radius: 50%; color: #fff; background: rgba(255,255,255,.14);
  cursor: pointer; transition: background .2s ease, transform .2s ease;
}
#gtw-root .gtw-panel__close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }
#gtw-root .gtw-panel__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#gtw-root .gtw-panel__close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#gtw-root .gtw-panel__head {
  position: relative; overflow: hidden; padding: 27px 34px 27px;
  color: #fff; background: linear-gradient(125deg, #0b2d44 0%, #124459 53%, #0f6058 100%);
}
#gtw-root .gtw-panel__head::after {
  content: ""; position: absolute; width: 205px; height: 205px; top: -105px; right: -105px;
  border: 33px solid rgba(255,255,255,.045); border-radius: 50%; pointer-events: none;
}
#gtw-root .gtw-panel__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; font-size: 10px; line-height: 1.2; font-weight: 800; letter-spacing: 1.6px; }
#gtw-root .gtw-panel__brand-mark { display: flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 8px; background: rgba(255,255,255,.17); color: #a8f4c9; }
#gtw-root .gtw-panel__brand-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#gtw-root .gtw-panel__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: #a8eac5; }
#gtw-root .gtw-panel__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5df4a2; box-shadow: 0 0 0 4px rgba(93,244,162,.13); }
#gtw-root .gtw-panel__head h2 { margin: 0 37px 9px 0; padding: 0; color: #fff; font-size: clamp(21px, 4vw, 27px); font-weight: 780; line-height: 1.25; letter-spacing: -.65px; }
#gtw-root .gtw-panel__head p { max-width: 360px; margin: 0; padding: 0; color: #d8e7ec; font-size: 13px; line-height: 1.65; font-weight: 400; }
#gtw-root .gtw-form { display: block; margin: 0; padding: 24px 34px 25px; }
#gtw-root .gtw-field { margin: 0 0 16px; }
#gtw-root .gtw-field label { display: block; margin: 0 0 7px; color: #233a4c; font-size: 12px; line-height: 1.4; font-weight: 730; }
#gtw-root .gtw-field label > span[aria-hidden] { color: #1ea75b; }
#gtw-root .gtw-field__optional { font-weight: 450; color: #8293a0; }
#gtw-root .gtw-field input, #gtw-root .gtw-field select, #gtw-root .gtw-field textarea {
  display: block; width: 100%; min-width: 0; margin: 0; padding: 0 14px;
  border: 1px solid #dae4e9 !important; border-radius: 10px !important;
  color: #1b3444 !important; background: #f8fafb !important;
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  box-shadow: none !important; outline: none !important; text-transform: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none; appearance: none;
}
#gtw-root .gtw-field input, #gtw-root .gtw-field select { height: 47px; }
#gtw-root .gtw-field textarea { min-height: 78px; height: auto; padding: 12px 14px; resize: vertical; }
#gtw-root .gtw-field input::placeholder, #gtw-root .gtw-field textarea::placeholder { color: #94a3af; opacity: 1; }
#gtw-root .gtw-field select:invalid { color: #94a3af !important; }
#gtw-root .gtw-field input:focus, #gtw-root .gtw-field select:focus, #gtw-root .gtw-field textarea:focus {
  border-color: #31ae75 !important; box-shadow: 0 0 0 3px rgba(37, 190, 105, .12) !important; background: #fff !important;
}
#gtw-root .gtw-select-wrap { position: relative; }
#gtw-root .gtw-select-wrap select { padding-right: 43px; cursor: pointer; }
#gtw-root .gtw-select-wrap > svg { position: absolute; right: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); pointer-events: none; fill: none; stroke: #78919a; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
#gtw-root .gtw-submit {
  display: flex; width: 100%; min-height: 49px; margin: 1px 0 0; padding: 10px 16px;
  align-items: center; justify-content: center; gap: 10px;
  border: none !important; border-radius: 11px !important;
  background: linear-gradient(120deg, #19ba67, #0b9b56) !important;
  color: #fff !important; font: 750 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  letter-spacing: .03px; text-align: center; text-decoration: none !important; cursor: pointer;
  box-shadow: 0 7px 17px rgba(18,162,88,.20);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
#gtw-root .gtw-submit:hover { transform: translateY(-1px); filter: brightness(1.045); box-shadow: 0 10px 20px rgba(18,162,88,.27); }
#gtw-root .gtw-submit:focus-visible { outline: 3px solid #114b4e !important; outline-offset: 3px !important; }
#gtw-root .gtw-submit__icon { width: 19px; height: 19px; display: flex; flex: 0 0 auto; }
#gtw-root .gtw-submit__icon svg { width: 19px; height: 19px; }
#gtw-root .gtw-submit__arrow { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#gtw-root .gtw-form__privacy { display: flex; align-items: flex-start; justify-content: center; gap: 7px; margin: 13px 0 0; padding: 0; color: #81929d; font-size: 10px; line-height: 1.55; text-align: left; }
#gtw-root .gtw-form__privacy svg { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 1px; fill: none; stroke: #7da28e; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
  #gtw-root .gtw-float { width: 53px; height: 53px; }
  #gtw-root .gtw-modal { padding: 0; align-items: flex-end; }
  #gtw-root .gtw-panel { width: 100%; max-height: 91dvh; border: none; border-radius: 23px 23px 0 0; transform: translateY(40px); }
  #gtw-root .gtw-panel__head { padding: 22px 22px 23px; }
  #gtw-root .gtw-panel__brand { margin-bottom: 19px; }
  #gtw-root .gtw-panel__head h2 { font-size: 23px; margin-right: 27px; }
  #gtw-root .gtw-panel__head p { font-size: 12.5px; }
  #gtw-root .gtw-panel__close { right: 15px; top: 14px; }
  #gtw-root .gtw-form { padding: 21px 22px max(23px, env(safe-area-inset-bottom)); }
  #gtw-root .gtw-field { margin-bottom: 13px; }
  #gtw-root .gtw-field input, #gtw-root .gtw-field select { height: 45px; font-size: 16px !important; }
  #gtw-root .gtw-field textarea { min-height: 68px; font-size: 16px !important; }
}
@media (max-width: 360px) {
  #gtw-root .gtw-panel__head { padding-left: 17px; padding-right: 17px; }
  #gtw-root .gtw-form { padding-left: 17px; padding-right: 17px; }
  #gtw-root .gtw-panel__head h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  #gtw-root .gtw-float, #gtw-root .gtw-modal__shade, #gtw-root .gtw-panel, #gtw-root .gtw-submit, #gtw-root .gtw-float__tooltip, #gtw-root .gtw-panel__close { transition: none; }
  #gtw-root .gtw-float::before, #gtw-root .gtw-float::after { animation: none; opacity: .18; }
}
