/* ============================================================
   Op. Dr. Ramazan Güler — Hero (slider + form)
   ============================================================ */

.hero {
  position: relative;
  height: 78vh;
  min-height: 680px;
  max-height: 860px;
  overflow: hidden;
  margin-top: var(--nav-height);
  display: flex;
  align-items: center;
}

.hero__landing {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__intro {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 72px;
  pointer-events: none;
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  touch-action: pan-y;
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slide picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}
.hero-slide.is-active img { transform: scale(1); }

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 12, 24, .88) 0%,
      rgba(6, 14, 28, .78) 22%,
      rgba(7, 18, 36, .52) 42%,
      rgba(8, 20, 40, .18) 62%,
      rgba(8, 20, 40, .06) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding-block: 2.25rem 2.75rem;
  pointer-events: none;
}

.hero__content { color: #fff; max-width: 640px; pointer-events: auto; }

.hero__marks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.15rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,168,76,.16);
  border: 1px solid rgba(201,168,76,.42);
  color: #e8ca7a;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.hero__badge svg { width: 13px; height: 13px; fill: currentColor; }

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: #dfc06e;
  display: block;
}

.hero__subtitle {
  font-size: 1.2rem;
  line-height: 1.75;
  color: rgba(255,255,255,.94);
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}

.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .9rem .5rem .85rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.hero__trust-glogo {
  height: 22px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.hero__trust-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: .7rem;
  border-left: 1px solid rgba(255,255,255,.18);
  color: #F4B400;
}
.hero__trust-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  filter: drop-shadow(0 1px 2px rgba(244,180,0,.35));
}
.hero__trust-score {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  line-height: 1;
}

.hero__form-wrap {
  position: relative;
  z-index: 4;
  pointer-events: auto;
  width: 420px;
  max-width: 100%;
}

.hero-slider__ui {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: auto;
}

.hero-slider__nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.hero-slider__nav:hover {
  background: rgba(255,255,255,.2);
}
.hero-slider__nav svg { width: 16px; height: 16px; }

.hero-slider__dots {
  display: flex;
  gap: 7px;
}
.hero-slider__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.35);
  transition: width .25s ease, background .25s ease;
  cursor: pointer;
}
.hero-slider__dot::after {
  content: '';
  position: absolute;
  inset: -12px;
}
.hero-slider__dot.is-active {
  width: 22px;
  background: var(--color-accent);
}

/* ── Form Card ── */

.hero__form-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18),
    0 0 24px rgba(26, 111, 212, .32),
    0 0 48px rgba(201, 168, 76, .18),
    0 22px 52px rgba(0, 0, 0, .28);
}

.hero__form-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.hero__form-brand {
  background: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.hero__form-brand-img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: normal;
}

.hero__form-fields {
  position: relative;
  padding: 0 1.5rem 0;
}

.hero__form-ht {
  height: 48px;
  width: auto;
  max-width: 92px;
  object-fit: contain;
  object-position: right center;
  flex-shrink: 0;
  pointer-events: none;
}
.hero__form-fields > .hero__form-ht {
  position: absolute;
  top: 10px;
  right: 0;
}

.hero__form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 0 .7rem;
  margin-bottom: .1rem;
}
.hero__form-head-copy {
  min-width: 0;
  flex: 1;
}
.hero__form-head-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--color-primary-alpha);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}
.hero__form-head-icon svg { width: 20px; height: 20px; stroke: var(--color-primary); fill: none; }


.hero__form-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .2rem;
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: -.02em;
}
.hero__form-subtitle {
  font-size: .8rem;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.hero__form-subtitle::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease infinite;
}

/* ── Form Inputs */
.form-group { margin-bottom: .72rem; }
.form-group--row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: var(--fw-semibold);
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: 0;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: #F8FAFF;
  border: 1.5px solid #dde4f0;
  border-radius: 8px;
  color: #111827;
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,111,212,.12);
}
.form-input:hover:not(:focus),
.form-select:hover:not(:focus) {
  border-color: #b8c8e0;
}
.form-input.valid   { border-color: #2E7D5E; background: #f0faf5; }
.form-input.invalid { border-color: #e53e3e; background: #fff5f5; }
.form-group.has-error .form-input,
.form-group.has-error .form-select { border-color: #e53e3e; background: #fff8f8; }

/* Select ok ikonu */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a6fd4' fill='none' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
  color: var(--color-text);
  font-weight: var(--fw-medium);
}
.form-select option { color: var(--color-text); background: #fff; }

.form-textarea { resize: none; height: 68px; line-height: 1.5; }

/* Hata mesajı */
.form-error-msg {
  font-size: .8rem;
  color: #e53e3e;
  margin-top: 3px;
  display: none;
}
.form-group.has-error .form-error-msg { display: block; }

/* Treatment hint */
.form-hint {
  margin-top: 5px;
  padding: 7px 11px;
  background: rgba(26,111,212,.06);
  border-left: 2px solid var(--color-primary);
  border-radius: 0 5px 5px 0;
  font-size: .75rem;
  color: var(--color-text-muted);
  display: none;
}
.form-hint.show { display: block; animation: hero-fade-up .3s ease; }

/* Honeypot */
.form-honeypot { display: none !important; visibility: hidden; }

/* ── Phone Field */
.phone-field {
  display: flex;
  gap: 0;
  border: 1.5px solid #dde4f0;
  border-radius: 8px;
  overflow: visible;
  background: #F8FAFF;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.phone-field:focus-within {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,111,212,.12);
}

.phone-field__dial { position: relative; flex-shrink: 0; }

.phone-field__dial-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 11px 10px 11px 12px;
  background: transparent;
  border: none;
  border-right: 1.5px solid #dde4f0;
  cursor: pointer;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease;
  border-radius: 0;
  height: 100%;
}
.phone-field__dial-btn:hover { background: rgba(26,111,212,.06); }
.phone-field__dial-btn svg { opacity: .5; flex-shrink: 0; transition: transform .2s ease; }
.phone-field__dial.open .phone-field__dial-btn svg { transform: rotate(180deg); }

.phone-field__dial-flag { font-size: 1.2rem; line-height: 1; }
.phone-field__dial-code { font-size: .8rem; font-weight: 600; color: var(--color-text-muted); }

.phone-field__number {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 7px 7px 0 !important;
  padding-left: 10px !important;
  outline: none;
  min-width: 0;
}

/* Dropdown */
.phone-field__dial-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #dde4f0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  z-index: 200;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.97);
  transform-origin: top left;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.phone-field__dial.open .phone-field__dial-dropdown,
.phone-field__dial-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.phone-field__dial-sheet-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 14px 16px 8px;
  border-bottom: 1px solid #f0f2f5;
}
.phone-field__dial-sheet-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}
.phone-field__dial-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: #F3F4F6;
  flex-shrink: 0;
}
.phone-field__dial-close svg { width: 18px; height: 18px; }

.phone-field__dial-search-wrap {
  position: relative;
  padding: 8px 8px 6px;
  border-bottom: 1px solid #f0f2f5;
}
.phone-field__dial-search-icon {
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 6px;
  width: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-field__dial-search-icon svg { width: 16px; height: 16px; display: block; }
.phone-field__dial-search {
  width: 100%;
  padding: 8px 10px 8px 36px;
  border: 1.5px solid #dde4f0;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text);
  outline: none;
  background: #F8FAFF;
}
.phone-field__dial-search:focus { border-color: var(--color-primary); }

.phone-field__dial-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #dde4f0 transparent;
}
.phone-field__dial-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s ease;
  font-size: .83rem;
}
.phone-field__dial-item:hover,
.phone-field__dial-item[aria-selected="true"] {
  background: var(--color-primary-alpha);
}
.phone-field__dial-item[aria-selected="true"] {
  font-weight: 600;
  color: var(--color-primary);
}
.phone-field__dial-item-flag { font-size: 1.15rem; flex-shrink: 0; line-height: 1; }
.phone-field__dial-item-name { flex: 1; color: var(--color-text); font-size: .82rem; }
.phone-field__dial-item-code { color: var(--color-text-muted); font-size: .78rem; font-weight: 600; flex-shrink: 0; }
.phone-field__dial-item.hidden { display: none; }

/* ── Submit Button */
.hero__form-submit {
  width: 100%;
  margin-top: .15rem;
  margin-bottom: .35rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  padding: 15px;
  letter-spacing: .01em;
  min-width: 0;
}
.hero__form-submit .btn-spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.hero__form-submit.loading .btn-text    { display: none; }
.hero__form-submit.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Başarı paneli */
.hero__form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 0;
  color: var(--color-text);
}
.hero__form-success.show { display: block; animation: hero-fade-up .5s ease; }
.hero__form-success__icon {
  width: 52px; height: 52px;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: rgba(46, 125, 94, .12);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}
.hero__form-success__title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--color-text); margin-bottom: .4rem; }
.hero__form-success__text  { font-size: .85rem; color: var(--color-text-muted); }

/* Güvenlik notu */
.hero__form-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .15rem 1.45rem .35rem;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 400;
  color: #9CA3AF;
  letter-spacing: 0;
  text-align: center;
}
.hero__form-security svg { width: 11px; height: 11px; fill: #9CA3AF; }
.hero__form-security a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hero__form-base {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 0;
  padding: 0 1.45rem 1.05rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.35;
  color: #6B7280;
  text-align: center;
}
.hero__form-base-flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .12);
  flex-shrink: 0;
}

/* Aciliyet etiketi */
.hero__form-urgency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: var(--fw-semibold);
  color: #D97150;
  margin-top: .35rem;
  margin-bottom: .1rem;
}
.hero__form-urgency svg { width: 11px; height: 11px; fill: #D97150; }

/* Scroll göstergesi */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.35);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: hero-fade-up 1s ease .8s forwards;
  opacity: 0;
}
.hero__scroll-mouse {
  width: 18px; height: 30px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 20px;
  position: relative;
}
.hero__scroll-mouse::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 6px;
  background: rgba(255,255,255,.4);
  border-radius: 3px;
  animation: scroll-mouse 1.8s ease infinite;
}
@keyframes scroll-mouse {
  0%   { top: 5px; opacity: 1; }
  100% { top: 17px; opacity: 0; }
}

/* Hero animasyonu */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Form popup ─────────────────────────────── */
body.form-popup-open { overflow: hidden; }

/* Alan kodu listesi form overflow'undan kaçmak için body'ye taşınır */
body > .phone-field__dial-dropdown {
  position: fixed;
  z-index: var(--z-toast);
}

.form-popup {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px;
  overflow-y: auto;
}
.form-popup[hidden] { display: none; }

.form-popup__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 40, .72);
  backdrop-filter: blur(4px);
}

.form-popup__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin-block: auto;
  animation: hero-fade-up .28s ease;
}

.form-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.14);
}
.form-popup__close:hover { background: rgba(255,255,255,.28); }
