/* Scope styles to the #join section so we don't affect other forms */
#join .wpforms-container {
  text-align: left; /* keep headings centered but fields not forced */
}

/* Stack on mobile, row on sm+ (approx Tailwind sm breakpoint) */
@media (min-width: 640px) {
  #join .wpforms-field-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem; /* ~gap-3 */
    align-items: center;
  }
}

/* Field look */
#join .wpforms-field,
#join .wpforms-field input[type="email"],
#join .wpforms-field input[type="text"] {
  margin: 0 !important;
}
#join .wpforms-field input[type="email"],
#join .wpforms-field input[type="text"]{
  height: 2.75rem;                /* ~h-11 */
  padding: 0 1rem;                 /* ~px-4 */
  border: 1px solid var(--border, #e5e7eb); /* matches border-border */
  border-radius: 0.5rem;           /* ~rounded-md */
  background: #fff;
  color: var(--foreground, #111827);
  outline: none;
}
#join .wpforms-field input[type="email"]:focus,
#join .wpforms-field input[type="text"]:focus {
  box-shadow: 0 0 0 2px rgba(59,130,246,0.4); /* ~ring-2 ring-primary/40 */
  border-color: rgba(59,130,246,0.4);
}

/* Hide default labels if your form only has one email field */
#join .wpforms-field-label { 
  display: none; 
}

/* Button look */
#join .wpforms-submit {
  height: 2.75rem;                 /* ~h-11 */
  padding: 0 1.5rem;               /* ~px-6 */
  border-radius: 0.5rem;           /* ~rounded-md */
  background: var(--warmth, #ea8a3b);
  color: var(--warmth-foreground, #fff);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); /* shadow-elegant-ish */
  border: none;
  cursor: pointer;
}
#join .wpforms-submit:hover { filter: brightness(0.95); }

/* Remove extra bottom spacing WPForms adds */
#join .wpforms-field,
#join .wpforms-submit-container {
  margin-bottom: 0 !important;
}

/* Center & restyle WPForms confirmation in the email capture section */
#join .wpforms-confirmation-container,
#join .wpforms-confirmation-container-full {
  text-align: center;
  background: transparent;      /* remove default green box look */
  border: 0;
  box-shadow: none;
  padding: 0.5rem 0 0;          /* small top spacing */
  margin: 0 auto;
  max-width: 46rem;              /* keep line length pleasant (optional) */
}

/* Tidy the paragraph inside the confirmation */
#join .wpforms-confirmation-container p,
#join .wpforms-confirmation-container-full p {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;            /* ~text-xl */
  line-height: 1.6;
  color: var(--foreground, #111827);
}
