/* ================================================
   FORM ROWS
================================================ */
.wpcf7-form .form-group.row:not(.checkboxes) {
    --bs-gutter-x: 0.75rem;
    margin-top: 0;
    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: 54px;
    min-height: 54px;
    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: none;
}

.wpcf7-form select {
    appearance: none;
    width: 100%;
    min-height: 54px;
    padding-right: 40px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgOS41bC03IDctNy03eiIvPjwvc3ZnPg==");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
}

.wpcf7-form select:focus,
.wpcf7-form select:focus-visible {
    outline: none;
    box-shadow: none;
}

body.np-keyboard-focus .wpcf7-form input:focus,
body.np-keyboard-focus .wpcf7-form select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 63, 55, .25);
}

/* ================================================
   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 {
    appearance: none;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 0;
    margin-right: 8px;
    border: 2px solid #065f59 !important;
    border-radius: 50%;
    background: #fff;
    box-shadow: none !important;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.wpcf7-form .form-check-inline input:checked {
    background: radial-gradient(circle, #065f59 0 4px, #fff 5px);
}

.wpcf7-form .form-check-inline input:hover {
    border-color: #a81879 !important;
}

.wpcf7-form .form-check-inline input:focus-visible {
    outline: 2px solid #a81879;
    outline-offset: 3px;
}

.wpcf7-form .form-check-inline input.is-invalid,
.wpcf7-form .form-check-inline input.is-valid {
    border-color: #065f59 !important;
    background-color: #fff;
}

.wpcf7-form .form-check-inline input.is-invalid ~ .form-check-label,
.wpcf7-form .form-check-inline input.is-valid ~ .form-check-label,
.wpcf7-form .form-check-inline .form-check-label {
    color: #212529 !important;
}

.wpcf7-form .form-check-inline input.is-invalid:checked,
.wpcf7-form .form-check-inline input.is-valid:checked {
    background: radial-gradient(circle, #065f59 0 4px, #fff 5px);
}

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

/* ================================================
   ORDER PAGE — CUSTOMER SATISFACTION STATS
================================================ */
.order-stats {
    padding: clamp(20px, 3vw, 36px) 0 clamp(32px, 4vw, 52px);
}

.page-narocite .page-content > section:first-child {
    padding-bottom: 0;
}

.order-stats .np-progressbar,
.order-stats .np-progressbar::after {
    display: flex;
    width: 100%;
    border-radius: 50%;
}

.order-stats .np-progressbar {
    max-width: clamp(150px, 16vw, 210px);
    aspect-ratio: 1;
    background: conic-gradient(
        var(--color) calc(var(--progress) / 100 * 360deg),
        #fff 0deg
    );
}

.order-stats .np-progressbar::after {
    content: attr(data-progress) '%';
    align-items: center;
    justify-content: center;
    margin: clamp(24px, 2.3vw, 32px);
    color: var(--color);
    background: #fff;
    font-size: clamp(2rem, 3.6vw, 3.35rem);
    font-weight: 700;
    line-height: 1;
}

.order-stats__text {
    max-width: 440px;
    margin: 16px auto 0;
    font-weight: 700;
}

.order-stats__source {
    margin: clamp(38px, 5vw, 64px) auto 0;
    font-style: italic;
}

/* ================================================
   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;
}

/* ================================================
   ACCEPTANCE ROW
================================================ */
.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;
}



/* OK */

.custom-checkbox-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.custom-checkbox-wrapper .distributor-checkbox {
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.custom-checkbox-wrapper .distributor-label {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding-left: 0;
}

.custom-checkbox-wrapper .custom-checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid #253483;
    border-radius: 2px;
    background: #fff;
    margin-top: 3px;
}

.custom-checkbox-wrapper .custom-checkbox::before,
.custom-checkbox-wrapper .custom-checkbox::after {
    content: "";
    position: absolute;
    height: 4px;
    background: #be1843;
    visibility: hidden;
}

.custom-checkbox-wrapper .custom-checkbox::before {
    width: 70%;
    top: 60%;
    left: 40%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.custom-checkbox-wrapper .custom-checkbox::after {
    width: 150%;
    top: 20%;
    left: 110%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.custom-checkbox-wrapper .distributor-checkbox:checked + .distributor-label .custom-checkbox::before,
.custom-checkbox-wrapper .distributor-checkbox:checked + .distributor-label .custom-checkbox::after {
    visibility: visible;
}

.custom-checkbox-wrapper .distributor-checkbox:focus-visible + .distributor-label .custom-checkbox {
    outline: 2px solid -webkit-focus-ring-color;
    outline-offset: 1px;
}

.custom-checkbox-wrapper .label-text {
    line-height: 1.4;
}

form.wpcf7-form #checkoutBtn:not(.btn-order-default) {
    border-color: #23665d;
    background-color: #23665d;
    background-image: none;
}

form.wpcf7-form #checkoutBtn:not(.btn-order-default):hover,
form.wpcf7-form #checkoutBtn:not(.btn-order-default):focus {
    border-color: #a81879;
    background-color: #a81879;
    background-image: none;
    filter: none;
}
