/* Bwell warranty form layout, 2.6.4 — scoped to rendered CF7 only.
   Unlike v2.6.3, never assume that a CF7 form's direct children are individual fields.
   A nested form builder/row/group is allowed to use its natural block flow. */
html body.bwell-native-page .bwell-warranty-cf7 {
  --bw-accent:#008ad0; --bw-deep:#005d9d; --bw-line:#d5dfe8;
  --bw-text:#1d1d1f;
  width:min(100% - 32px,860px) !important;
  max-width:860px !important;
  min-width:0 !important;
  margin:0 auto 72px !important;
  padding:0 !important;
  color:var(--bw-text);
  font:400 15px/1.6 Kanit,Poppins,system-ui,sans-serif;
}
html body.bwell-native-page .bwell-warranty-cf7,
html body.bwell-native-page .bwell-warranty-cf7 *,
html body.bwell-native-page .bwell-warranty-cf7 *::before,
html body.bwell-native-page .bwell-warranty-cf7 *::after {box-sizing:border-box;}
html body.bwell-native-page .bwell-warranty-cf7 :is(.wpcf7,.wpcf7-form) {
  width:100% !important; max-width:100% !important; min-width:0 !important;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form {
  display:block !important; /* Fix: never place arbitrary CF7 wrappers in 1/2-width grid tracks */
  padding:clamp(20px,4vw,42px) !important;
  margin:0 !important;
  border:1px solid #e3eaf0 !important;
  border-radius:22px !important;
  background:#fff !important;
  box-shadow:0 12px 40px rgba(14,42,68,.06) !important;
  overflow:visible !important;
  text-align:left !important;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form > :is(p,div,fieldset,label) {
  min-width:0; max-width:100%;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form p {
  margin:0 0 20px !important;
  line-height:1.6;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form p:empty { display:none !important; }
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form label,
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form legend {
  color:#3d4f60; font:500 14px/1.65 Kanit,Poppins,system-ui,sans-serif;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form label { display:block; max-width:100%; }
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form-control-wrap {
  display:block; width:100%; max-width:100%; min-width:0;
  margin-top:7px;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]):not([type="hidden"]),select,textarea:not(.g-recaptcha-response):not([hidden])) {
  display:block !important;
  width:100% !important; max-width:100% !important; min-width:0 !important;
  min-height:50px !important;
  margin:0 !important; padding:12px 14px !important;
  border:1px solid var(--bw-line) !important;
  border-radius:12px !important;
  color:var(--bw-text) !important; background-color:#fff !important;
  box-shadow:none !important;
  font:400 15px/1.5 Kanit,Poppins,system-ui,sans-serif !important;
  letter-spacing:normal !important;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form select {appearance:auto !important; -webkit-appearance:menulist !important;}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form textarea:not(.g-recaptcha-response):not([hidden]) {min-height:130px !important;resize:vertical;}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input,select,textarea):focus-visible {
  outline:2px solid var(--bw-accent) !important;
  outline-offset:1px !important;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form input[type="file"] {
  display:block; width:100%; max-width:100%; padding:16px;
  border:1px dashed #a7c5d9; border-radius:12px;
  background:#f5fafe; color:#40576d; font:400 14px Kanit,Poppins,sans-serif;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form input[type="file"]::file-selector-button {
  cursor:pointer; padding:9px 14px; margin-right:10px;
  border:1px solid #a7c5d9; border-radius:24px;
  background:#fff; color:var(--bw-deep);
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(.wpcf7-checkbox,.wpcf7-radio,.wpcf7-acceptance) {
  display:flex !important; flex-wrap:wrap; gap:8px 16px; align-items:flex-start;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form .wpcf7-list-item {margin:0 8px 0 0 !important;max-width:100%;}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form .wpcf7-list-item label {
  display:inline-flex !important; gap:8px; align-items:flex-start;
  font-weight:400; cursor:pointer; max-width:100%;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input[type="checkbox"],input[type="radio"]) {
  width:17px !important; height:17px !important; min-width:17px !important;
  flex:0 0 17px; margin:3px 0 0 !important;
  appearance:auto !important; -webkit-appearance:auto !important;
  accent-color:var(--bw-accent);
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form .wpcf7-list-item-label {overflow-wrap:anywhere;}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(fieldset,.form-group,.form-row,.row) {max-width:100%;min-width:0;}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form .row {margin-left:0 !important;margin-right:0 !important;}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is([class*="col-"],.column) {min-width:0;max-width:100%;}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form iframe {
  display:block; max-width:100% !important;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input[type="submit"],button[type="submit"]) {
  display:inline-flex;align-items:center;justify-content:center;
  max-width:100%; min-height:48px; padding:10px 28px;
  margin:8px 0 0; border:0; border-radius:999px;
  color:#fff; background:var(--bw-accent);
  font:500 15px Kanit,Poppins,sans-serif; cursor:pointer;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input[type="submit"],button[type="submit"]):hover {background:var(--bw-deep);}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form .wpcf7-not-valid-tip {
  display:block; margin:5px 0 0; color:#b42335; font-size:12px;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form .wpcf7-response-output {
  margin:20px 0 0 !important; padding:12px 16px !important;
  border-radius:12px; line-height:1.6; font-size:14px;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form a {color:var(--bw-deep);text-decoration:underline;text-underline-offset:2px;}
/* Two-column layout is opt-in on a known field group, never forced on the whole CF7 form. */
@media (min-width:735px) {
  html body.bwell-native-page .bwell-warranty-cf7 .bw-fields-two {
    display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px;
  }
  html body.bwell-native-page .bwell-warranty-cf7 .bw-fields-two > * {min-width:0;}
}
@media (max-width:734px) {
  html body.bwell-native-page .bwell-warranty-cf7 {width:calc(100% - 24px) !important;margin-bottom:48px !important;}
  html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form {padding:22px 16px !important;border-radius:16px !important;}
  html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input[type="submit"],button[type="submit"]) {width:100%;}
  html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form input[type="file"]::file-selector-button {display:block;margin:0 0 10px;}
}

/* v2.6.6 Submit row: prevent inherited form / button / theme borders. */
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form > p:has(> input.wpcf7-submit),
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form > p:has(> button[type="submit"]),
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form > div:has(> input.wpcf7-submit),
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form > div:has(> button[type="submit"]) {
  display:flex !important; align-items:center !important; justify-content:flex-start !important;
  flex-wrap:wrap !important; gap:12px !important;
  width:100% !important; min-height:0 !important;
  margin:12px 0 0 !important; padding:0 !important;
  background:transparent !important; border:0 !important; border-radius:0 !important;
  box-shadow:none !important; outline:0 !important;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input.wpcf7-submit,button[type="submit"]) {
  box-sizing:border-box !important; display:inline-flex !important;
  width:auto !important; max-width:100% !important; min-width:0 !important;
  min-height:48px !important; height:auto !important;
  margin:0 !important; padding:12px 28px !important;
  border:0 !important; border-radius:999px !important;
  box-shadow:none !important; outline-offset:3px !important;
  background:#008ad0 !important; color:#fff !important;
  font:500 15px/1.3 Kanit,Poppins,system-ui,sans-serif !important;
  appearance:none !important; -webkit-appearance:none !important;
  cursor:pointer !important;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input.wpcf7-submit,button[type="submit"]):hover {background:#005d9d !important;}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input.wpcf7-submit,button[type="submit"]):focus-visible {outline:2px solid #005d9d !important;}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form .wpcf7-spinner {
  position:static !important; float:none !important; flex:none !important;
  display:inline-block; margin:0 !important; vertical-align:middle;
  border:0 !important; box-shadow:none !important;
}
@media (max-width:734px) {
  html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form :is(input.wpcf7-submit,button[type="submit"]) {width:100% !important;}
}

/* v2.8.1: Submit CTA is moved out of any bordered CF7 field wrapper. */
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form > .bw-submit-clean-row {
  display:flex !important; align-items:center !important; justify-content:flex-start !important;
  flex-wrap:wrap !important; gap:12px !important;
  width:100% !important; min-width:0 !important; min-height:0 !important;
  margin:10px 0 0 !important; padding:0 !important;
  border:0 !important; border-radius:0 !important; outline:0 !important;
  box-shadow:none !important; background:transparent !important;
}
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form > .bw-submit-clean-row > :is(input[type="submit"],button[type="submit"]) {
  display:inline-block !important; flex:0 0 auto !important;
  width:auto !important; min-width:0 !important; max-width:100% !important;
  margin:0 !important; padding:12px 28px !important;
  background:#008ad0 !important; color:white !important;
  border:0 !important; border-radius:999px !important;
  box-shadow:none !important; appearance:none !important;
}
@media (max-width:734px) {
  html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form > .bw-submit-clean-row > :is(input[type="submit"],button[type="submit"]) {width:100% !important;}
}

/* v2.8.2: Google reCAPTCHA creates a hidden textarea next to the submit CTA.
   Do not let the generic CF7 field styling override its inline display:none.
   Keep the visible reCAPTCHA checkbox / iframe unchanged. */
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form textarea.g-recaptcha-response,
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form textarea[name="g-recaptcha-response"],
html body.bwell-native-page .bwell-warranty-cf7 .wpcf7-form textarea[hidden] {
  display:none !important;
  visibility:hidden !important;
  width:0 !important; height:0 !important; min-width:0 !important; min-height:0 !important;
  margin:0 !important; padding:0 !important; border:0 !important;
  box-shadow:none !important;
}
