/* YGT - forms.css
   Fluent Forms isaretlemesini demo-1 form gorunumune (panel zemin, .quote-form / .f-grid / .q-check / .button) uyarlar.
   Kapsam: yalniz .ygt-ffwrap ici (blok ygt/form formu <div class="ygt-ffwrap" data-ygt-form="..."> ile sarar).
   Formlar _ff_selected_style = ffs_inherit_theme ile kurulur (wp/forms/build_forms.py): Fluent Forms'un kendi tema CSS'i yuklenmez.
   Kurallar: italik yok (Fluent yardim iletisini italik yapar); odak halkasi disarida; renkler tema degiskenlerinden
   (--ink --bg --panel --line --accent --purple --muted --c-error), yedek degerler demo-1 paletidir. */

.ygt-ffwrap {
  --ff-ink: var(--ink, #202b50);
  --ff-bg: var(--bg, #fff);
  --ff-panel: var(--panel, #f0f5fc);
  --ff-line: var(--line, #dce5f2);
  --ff-accent: var(--accent, #286bd8);
  --ff-ring: var(--purple, #8859cc);
  --ff-muted: var(--muted, #5b647f);
  --ff-err: var(--c-error, #b3261e);
  --ff-gap: var(--field-gap, 20px);
}

/* ---------- Sarmalayici: demo .quote-form paneli ---------- */
.ygt-ffwrap .fluentform,
.ygt-ffwrap .fluentform * { font-style: normal; }
.ygt-ffwrap .fluentform { font-family: inherit; color: var(--ff-ink); background: var(--ff-panel); padding: 22px; }
.ygt-ffwrap[data-ygt-form="contact"] .fluentform { padding: 30px; }
.ygt-ffwrap .fluentform form.frm-fluent-form { display: grid; gap: var(--ff-gap); margin: 0; padding: 0; background: none; }
.ygt-ffwrap .fluentform form.frm-fluent-form > fieldset { display: grid; gap: var(--ff-gap); margin: 0; padding: 0; border: 0; min-width: 0; }
.ygt-ffwrap .fluentform .ff-el-group::before,
.ygt-ffwrap .fluentform .ff-el-group::after { content: none; display: none; } /* clearfix sahte ogeleri izgarada bos hucre acmasin */

/* ---------- Satirlar (demo .f-grid: 2 ve 3 sutun; 640 px alti tek sutun) ---------- */
.ygt-ffwrap .fluentform .frm-fluent-form .ff-t-container,
.ygt-ffwrap .fluentform .frm-fluent-form .ff-t-container.mobile:not(.ff_excluded) {
  display: grid !important; /* Fluent Forms .mobile kurali display:block!important; sutun sayisi yalniz ekran genisligine bagli olsun */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ff-gap) 18px;
  width: 100%;
}
@media (min-width: 640px) {
  .ygt-ffwrap .fluentform .frm-fluent-form .ff-t-container.ygt-ff-row--2,
  .ygt-ffwrap .fluentform .frm-fluent-form .ff-t-container.ygt-ff-row--2.mobile:not(.ff_excluded) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ygt-ffwrap .fluentform .frm-fluent-form .ff-t-container.ygt-ff-row--3,
  .ygt-ffwrap .fluentform .frm-fluent-form .ff-t-container.ygt-ff-row--3.mobile:not(.ff_excluded) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ygt-ffwrap .fluentform .frm-fluent-form .ff-t-cell { display: block; width: auto; min-width: 0; margin: 0; padding: 0; }

/* Grup basliklari (demo .f-group) */
.ygt-ffwrap .fluentform .f-group { margin: 0; font-family: var(--font-head, inherit); font-size: var(--fs-md, 17px); font-weight: 600; color: var(--ff-ink); }
.ygt-ffwrap .fluentform .ff-el-group.ff-custom_html { margin: 0; }
.ygt-ffwrap .fluentform .ff-el-group.ff-custom_html p { margin: 0; }

/* ---------- Alan ---------- */
.ygt-ffwrap .fluentform .ff-el-group { display: block; margin: 0; }
.ygt-ffwrap .fluentform .ff-el-group.ff-hidden { display: none !important; } /* gizli urun listesi alani */
.ygt-ffwrap .fluentform .ff-el-input--label { display: block; float: none; width: auto; margin: 0 0 8px; padding: 0; text-align: left; }
.ygt-ffwrap .fluentform .ff-el-input--label label { display: block; margin: 0; font-size: var(--fs-sm, 15px); font-weight: 400; line-height: 1.4; color: var(--ff-ink); }
.ygt-ffwrap .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after { content: ' *'; color: inherit; margin: 0; }
.ygt-ffwrap .fluentform .ff-el-input--content { display: block; width: auto; margin: 0; }

.ygt-ffwrap .fluentform .ff-el-form-control {
  display: block; width: 100%; max-width: 100%; margin: 0; padding: 12px;
  background: var(--ff-bg); background-image: none; color: var(--ff-ink);
  border: 1px solid var(--ff-line); border-radius: var(--r-sm, 4px); min-height: var(--ctl-h, 48px); box-shadow: none;
  font-family: inherit; font-size: var(--fs-base, 16px); line-height: 1.4;
}
.ygt-ffwrap .fluentform textarea.ff-el-form-control { min-height: 120px; resize: vertical; }
.ygt-ffwrap .fluentform select.ff-el-form-control { appearance: auto; height: var(--ctl-h, 48px); }
.ygt-ffwrap .fluentform .ff-el-form-control::placeholder { color: var(--ff-muted); opacity: 1; }
.ygt-ffwrap .fluentform .ff-el-form-control:focus {
  outline: var(--focus-w, 2px) solid var(--ff-ring); outline-offset: var(--focus-off, 3px); border-color: var(--ff-ring); box-shadow: none;
  background: var(--ff-bg); color: var(--ff-ink);
}
.ygt-ffwrap .fluentform .ff-el-form-control:disabled,
.ygt-ffwrap .fluentform .ff-el-form-control[readonly] { opacity: 0.7; }

/* Yardim ve bilgi satirlari (Fluent Forms yardimi italik yapar) */
.ygt-ffwrap .fluentform .ff-el-help-message { margin: 6px 0 0; font-size: var(--fs-sm, 15px); color: var(--ff-muted); font-style: normal; }
.ygt-ffwrap .fluentform .ygt-form__fine { margin: 0; font-size: var(--fs-sm, 15px); line-height: 1.6; color: var(--ff-muted); }
.ygt-ffwrap .fluentform .ygt-form__fine a { color: var(--ff-accent); text-decoration: underline; text-underline-offset: 3px; }
.ygt-ffwrap .ygt-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- KVKK kutusu (demo .q-check) ---------- */
.ygt-ffwrap .fluentform .ff-el-tc { display: block; width: 100%; border: 0; }
.ygt-ffwrap .fluentform .ff-el-tc label.ff_tc_label,
.ygt-ffwrap .fluentform .ff-el-form-check-label.ff_tc_label {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: var(--fs-sm, 15px); line-height: 1.6; font-weight: 400; cursor: pointer;
}
.ygt-ffwrap .fluentform .ff-el-tc label.ff_tc_label > span.ff_tc_checkbox,
.ygt-ffwrap .fluentform .ff-el-tc label.ff_tc_label > div.ff_t_c { display: block; width: auto; padding: 0 !important; margin: 0; } /* Fluent Forms: padding-top:8px!important; display:table-cell */
.ygt-ffwrap .fluentform .ff-el-tc .ff-el-form-check-input {
  position: static; top: auto; flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--ff-accent); cursor: pointer;
}
.ygt-ffwrap .fluentform .ff-el-tc .ff-el-form-check-input:focus-visible { outline: var(--focus-w, 2px) solid var(--ff-ring); outline-offset: var(--focus-off, 3px); }
.ygt-ffwrap .fluentform .ff-el-tc .ff_t_c a { color: var(--ff-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hata (demo .f-err / .q-err) ---------- */
.ygt-ffwrap .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--ff-err); }
.ygt-ffwrap .fluentform .ff-el-is-error .ff-el-form-check-label,
.ygt-ffwrap .fluentform .ff-el-is-error .ff-el-form-check-label a { color: inherit; }
.ygt-ffwrap .fluentform .ff-el-is-error .text-danger,
.ygt-ffwrap .fluentform .text-danger,
.ygt-ffwrap .fluentform .error.text-danger { display: block; margin: 7px 0 0; font-size: var(--fs-sm, 15px); font-weight: 600; line-height: 1.4; color: var(--ff-err); }
.ygt-ffwrap .ff-errors-in-stack { margin: 0 0 14px; }
.ygt-ffwrap .ff-errors-in-stack .error { padding: 12px 14px; border-left: 3px solid var(--ff-err); background: var(--ff-bg); color: var(--ff-err); font-size: var(--fs-sm, 15px); font-weight: 600; line-height: 1.5; }
.ygt-ffwrap .ff-errors-in-stack .error + .error { margin-top: 8px; }
.ygt-ffwrap .ff-errors-in-stack .error-clear { color: inherit; }

/* ---------- Gonder dugmesi (demo .button) ---------- */
.ygt-ffwrap .fluentform .ff_submit_btn_wrapper { margin: 0; padding: 0; text-align: left; }
.ygt-ffwrap .fluentform .ff-btn-submit {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 15px;
  margin: 0; padding: 10px 22px; min-height: var(--ctl-h, 48px);
  background: var(--accent, var(--ff-accent)); color: var(--inverse, #fff);
  border: 0; border-radius: var(--radius-ui, 4px);
  font-family: inherit; font-weight: 600; font-size: var(--fs-sm, 15px); line-height: 1.2; text-decoration: none;
  opacity: 1; box-shadow: none; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.ygt-ffwrap .fluentform .ff-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgb(136 89 204 / 0.15); }
.ygt-ffwrap .fluentform .ff-btn-submit:active { transform: translateY(0); }
.ygt-ffwrap .fluentform .ff-btn-submit:focus-visible { outline: var(--focus-w, 2px) solid var(--ff-ring); outline-offset: var(--focus-off, 3px); }
.ygt-ffwrap .fluentform .ff-btn-submit:disabled,
.ygt-ffwrap .fluentform .ff-btn-submit.disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.ygt-ffwrap .fluentform .ff-btn-submit.ff-working::after { content: ''; background: hsl(0 0% 100% / 0.4); width: 100%; height: 5px; position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- Basari (talep numarasi) ---------- */
.ygt-ffwrap .ff-message-success { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; color: inherit; }
.ygt-success { display: grid; gap: 12px; padding: 30px; background: var(--ff-panel, #f0f5fc); border-left: 3px solid var(--ff-ring, #8859cc); color: var(--ink, #202b50); }
.ygt-success strong { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; }
.ygt-success p { margin: 0; font-size: var(--fs-base, 16px); line-height: 1.6; }
.ygt-success__no { font-variant-numeric: tabular-nums; font-size: 26px !important; font-weight: 700; letter-spacing: 0.04em; color: var(--accent, #286bd8); }
.ygt-success .actions { margin: 6px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .ygt-ffwrap .fluentform .ff-btn-submit { transition: none; }
  .ygt-ffwrap .fluentform .ff-btn-submit:hover { transform: none; }
}
