/* =====================================================================
   ÜCRETSİZ ANALİZ FORMU KARTI (template-parts/form-card.php)
   Yazı / sayfa detayının yan sütununda ve İletişim Sayfası şablonunda kullanılır.
   Lacivert kart, yazı olarak sadece üst başlık (danışman fotoğrafları +
   yeşil noktalı rozet) ve başlık. Sağ üstte salınan saç telleri, ikonlu
   beyaz alanlar, saç dökülme seviyesi seçimi (çubuklar seviyeye göre dolar),
   mavi gönder butonu, çizgi ayıraç + WhatsApp / Ara.
   Gönderim: main.js form[data-cm-form] > functions.php cm_send_form.
   Renkler: header.css :root --dhi-*
   ===================================================================== */

.fc-card {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 22px;
  border-radius: 26px;
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(34, 101, 255, 0.45), transparent 70%),
    radial-gradient(260px 200px at 0% 100%, rgba(87, 194, 149, 0.16), transparent 70%),
    linear-gradient(160deg, var(--dhi-navy) 0%, var(--dhi-navy-deep) 55%, var(--dhi-blue-deep) 100%);
  box-shadow: 0 30px 60px rgba(19, 28, 48, 0.28);
  color: #fff;
  isolation: isolate;
}

.fc-card .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---- sağ üstte salınan saç telleri ---- */

.fc-hair {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: -1;
  width: 130px;
  height: 66px;
  overflow: visible;
}

.fc-hair path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation:
    fc-hair-grow 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0.2s) forwards,
    fc-hair-sway var(--s, 3.4s) ease-in-out infinite alternate;
}

.fc-hair path:nth-child(3n) {
  stroke: rgba(87, 194, 149, 0.45);
}

@keyframes fc-hair-grow {
  to { stroke-dashoffset: 0; }
}

@keyframes fc-hair-sway {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(6deg); }
}

/* ---- üst: danışmanlar + çevrimiçi ---- */

.fc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fc-avatars {
  display: inline-flex;
  flex: 0 0 auto;
}

.fc-avatars img {
  display: block;
  width: 38px;
  height: 38px;
  border: 2px solid var(--dhi-navy);
  border-radius: 50%;
  object-fit: cover;
}

.fc-avatars img + img {
  margin-left: -12px;
}

.fc-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(87, 194, 149, 0.14);
  color: #b9f0d6;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.fc-online-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dhi-green);
}

.fc-online-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--dhi-green);
  border-radius: 50%;
  animation: fc-pulse 2.2s ease-out infinite;
}

@keyframes fc-pulse {
  from { opacity: 0.9; transform: scale(0.6); }
  to   { opacity: 0; transform: scale(1.9); }
}

/* ---- başlık ---- */

.fc-title {
  margin: 0 0 20px;
  color: #fff;
  font-family: var(--custom-first-font);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---- form ---- */

.fc-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fc-field {
  position: relative;
  display: block;
  margin: 0;
}

.fc-field > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #8a96a8;
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 0.25s ease;
}

.fc-field input,
.fc-field textarea {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--dhi-navy);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fc-field input {
  height: 48px;
  padding: 0 14px 0 42px;
}

.fc-field textarea {
  min-height: 74px;
  padding: 12px 14px;
  resize: vertical;
}

.fc-field input::placeholder,
.fc-field textarea::placeholder {
  color: #8a96a8;
}

.fc-field input:focus,
.fc-field textarea:focus {
  border-color: var(--dhi-blue);
  box-shadow: 0 0 0 4px rgba(34, 101, 255, 0.28);
}

.fc-field:focus-within > svg {
  color: var(--dhi-blue);
}

/* saç dökülme seviyesi */
.fc-level {
  min-width: 0;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.fc-level-options {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 8px;
}

.fc-level-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.fc-level-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.fc-level-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.fc-level-bars i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  transition: background-color 0.25s ease;
}

.fc-level-bars i:nth-child(1) { height: 7px; }
.fc-level-bars i:nth-child(2) { height: 11px; }
.fc-level-bars i:nth-child(3) { height: 16px; }

/* seviye arttıkça dolan çubuk sayısı artar */
.fc-level-option:nth-child(1) .fc-level-bars i:nth-child(-n+1),
.fc-level-option:nth-child(2) .fc-level-bars i:nth-child(-n+2),
.fc-level-option:nth-child(n+3) .fc-level-bars i {
  background: rgba(255, 255, 255, 0.6);
}

.fc-level-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.fc-level-option:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.fc-level-option:has(input:checked) {
  border-color: #fff;
  background: #fff;
  transform: translateY(-2px);
}

.fc-level-option:has(input:checked) .fc-level-text {
  color: var(--dhi-navy);
}

.fc-level-option:has(input:checked) .fc-level-bars i {
  background: #d6e0ee;
}

.fc-level-option:nth-child(1):has(input:checked) .fc-level-bars i:nth-child(-n+1),
.fc-level-option:nth-child(2):has(input:checked) .fc-level-bars i:nth-child(-n+2),
.fc-level-option:nth-child(n+3):has(input:checked) .fc-level-bars i {
  background: var(--dhi-blue);
}

.fc-level-option:has(input:focus-visible) {
  outline: 2px solid var(--dhi-green);
  outline-offset: 2px;
}

/* gönder */
.fc-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 54px;
  margin-top: 4px;
  padding: 0 8px 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--dhi-blue) 0%, var(--dhi-blue-dark) 100%);
  box-shadow: 0 14px 30px rgba(34, 101, 255, 0.4);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.fc-submit svg {
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease;
}

.fc-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.fc-submit:hover svg {
  transform: translateX(3px);
}

.fc-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.fc-form.is-sending .fc-submit {
  opacity: 0.65;
  cursor: wait;
}

.fc-form.is-sending .fc-submit svg {
  animation: fc-spin 0.8s linear infinite;
}

@keyframes fc-spin {
  to { transform: rotate(360deg); }
}

/* reCAPTCHA (template-parts/zoho-fields.php): 304px sabit, dar kartta main.js --zf-scale ile küçültür */
.zf-captcha {
  height: calc(78px * var(--zf-scale, 1));
  margin-top: 2px;
  overflow: hidden;
}

.zf-captcha-widget {
  width: 304px;
  transform: scale(var(--zf-scale, 1));
  transform-origin: 0 0;
}

.fc-response {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.fc-response:empty {
  display: none;
}

.fc-response.is-success {
  color: #9ff0c9;
}

.fc-response.is-error {
  color: #ffc2cf;
}

/* ---- veya + hızlı iletişim ---- */

.fc-or {
  height: 1px;
  margin: 18px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.fc-quick {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 8px;
}

.fc-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.fc-quick-btn svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.fc-quick-btn:hover {
  border-color: #fff;
  background: #fff;
  color: var(--dhi-navy) !important;
  transform: translateY(-2px);
}

.fc-quick-btn--wa {
  border-color: var(--dhi-green);
  background: var(--dhi-green);
}

.fc-quick-btn--wa:hover {
  border-color: var(--dhi-green-dark);
  background: var(--dhi-green-dark);
  color: #fff !important;
}

.fc-quick-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .fc-hair path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .fc-online-dot::after,
  .fc-form.is-sending .fc-submit svg {
    animation: none;
  }
}
