:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
  --focus:#005758;
  --danger:#b91c1c;
}
*{ box-sizing:border-box; }

/* имитация body из чистого HTML (без вмешательства в тему WP) */
.cdio-reg-page{
  background:var(--bg);
  padding-top: 3rem;
padding-bottom: 2rem;
}
.topbar{
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
/* ВАЖНО: НЕ body, а только область формы */
.wrap{
  max-width:760px;
  margin:0 auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
}
#dietaryOther{
margin-top: 1rem;
}
.header{
  position:relative;
  min-height:64px;
  margin-bottom:16px;
}
.cdio-reg-page .logo{
display:none;
  position:absolute;
  left:0;
  top:0;
  height:56px;
  width:auto;
  object-fit:contain;
}
.titles{
  text-align:center;
  padding-top:4px;
}
.titles h1{
  margin:0;
  font-size:34px;
  font-weight:800;
}
.titles h2{
  margin:6px 0 0 0;
  font-size:16px;
  font-weight:600;
  color:var(--muted);
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  box-shadow:0 6px 20px rgba(0,0,0,0.06);
}

form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.field label{
  display:block;
  font-weight:600;
  margin-bottom:6px;
}
.req{ color:var(--danger); margin-left:6px; font-weight:700; }

.input, select, textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:10px;
  padding:11px 12px;
  font-size:15px;
  outline:none;
  background:#fff;
}
.input:focus, select:focus, textarea:focus{
  border-color:var(--focus);
  box-shadow:0 0 0 3px rgba(0, 87, 88, 0.15);
}
textarea{ min-height:100px; resize:vertical; }

.choice{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}
.choice .opt{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
}
.choice input{ margin:0; }

.icon{
  width:18px; height:18px;
  object-fit:contain;
  display:inline-block;
  opacity:0.9;
}

.with-icon{ position:relative; }
.with-icon img{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:18px; height:18px;
  opacity:0.85;
  pointer-events:none;
}
.with-icon input{ padding-left:40px; }

.error{
  color:var(--danger);
  font-size:13px;
  margin-top:6px;
  display:none;
}

.hidden{ display:none; }

.btn{
  margin-top:6px;
  border:0;
  border-radius:12px;
  padding:12px 14px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  background:var(--focus);
  color:#fff;
}
.btn:active{ transform:translateY(1px); }

/* Select2-like */
.cdio-s2{ position:relative; display:block; width:100%; }
.cdio-s2-hidden-accessible{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

.cdio-s2-selection{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  border:1px solid var(--border);
  border-radius:10px;
  padding:11px 12px;
  background:#fff;
  cursor:pointer;
}

.cdio-s2-open .cdio-s2-selection{
  border-color:var(--focus);
  box-shadow:0 0 0 3px rgba(0, 87, 88, 0.15);
}

.cdio-s2-rendered{ color:var(--text); }
.cdio-s2-arrow b{
  display:inline-block;
  width:0; height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid #6b7280;
  margin-left:10px;
}

.cdio-s2-dropdown{
  position:absolute;
  left:0; right:0;
  top:calc(100% + 6px);
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,0.10);
  z-index:50;
  overflow:hidden;
}

.cdio-s2-search{ display:block; padding:10px; border-bottom:1px solid var(--border); }

.cdio-s2-search-input{
  width:100%;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px 10px 40px;
  outline:none;
  background:
    url("") no-repeat 12px center / 18px 18px,
    #fff;
}

.cdio-s2-results{ max-height:220px; overflow:auto;display:block;overflow-y:scroll; }
.cdio-s2-results-list{ list-style:none; padding:6px; margin:0; }

.cdio-s2-option{
  padding:10px 10px;
  border-radius:10px;
  cursor:pointer;
}
.cdio-s2-option.is-active{ background:rgba(0,87,88,0.10); }
.cdio-s2-option.is-selected{ font-weight:700; }
.cdio-s2-option.is-disabled{ color:var(--muted); cursor:not-allowed; }

/* notices + honeypot */
.cdio-notice{ padding:10px; border-radius:10px; margin-bottom:12px; border:1px solid transparent; }
.cdio-ok{ background:#effdf3; border-color:#c7f3d1; }
.cdio-err{ background:#fff1f1; border-color:#ffd0d0; }
.cdio-hp{ display:none !important; }
