/* ==========================================================
   Silvermoon – globális Fluent Forms stílus
   Minden Fluent Forms űrlapra érvényes (.fluentform).
   Színek: vezérkék #223a5e, világoskék #E2E5F6
   A "body .fluentform" előtag azért kell, hogy betöltési
   sorrendtől függetlenül felülírja a Fluent Forms alapstílusát.
   ========================================================== */

body .fluentform {
  --sm-navy: #223a5e;
  --sm-navy-dark: #1a2d4a;
  --sm-light: #E2E5F6;
  --sm-ink: #1f2937;
  --sm-muted: #5b6476;
  --sm-line: #c9cfe3;
  --sm-error: #b91c1c;
  --sm-radius: 8px;
  font-family: inherit;
  color: var(--sm-ink);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body .fluentform *,
body .fluentform *::before,
body .fluentform *::after {
  box-sizing: border-box;
}

/* ---------- Mezőcsoportok ---------- */
body .fluentform .ff-el-group {
  margin-bottom: 20px;
}

/* ---------- Címkék ---------- */
body .fluentform .ff-el-input--label label {
  font-size: 15px;
  font-weight: 600;
  color: var(--sm-navy);
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Kötelező mező csillag */
body .fluentform .ff-el-is-required.asterisk-right label::after,
body .fluentform .ff-el-is-required.asterisk-left label::before {
  color: var(--sm-error);
}

/* ---------- Beviteli mezők ---------- */
body .fluentform .ff-el-form-control {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font-size: 16px;               /* 16px alatt iOS-en ráközelít a mezőre */
  font-family: inherit;
  color: var(--sm-ink);
  background: #fff;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius);
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}

body .fluentform textarea.ff-el-form-control {
  min-height: 120px;
  resize: vertical;
}

body .fluentform .ff-el-form-control::placeholder {
  color: #9aa3b5;
  opacity: 1;
}

body .fluentform .ff-el-form-control:hover {
  border-color: #a9b3cf;
}

body .fluentform .ff-el-form-control:focus {
  outline: none;
  border-color: var(--sm-navy);
  box-shadow: 0 0 0 3px var(--sm-light);
}

/* Legördülő menü */
body .fluentform select.ff-el-form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23223a5e' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* ---------- Név mező (vezeték- + keresztnév egymás mellett) ---------- */
body .fluentform .ff-t-container {
  gap: 16px;
}

body .fluentform .ff-t-container .ff-t-cell {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Rádiógomb és jelölőnégyzet ---------- */
body .fluentform .ff-el-form-check {
  margin-bottom: 8px;
}

body .fluentform .ff-el-form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--sm-ink);
  cursor: pointer;
}

body .fluentform .ff-el-form-check-input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--sm-navy);
  cursor: pointer;
}

/* Hozzájárulás / ÁSZF jelölőnégyzet: kisebb, nem félkövér szöveg */
body .fluentform .ff-el-tc .ff-el-form-check-label,
body .fluentform .ff_t_c,
body .fluentform .ff-el-tc label {
  font-size: 14px;
  font-weight: 400;
  color: var(--sm-muted);
}

body .fluentform .ff-el-tc a,
body .fluentform .ff_t_c a {
  color: var(--sm-navy);
  text-decoration: underline;
}

/* ---------- Súgószöveg ---------- */
body .fluentform .ff-el-help-message {
  font-size: 14px;
  color: var(--sm-muted);
  font-style: normal;
  margin-top: 6px;
}

/* ---------- Hibák ---------- */
body .fluentform .ff-el-is-error .ff-el-form-control {
  border-color: var(--sm-error);
}

body .fluentform .ff-el-is-error .ff-el-form-control:focus {
  box-shadow: 0 0 0 3px #fde2e2;
}

body .fluentform .ff-el-is-error .text-danger,
body .fluentform .error.text-danger {
  font-size: 14px;
  color: var(--sm-error);
  margin-top: 6px;
}

/* ---------- Küldés gomb ---------- */
body .fluentform .ff_submit_btn_wrapper {
  margin-top: 8px;
  text-align: center;
}

body .fluentform .ff-btn-submit,
body .fluentform .ff_btn_style.ff-btn-submit {
  display: inline-block;
  min-height: 50px;
  padding: 13px 32px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.3;
  color: #fff;
  background-color: var(--sm-navy);
  border: 2px solid var(--sm-navy);
  border-radius: var(--sm-radius);
  box-shadow: none;
  cursor: pointer;
  transition: background-color .15s, transform .05s;
}

body .fluentform .ff-btn-submit:hover,
body .fluentform .ff-btn-submit:focus {
  color: #fff;
  background-color: var(--sm-navy-dark);
  border-color: var(--sm-navy-dark);
  opacity: 1;
}

body .fluentform .ff-btn-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--sm-light), 0 0 0 5px var(--sm-navy);
}

body .fluentform .ff-btn-submit:active {
  transform: translateY(1px);
}

body .fluentform .ff-btn-submit[disabled] {
  opacity: .6;
  cursor: wait;
}

/* ---------- Sikeres beküldés üzenet ---------- */
body .ff-message-success {
  padding: 18px 20px;
  font-size: 16px;
  color: var(--sm-ink, #1f2937);
  background: #E2E5F6;
  border: 0;
  border-left: 5px solid #223a5e;
  border-radius: 8px;
  box-shadow: none;
}

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  body .fluentform .ff-t-container {
    display: block;
  }
  body .fluentform .ff-t-container .ff-t-cell {
    width: 100%;
    margin-bottom: 20px;
  }
  body .fluentform .ff-t-container .ff-t-cell:last-child {
    margin-bottom: 0;
  }
  body .fluentform .ff-btn-submit {
    width: 100%;
  }
}
