/* ================================================
   FORM ROWS
================================================ */
.wpcf7-form .form-group.row:not(.checkboxes) {
    margin-bottom: 0.7rem;
}

/* ================================================
   TEXT INPUTS
================================================ */
.wpcf7-form input[type=text],
.wpcf7-form input[type=number],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form input[type=date] {
    appearance: none;
    width: 100%;
    height: auto;
    padding: 8px;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border .3s ease;
}

.wpcf7-form input[type=text]:hover,
.wpcf7-form input[type=number]:hover,
.wpcf7-form input[type=email]:hover,
.wpcf7-form input[type=tel]:hover,
.wpcf7-form input[type=date]:hover {
    border-color: #71bf44;
}

.wpcf7-form input[type=text]:focus,
.wpcf7-form input[type=number]:focus,
.wpcf7-form input[type=email]:focus,
.wpcf7-form input[type=tel]:focus,
.wpcf7-form input[type=date]:focus {
    outline: none;
    box-shadow: none;
    border-color: #71bf44;
}

.wpcf7-form input[type=text]:focus-visible,
.wpcf7-form input[type=number]:focus-visible,
.wpcf7-form input[type=email]:focus-visible,
.wpcf7-form input[type=tel]:focus-visible,
.wpcf7-form input[type=date]:focus-visible {
    outline: 2px solid -webkit-focus-ring-color;
    outline-offset: 1px;
}

/* ================================================
   LABELS — generic
================================================ */
.wpcf7-form label {
    display: block;
    width: 100%;
    font-weight: 400;
    color: #212529;
    margin-bottom: 4px;
    cursor: pointer;
}

.wpcf7-form label sup {
    color: #d81835;
}

.wpcf7-form label a {
    text-decoration: none;
    color: #d81835;
    font-weight: 500;
    transition: color .3s ease;
}

.wpcf7-form label a:hover {
    color: #ba142d;
    text-decoration: underline;
}

/* ================================================
   FLOATING LABELS
================================================ */
.wpcf7-form .np-label-container {
    position: relative;
    display: block;
    width: 100%;
}

.wpcf7-form .np-label-container input[type="text"],
.wpcf7-form .np-label-container input[type="number"],
.wpcf7-form .np-label-container input[type="email"],
.wpcf7-form .np-label-container input[type="tel"],
.wpcf7-form .np-label-container input[type="date"] {
    padding: 14px 8px;
    transition: .3s ease;
}

.wpcf7-form .np-label-container input::placeholder {
    opacity: 0;
}

.wpcf7-form .np-label-container input[type="date"]::before {
    display: none;
}

.wpcf7-form .np-label-container label {
    position: absolute;
    display: inline-block;
    width: auto;
    max-width: 100%;
    top: 0;
    left: 8px;
    font-size: 15px;
    line-height: 24px;
    opacity: 0.9;
    z-index: 1;
    padding: 14px 0;
    cursor: text;
    border-radius: 4px;
    background: linear-gradient(180deg, transparent 50%, transparent 50%);
    user-select: none;
    transition: .3s ease;
}

.wpcf7-form .np-label-container input:focus ~ label,
.wpcf7-form .np-label-container input:not(:placeholder-shown) ~ label {
    font-size: 0.7rem;
    line-height: 1.5;
    top: 0;
    left: 4px;
    padding: 0 4px;
    opacity: 1;
    background: linear-gradient(180deg, transparent 50%, #fff 50%);
    transform: translateY(-50%);
}

.wpcf7-form .focused label {
    color: #007bff;
}

/* ================================================
   GENDER RADIO BUTTONS
================================================ */
.wpcf7-form .form-check-inline {
    display: inline-flex;
    align-items: center;
}

.wpcf7-form .form-check-inline:not(:first-child) {
    margin-left: 8px !important;
}

.wpcf7-form .form-check-inline input {
    margin-top: 0;
}

.wpcf7-form .form-check-inline label {
    display: inline-block;
    margin-bottom: 0;
}

/* ================================================
   AGREEMENTS BLOCK — IGEN/NIE marketing buttons
   Scoped so they only apply inside .agreements
================================================ */
.wpcf7-form .agreements .btn-agreement {
    padding: .375rem 0;
    max-width: 75px;
    width: 100%;
    color: #000;
    font-weight: 700;
    border-color: #969998;
    background-color: #eaeaea;
    background-image: linear-gradient(to bottom, #f0f0f0, #eaeaea);
    transition: all .3s ease;
}

/* .wpcf7-form .agreements .btn-agreement-yes.active {
    color: #fff;
    background-color: #71bf44;
    background-image: linear-gradient(to bottom, #71bf44, #5a9a35);
    border-color: #71bf44;
} */

/* .wpcf7-form .agreements .btn-agreement-no.active {
    color: #fff;
    background-color: #c01600;
    background-image: linear-gradient(to bottom, #c01600, #9a0f00);
    border-color: #9a0f00;
}

.wpcf7-form .agreements .btn-agreement:hover {
    background-color: #71bf44;
    background-image: linear-gradient(to bottom, #71bf44, #5a9a35);
    border-color: #71bf44;
    color: #fff;
} */

.wpcf7-form .agreements .btn-agreement:focus-visible {
    outline: 2px solid -webkit-focus-ring-color;
    outline-offset: 2px;
}

/* ================================================
   CUSTOM VISUAL CHECKBOX — .check span
   -----------------------------------------------
   agreements.js injects <span class="check"> after
   every checkbox in: acceptAll, distributor rows.
   The real <input> is kept in DOM for CF7/JS but
   visually hidden; the .check span is the square.
================================================ */

/* Hide real input — but NOT for .agree or .agree-thp (handled separately below) */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item input[type="checkbox"],
.wpcf7-form .distributor input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Visual square */
.wpcf7-form .check {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #ced4da;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
    position: relative;
    vertical-align: middle;
    margin-right: 8px;
}

/* Tick mark */
.wpcf7-form .check::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: 2px solid transparent;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    transition: border-color .15s ease;
}

/* Checked state — toggled by agreements.js via .is-checked on parent */
/* Checked state — covers all CF7 HTML variants:
   order2: .wpcf7-list-item > label > input + .check  (is-checked on list-item AND label)
   order1: .wpcf7-list-item > input + .check          (no label wrapper, is-checked on list-item) */
.wpcf7-form .is-checked .check,
.wpcf7-form .is-checked > .check {
    border-color: #71bf44 !important;
    background: #71bf44 !important;
}

.wpcf7-form .is-checked .check::after,
.wpcf7-form .is-checked > .check::after {
    border-color: #fff !important;
}

/* Hover feedback */
.wpcf7-form .wpcf7-list-item:hover .check,
.wpcf7-form label:hover > .check {
    border-color: #71bf44;
}

/* ================================================
   ACCEPTALL ROW  — "Minden hozzájárulást megadok"
================================================ */
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
    cursor: pointer;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item-label {
    line-height: 1.5;
}

/* ================================================
   DISTRIBUTOR ROWS  — GLS / MPL choice
   Works for order1 (items hidden via inline style),
   order2 and yearsupply (items visible).
================================================ */
.wpcf7-form .distributor .wpcf7-list-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.wpcf7-form .distributor .wpcf7-list-item label {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
    gap: 0;
}

.wpcf7-form .distributor .wpcf7-list-item-label {
    line-height: 1.4;
}

/* order1: items hidden via inline display:none — preserve that */
.wpcf7-form .distributor .wpcf7-list-item[style*="display:none"],
.wpcf7-form .distributor .wpcf7-list-item[style*="display: none"] {
    display: none !important;
}


.wpcf7 form.invalid .wpcf7-response-output.cf7-alert-box,
.wpcf7 form.failed .wpcf7-response-output.cf7-alert-box {
  display: block !important;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 460px);
  margin: 0 !important;
  padding: 18px 18px 16px !important;
  background: #fff5f6 !important;
  border: 1px solid #d81835 !important;
  color: #8f1022 !important;
  border-radius: 5px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  z-index: 99999;
}

.wpcf7 form.invalid .wpcf7-response-output.cf7-alert-box::before,
.wpcf7 form.failed .wpcf7-response-output.cf7-alert-box::before {
  content: "";
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #d81835;
}

.cf7-ok-btn {
  display: block;
  margin: 5px auto 0;
  padding: 8px 22px;
  background: #a10018;
  color: #fff;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s ease;
}

.cf7-ok-btn:hover {
  background: #b3122a;
}

.cf7-alert-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333333;
}