/* SuperCognito v1.7.0 native theme layer
   Forms inherit the active WordPress theme. The plugin controls only layout,
   validation states and scan behavior. */
.scg-widget,
.scg-widget *{
  box-sizing:border-box;
}
.scg-widget{
  width:100%;
  max-width:100%;
  font:inherit;
  color:inherit;
}
.scg-widget :where(h1,h2,h3,h4,p,span,label,input,select,button){
  font-family:inherit;
  line-height:inherit;
}
.scg-widget-wizard .scg-wizard-shell,
.scg-widget-wizard .scg-single-form-shell{
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.scg-widget-wizard .scg-single-form,
.scg-widget .scg-native-form{
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  color:inherit;
}
.scg-widget .scg-single-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(.75rem,1.4vw,1.25rem);
  align-items:end;
}
.scg-widget .scg-field,
.scg-widget .scg-field span{
  font:inherit;
  color:inherit;
}
.scg-widget .scg-field{
  display:grid;
  gap:.4rem;
}
.scg-widget .scg-wide{
  grid-column:1/-1;
}
.scg-widget .scg-field em{
  color:var(--scg-primary,#C7FF38);
  font-style:normal;
  margin-left:.15rem;
}
.scg-widget .scg-field input,
.scg-widget .scg-field select{
  width:100%;
  max-width:100%;
  font:inherit;
  color:inherit;
}
.scg-widget .scg-submit-main{
  font:inherit;
  cursor:pointer;
}
.scg-widget .scg-submit-main{
  width:100%;
  margin-top:clamp(.85rem,1.7vw,1.35rem);
}
.scg-widget .scg-error{
  margin-top:.75rem;
  font:inherit;
  color:#ff6b6b;
}
.scg-widget .scg-field.invalid :where(input,select){
  outline:2px solid #ff6b6b;
  outline-offset:2px;
}
.scg-widget .scg-loading{
  width:100%;
  max-width:100%;
  margin:0;
  padding:clamp(1rem,2vw,1.5rem);
  border-radius:1rem;
  font:inherit;
}
@media (max-width:720px){
  .scg-widget .scg-single-grid{grid-template-columns:1fr;}
}

/* Inline scan form: email field + CTA on one line, matched fixed height */
.scg-widget .scg-inline-row{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  --scg-row-h:60px;
}
.scg-widget .scg-inline-row .scg-field{
  flex:1 1 auto;
  min-width:0;
  margin:0;
}
.scg-widget .scg-inline-row .scg-field input{
  width:100%;
  height:var(--scg-row-h)!important;
  min-height:var(--scg-row-h)!important;
  margin:0!important;
  padding:0 20px!important;
  box-sizing:border-box!important;
  line-height:normal!important;
  border:1px solid color-mix(in srgb, currentColor 24%, transparent)!important;
  border-radius:14px!important;
  background:color-mix(in srgb, currentColor 5%, transparent)!important;
  color:inherit!important;
  outline:none!important;
}
.scg-widget .scg-inline-row .scg-field input:focus,
.scg-widget .scg-inline-row .scg-field input:focus-visible{
  border-color:color-mix(in srgb, var(--scg-primary,#C7FF38) 65%, transparent)!important;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--scg-primary,#C7FF38) 22%, transparent)!important;
  outline:none!important;
}
.scg-widget .scg-inline-row .scg-submit-main{
  width:auto;
  height:var(--scg-row-h);
  min-height:var(--scg-row-h);
  flex-shrink:0;
  margin:0!important;
  padding:0 30px;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
@media (max-width:600px){
  .scg-widget .scg-inline-row{flex-direction:column;align-items:stretch;}
  .scg-widget .scg-inline-row .scg-submit-main{width:100%;}
}

/* Account forms (signup / login / reset) — theme-inherited, primary-accent button */
.scg-widget.scg-auth{max-width:420px;margin:0 auto;}
.scg-auth .scg-auth-form{display:grid;gap:1rem;}
.scg-auth .scg-auth-title{margin:0;font-size:1.5rem;}
.scg-auth .scg-auth-sub{margin:0;opacity:.7;}
.scg-auth .scg-field{display:grid;gap:.4rem;}
.scg-auth .scg-field span{font-size:.85rem;opacity:.8;}
.scg-auth .scg-field input{height:52px;padding:0 16px;border-radius:12px;border:1px solid color-mix(in srgb, currentColor 24%, transparent);background:color-mix(in srgb, currentColor 5%, transparent);color:inherit;font:inherit;outline:none;}
.scg-auth .scg-field input:focus{border-color:color-mix(in srgb, var(--scg-primary,#7C3AED) 65%, transparent);box-shadow:0 0 0 3px color-mix(in srgb, var(--scg-primary,#7C3AED) 22%, transparent);}
.scg-auth .scg-submit-main{height:52px;border:0;border-radius:12px;background:var(--scg-primary,#7C3AED);color:#fff;font-weight:600;margin-top:0;}
.scg-auth .scg-submit-main:disabled{opacity:.6;cursor:default;}
.scg-auth .scg-auth-alt{font-size:.9rem;opacity:.8;margin:0;}
.scg-auth .scg-auth-msg{color:#ff6b6b;margin:0;min-height:1em;font-size:.9rem;}
.scg-auth a{color:var(--scg-primary,#7C3AED);text-decoration:none;}
.scg-auth a:hover{text-decoration:underline;}
