/*
Theme Name: nature-med
Theme URI: 
Author: Itay
Author URI: 
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nature-med
Tags: 
*/

/* heebo-200 - hebrew_latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 200;
    src: url('assets/fonts/heebo-v26-hebrew_latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* heebo-300 - hebrew_latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 300;
    src: url('assets/fonts/heebo-v26-hebrew_latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* heebo-regular - hebrew_latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/heebo-v26-hebrew_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* heebo-600 - hebrew_latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 600;
    src: url('assets/fonts/heebo-v26-hebrew_latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* heebo-800 - hebrew_latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 800;
    src: url('assets/fonts/heebo-v26-hebrew_latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

  html, body,
button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
p, a, span, strong, em {
  font-family: 'Heebo', sans-serif;
}

strong {
    font-weight: 600;
}

body {
    background-color:#fffffb;
}

.masthead {
    height:90px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
}

.header-mobile-items {
  display: none!important;
}

.header-search>div {
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
    border:0px;
}

.header-search button {
    background-color: #003D42;
    padding:6px;
}

.masthead .wp-block-button img {
    vertical-align: sub;
}

.wp-block-button a {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
}

/* NAV */
.wp-block-navigation li:hover {
    color: var(--wp--preset--color--primary);
}

.wp-block-navigation .has-child>a {
    padding-bottom: 33px;
    margin-top: 33px;
}

.wp-block-navigation__submenu-container {
    background-color: var(--wp--preset--color--dark-green)!important;
    color: #fff!important;
    border-radius: 0px 0px 20px 20px;
    overflow:hidden!important;
    left: auto!important;
    right: 0!important;
}

.yoast-breadcrumbs {
    text-align:left;
    margin: 0 3rem;
    font-weight:300;
}

.entry-content hr {
  background-image: repeating-linear-gradient(to right, #2c5050, #2c5050 10px, transparent 10px, transparent 20px);
    border: none;
    width: 100%;
    height: 1px;
}

.entry-content p {
  font-size:var(--wp--preset--font-size--medium);
}

.entry-content .wp-block-post-author-name {
  font-size: var(--wp--preset--font-size--medium);
}

.single .entry-content h2 {
  padding-top: 120px;
  margin-top: -90px;
}

.home-hero {
    border-radius: 40px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10);
}

.hero {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10);
}

.has-box-shadow {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10);
}

.has-box-shadow img {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10);
    border-radius:50px;
}
.has-box-shadow .no-shadow>img {
  box-shadow: none;
  border-radius:0px;
}

.service {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10);
    border-radius:40px;
    padding-top: var(--wp--preset--spacing--50);
    padding-right: var(--wp--preset--spacing--50);
    padding-bottom: var(--wp--preset--spacing--50);
    padding-left: var(--wp--preset--spacing--50);
}

.service-btn {
  border: 1px solid #fff;
    border-radius: 30px;
}

.service-btn:hover {
  border: 1px solid #7DC229;
    border-radius: 30px;
}

.service-btn a {
    font-weight:300;
}

.about-section-box, .contact-box {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10);
}

.about-icon img {
    width: auto;
    height: 140px;
    width:140px;
    background-color: #FFFFFB;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10);
    padding: 30px;
    border-radius: 50%;
    overflow: visible;
}

.methods-item {
    border: 0px;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='40' ry='40' stroke='%23333' stroke-width='2' stroke-dasharray='5%2c 8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
    border-radius: 40px;
}

/* === CF7 Custom Styling === */

.wpcf7 form {
    direction: rtl;
    text-align: right;
  }
  
  /* .form-row {
    margin-bottom: 1.5rem;
  } */

  .form-row--split {
    display: flex;
    gap: 1rem;
    margin-bottom: -1rem;
  }
  
  .half-col {
    flex: 1;
  }
  
  /* Input + select styling */
  .wpcf7 input[type="text"],
  .wpcf7 input[type="tel"],
  .wpcf7 select {
    width: 100%;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 1rem;
    background-color: #fff;
    transition: border-color 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    direction:rtl;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
  }
  
  /* Focus style */
  .wpcf7 input[type="text"]:focus,
  .wpcf7 select:focus {
    border-color: #9747FF; /* Purple border on focus */
    outline: none;
  }
  
  /* Dropdown arrow fix */
  .wpcf7 select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
  }
  
  /* Submit button */
  .wpcf7 input[type="submit"] {
    display: inline-block;
    width: 100%;
    background-color: #98CB3C;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
  }
  
  .wpcf7 input[type="submit"]:hover {
    background-color: #88b536;
  }

  .ti-widget {
    margin:0!important;
  }

  .ti-widget[data-layout-id='56'][data-set-id='light-minimal'] .ti-fade-container {
    display: inline-flex;
    flex-direction: row-reverse!important;
    gap: 20px !important;
  }

  .ti-widget[data-layout-id='56'][data-set-id='light-minimal'] .ti-rating {
    font-size: 24px!important;
    top: 0px!important;
    background-color: #ffffff00!important;
  }

  .ti-fade-container .ti-text {
    margin-right:20px!important;
    margin-top: 5px !important;
  }

  .ti-fade-container .ti-large-logo {
    display:none!important;
  }

/* QA Block */
.qa-top {
    overflow: hidden;
  }
  
  .qa-top summary {
    padding: 1rem;
    border-radius: 50px;
    background-color: #003D42;
    color: #fff;
    cursor: pointer;
    list-style: none;
  }
  .qa-top[open] summary {
    background-color: #7EC329;
  }
  
  /* Custom + / – marker */
  .qa-top summary::before {
    content: '+';
    font-weight: lighter;
    margin-left: 16px;
    margin-right: 0.5em;
    font-size: 2rem;
    vertical-align: sub;
    color: #fff;
    transition: transform 0.3s ease;
  }
  .qa-top[open] summary::before {
    content: '–';
    margin-left: 11px;
  }
  
  /* Transition target */
  .qa-bottom {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease;
  }
  
  /* When manually triggered via JS */
  .qa-top.expanding .qa-bottom,
  .qa-top.closing .qa-bottom,
  .qa-top[open].qa-top .qa-bottom {
    max-height: 1000px;
    opacity: 1;
    padding: 1.5rem;
    margin-top: 1rem;
    background: #fff;
    border-radius: 50px;
  }

  /* Archive grid layout */
/* .wp-block-post-template.is-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
  } */
  
  /* Each post item */
  .wp-block-post {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 0px 20px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
  }
  
  .wp-block-post:hover {
    transform: translateY(-6px);
  }
  
  /* Inner content box padding */
  .archive-grid-item {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
  }
  
  /* Featured image */
  .archive-grid-item-img {
    position: relative;
    height: 250px;
    overflow: hidden;
  }
  
  .archive-grid-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Tags */
  .archive-grid-item-tags {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    z-index: 2;
  }
  
  .archive-grid-item-tags a {
    background-color: #7DC229;
    color: white;
    font-size: 0.7rem;
    font-weight: 300;
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    text-decoration: none;
    white-space: nowrap;
  }
  
  /* Title area */
  .archive-grid-item-title {
    background: #003D42;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem;
    margin: 0;
    text-align: right;
    min-height: 90px;
  }
  
  .archive-grid-item-title a {
    color: inherit;
    text-decoration: none;
  }

  /* Sticky Sidebar */
.single-post-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
}

.wp-block-template-part.post-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.ti-widget[data-layout-id='56'][data-set-id='light-minimal'] .ti-header {
  padding:0px!important;
}

.dashed-border {
  height: 1px;
  background-image: repeating-linear-gradient(to right, #2c5050, #2c5050 10px, transparent 10px, transparent 20px);
  border: none;
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.toc-block {
    display: inline-block;
    min-width: 350px;
    padding-top: var(--wp--preset--spacing--20)!important;
    padding-right: var(--wp--preset--spacing--60);
    padding-bottom: var(--wp--preset--spacing--20)!important;
    padding-left: var(--wp--preset--spacing--60);
}

/* Title (summary) */
.toc-block summary {
  font-size: 1.25rem;
  font-weight: 700;
  color: #173f42;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  flex-direction: row-reverse;
}

.toc-block summary::-webkit-details-marker {
  display: none;
}

/* Chevron icon */
.toc-block summary::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 -4.5 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:sketch='http://www.bohemiancoding.com/sketch/ns' fill='%23000000'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Ctitle%3Echevron-down%3C/title%3E%3Cdesc%3ECreated with Sketch Beta.%3C/desc%3E%3Cdefs%3E%3C/defs%3E%3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' sketch:type='MSPage'%3E%3Cg id='Icon-Set-Filled' sketch:type='MSLayerGroup' transform='translate(-574.000000, -1201.000000)' fill='%23173F42'%3E%3Cpath d='M597.405,1201.63 C596.576,1200.8 595.23,1200.8 594.401,1201.63 L586.016,1210.88 L577.63,1201.63 C576.801,1200.8 575.455,1200.8 574.626,1201.63 C573.797,1202.46 573.797,1203.81 574.626,1204.64 L584.381,1215.4 C584.83,1215.85 585.429,1216.05 586.016,1216.01 C586.603,1216.05 587.201,1215.85 587.65,1215.4 L597.405,1204.64 C598.234,1203.81 598.234,1202.46 597.405,1201.63' id='chevron-down' sketch:type='MSShapeGroup'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  display: inline-block;
  width: 12px;
    height: 12px;
}

/* TOC list */
.simpletoc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.simpletoc-list li {
  margin: 0.75rem 0;
  position: relative;
  padding-inline-start: 1.25rem;
}

.simpletoc-list li::before {
  content: '‹';
  position: absolute;
  right: 0; /* or left: 0 in LTR */
  color: #173f42;
  font-size: 1.2rem;
  line-height: 1;
  margin-top:5px;
  transform: scaleX(-1);
}

.simpletoc-list a {
  text-decoration: none;
  color: #173f42;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
  display: inline-block;
}

.simpletoc-list a:hover {
  color: #7DC229;
}

.wp-block-separator.is-style-dashed-border {
  border: none;
  height: 1px;
  width: 100%;
  background-image: repeating-linear-gradient(to right, #2c5050, #2c5050 10px, transparent 10px, transparent 24px);
  margin-block: 1.5rem;
}

.wp-block-image.is-style-rounded img {
  border-radius: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.10);
}

.boxed-text>div {
  border: 1px dashed #7ec329;
}

.research-grid li>div {
  border:1px dashed #003d43;
}

.banner-caption {
  position: absolute;
    bottom: 5%;
}

sub {
    vertical-align: baseline!important;
    font-size: var(--wp--preset--font-size--normal)!important;
}

.wp-image-920 {
  border-radius:0px!important;
}

/* =========================================================
   Daily Tracker Form - Full-Width, Label-on-Top Layout
   ========================================================= */

:root {
  --nm-form-bg: #fffffb;
  --nm-form-text: #00373d;
  --nm-form-accent: #a5e62d;
  --nm-form-accent-hover: #93cf28;
  --nm-form-input-bg: #ffffff;
  --nm-form-input-border: #cfd8dc;
  --nm-form-input-border-focus: var(--nm-form-accent);
  --nm-form-radius-pill: 9999px;
  --nm-form-gap: 0.75rem;           /* field gap */
  --nm-form-section-gap: 1.75rem;   /* section spacing */
  --nm-form-field-pad-y: 0.65rem;
  --nm-form-field-pad-x: 1rem;
  --nm-form-font-family: inherit;
}

/* Scope root */
.daily-tracker-form.nm-form-box,
.nm-form-box {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 1rem 3rem; /* page gutters */
  background: var(--nm-form-bg);
  color: var(--nm-form-text);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--nm-form-font-family);
  text-align: right;
  direction: rtl;
}

/* Section spacing */
.nm-form-box .nm-section {
  margin-block-start: var(--nm-form-section-gap);
}
.nm-form-box .nm-section:first-of-type {
  margin-block-start: 0;
}

/* Headings */
.nm-form-box h2,
.nm-form-box .nm-title {
  margin: 0 0 1.5rem;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--nm-form-text);
  text-align: center;
}
.nm-form-box h3 {
 margin-bottom: 0.75rem;         border-radius: 20px;
        background: var(--wp--preset--color--dark-green) !important;
        padding: 10px 10px;
        text-align: center;
        color: #fff;
    }


/* Field wrappers */
.nm-form-box .nm-field,
.nm-form-box p {
  margin: var(--nm-form-gap) 0;
  line-height: 1.35;
  color: var(--nm-form-text);
}

/* Labels (ALWAYS BLOCK ABOVE FIELD) */
.nm-form-box label,
.nm-form-box strong,
.nm-field-radio {
  display: block !important;
  margin-bottom: 0.35rem;
  font-weight: 400;
  color: var(--nm-form-text);
  cursor: pointer;
  font-size:medium!important;
  line-height: 2;
}
/* Remove legacy <br> breaks in markup to avoid double spacing */
.nm-form-box label br {
  display: none;
}

/* Control wrapper: ensure full width */
.nm-form-box .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Inputs */
.nm-form-box input[type="text"],
.nm-form-box input[type="email"],
.nm-form-box input[type="tel"],
.nm-form-box input[type="date"],
.nm-form-box input[type="number"],
.nm-form-box input[type="url"],
.nm-form-box select,
.nm-form-box textarea,
.nm-form-box .nm-input,
.nm-form-box .nm-textarea {
  width: 100%;
  max-width: 100%;
  background: var(--nm-form-input-bg);
  color: var(--nm-form-text);
  border: 1px solid var(--nm-form-input-border);
  border-radius: var(--nm-form-radius-pill);
  padding: var(--nm-form-field-pad-y) var(--nm-form-field-pad-x);
  font-size: 1rem;
  line-height: 1.2;
  transition: border-color .15s, box-shadow .15s;
  direction: rtl;
  text-align: right;
  box-shadow:none;
}

/* Textarea overrides (not pill; more comfortable typing) */
.nm-form-box textarea,
.nm-form-box .nm-textarea {
  min-height: 110px;
  border-radius: 16px;
  resize: vertical;
  line-height: 1.35;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Focus */
.nm-form-box input:focus,
.nm-form-box select:focus,
.nm-form-box textarea:focus {
  outline: none;
  border-color: var(--nm-form-input-border-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--nm-form-accent) 40%, transparent);
}

/* Placeholder */
.nm-form-box ::placeholder {
  color: rgba(0,0,0,.38);
  opacity: 1;
}

/* Responsive field rows (for pairing fields side-by-side) */
.nm-form-box .nm-row {
  margin: var(--nm-form-gap) 0;
}
.nm-form-box .nm-row.nm-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nm-form-gap);
}
@media (min-width:600px) {
  .nm-form-box .nm-row.nm-2col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Symptom rows auto to 3 columns on wide screens */
.nm-form-box .nm-row.nm-3stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nm-form-gap);
}
@media (min-width:900px) {
  .nm-form-box .nm-row.nm-3stack {
    grid-template-columns: repeat(3,1fr);
  }
}

/* Utility to span all columns */
.nm-form-box .nm-col-span {
  grid-column: 1 / -1;
}

/* =========================
   Radio / Checkbox Styling
   ========================= */

.nm-form-box .nm-field-radio {
  text-align: right;
}

/* inline option list */
.nm-form-box .wpcf7-radio,
.nm-form-box .wpcf7-checkbox {
  display: inline-block;
  margin-top: 15px;
    margin-right: -10px;
}
.nm-form-box .wpcf7-list-item {
  display: inline-block;
  margin-inline-start: .75em;
  margin-inline-end: 0;
  margin-block: .25em;
}

/* clickable pill */
.nm-form-box .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .35em 1.25em;
  background: var(--nm-form-input-bg);
  color: var(--nm-form-text);
  border: 1px solid var(--nm-form-accent);
  border-radius: var(--nm-form-radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s, color .15s;
}

/* Hide native input visually */
.nm-form-box .wpcf7-list-item input[type="radio"],
.nm-form-box .wpcf7-list-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

/* Remove extra gap span */
.nm-form-box .wpcf7-list-item-label {
  pointer-events: none;
}

/* Checked fallback: text span gets white */
.nm-form-box .wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label,
.nm-form-box .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label {
  color: #fff;
}

/* Modern browsers: recolor whole pill when checked */
@supports(selector(:has(*))) {
  .nm-form-box .wpcf7-list-item label:has(:checked) {
    background: var(--nm-form-accent);
    border-color: var(--nm-form-accent);
    color: #fff;
  }
}

/* Focus-visible */
.nm-form-box .wpcf7-list-item input[type="radio"]:focus-visible + .wpcf7-list-item-label,
.nm-form-box .wpcf7-list-item input[type="checkbox"]:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid color-mix(in srgb, var(--nm-form-accent) 60%, transparent);
  outline-offset: 2px;
  border-radius: inherit;
}

/* =========================
   Submit Button
   ========================= */
.nm-form-box input[type="submit"],
.nm-form-box .nm-btn-submit {
      display: inline-block;
    width: 100%;
    background-color: #98CB3C;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
}
.nm-form-box input[type="submit"]:hover,
.nm-form-box input[type="submit"]:focus,
.nm-form-box .nm-btn-submit:hover,
.nm-form-box .nm-btn-submit:focus {
  background: var(--nm-form-accent-hover);
  transform: translateY(-1px);
}
.nm-form-box input[type="submit"]:active,
.nm-form-box .nm-btn-submit:active {
  transform: translateY(0);
}

/* =========================
   Validation & Messages
   ========================= */
.nm-form-box .wpcf7-not-valid {
  border-color: #ff6b6b !important;
}
.nm-form-box .wpcf7-not-valid-tip {
  color: #d32f2f;
  font-size: .85rem;
  margin-top: .15rem;
  display: block;
  text-align: right;
}
.nm-form-box .wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--nm-form-accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--nm-form-accent) 15%, transparent);
  color: var(--nm-form-text);
  text-align: center;
}

/* Clean up CF7 default bottom margin in some themes */
.nm-form-box form.wpcf7-form {
  margin-bottom: 0;
}

/* Safari date picker pointer */
.nm-form-box input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/* Extra small screens: tighter gutters */
@media (max-width:480px) {
  .nm-form-box {
    padding: 0 0.75rem 2.5rem;
  }
  .nm-form-box h2,
  .nm-form-box .nm-title {
    font-size: 1.45rem;
  }
  .nm-form-box h3 {
    font-size: 1.15rem;
  }
}

/****************************************************
 * DAILY TRACKER – HARD OVERFLOW SAFEGUARDS
 * Paste AFTER the main Daily Tracker CSS.
 ****************************************************/

/* Never let anything exceed the container */
.nm-form-box,
.nm-form-box * {
  box-sizing: border-box;
  max-width: 100%;
}

/* Defensive container clamp */
.nm-form-box {
  width: 100% !important;
  overflow-x: hidden; /* last-resort guard */
}

/* Grid columns that can shrink properly (fix min-content overflow) */
@media (min-width:600px) {
  .nm-form-box .nm-row.nm-2col {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  }
}
@media (min-width:900px) {
  .nm-form-box .nm-row.nm-3stack {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
}

/* Field wrappers obey cell width */
.nm-form-box .nm-field,
.nm-form-box p {
  width: 100%;
  max-width: 100%;
  overflow: visible; /* allow children to wrap instead of overflow */
}

/* CF7 control wrapper can shrink; critical for Safari */
.nm-form-box .wpcf7-form-control-wrap {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Text inputs */
.nm-form-box input[type="text"],
.nm-form-box input[type="email"],
.nm-form-box input[type="tel"],
.nm-form-box input[type="date"],
.nm-form-box input[type="number"],
.nm-form-box input[type="url"],
.nm-form-box select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Textareas */
.nm-form-box textarea,
.nm-form-box .nm-textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block;
}

/* Radio / checkbox pills wrap instead of pushing width */
.nm-form-box .wpcf7-list-item {
  max-width: 100%;
  white-space: normal;          /* allow wrapping */
}
.nm-form-box .wpcf7-list-item label {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;       /* long words won't overflow */
  overflow-wrap: anywhere;
}

/* If a layout container above the form has side padding removed,
   you can optionally clamp it by wrapping the shortcode in a div:
   <div class="nm-form-wrapper">[contact-form-7 ...]</div>
   Then add: */
.nm-form-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* =========================================
   MOBILE COMPACT SPACING (paste last)
   ========================================= */
@media (max-width:600px) {

  /* Smaller gutters + gaps */
  .nm-form-box {
    padding: 0 0.75rem 2rem;
    --nm-form-gap: 0.5rem;          /* field gap */
    --nm-form-section-gap: 1.25rem; /* section spacing */
    --nm-form-field-pad-y: 0.55rem; /* input vertical padding */
  }

  /* Headings closer */
  .nm-form-box h2,
  .nm-form-box .nm-title { margin-bottom: 1.25rem; }
  .nm-form-box h3 { margin-bottom: 0.75rem;         border-radius: 20px;
        background: var(--wp--preset--color--dark-green) !important;
        padding: 10px 10px;
        text-align: center;
        color: #fff;
    }

  /* Field wrappers closer */
  .nm-form-box .nm-field,
  .nm-form-box p { margin: var(--nm-form-gap) 0; }

  /* Label tighter to control */
  .nm-form-box label,
  .nm-form-box strong { margin-bottom: 0.2rem; }

  /* Grid row gaps tighter */
  .nm-form-box .nm-row { margin: var(--nm-form-gap) 0; gap: var(--nm-form-gap); }

  /* Smaller textareas */
  .nm-form-box textarea,
  .nm-form-box .nm-textarea { min-height: 90px; }

  /* Radio pills tighter */
  .nm-form-box .wpcf7-list-item {
    margin-inline-start: 0.5em;
    margin-block: 0.1em;
  }
}

/****************************************************
 * DAILY TRACKER – REMOVE <br> GAP & CONTROL SPACING
 ****************************************************/

/* 1) Hide any straggler <br> inside form labels (safety) */
.nm-form-box label br { display:none !important; }

/* 2) Make the CF7 control wrapper drop below label text */
.nm-form-box label > .wpcf7-form-control-wrap {
  display:block;
  margin-top:0.25rem;  /* tweak tighter/looser */
  width:100%;
  max-width:100%;
}

/* 3) Radio question titles (strong) spacing */
.nm-form-box .nm-field-radio strong {
  display:block;
  margin-bottom:0.25rem; /* tighten here */
  font-weight:600;
}

/* 4) Extra-tight mobile spacing (optional) */
@media (max-width:600px) {
  .nm-form-box label > .wpcf7-form-control-wrap {
    margin-top:0.2rem;
  }
  .nm-form-box .nm-field-radio strong {
    margin-bottom:0.2rem;
  }
}