/* ============================
   Mandala → Ninja Forms styling
   Target a single form: .mandala-contact-form
   Drop the prefix if you want sitewide styling.
   ============================ */

/* Form wrapper */
.mandala-contact-form.nf-form-cont {
  /* keeps the form airy against your gradient backgrounds */
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: 0;
  max-width: 100%;
}

/* Field rows */
.nf-field-container {
  margin-bottom: 0.9rem; /* tight vertical rhythm like your demo */
}

/* Labels (hidden by design on that page; keep accessible if you’re not using placeholders) */
.nf-field-label label {
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: .4rem;
}

/* Text inputs + textarea */
.nf-field-element input[type="text"],
.nf-field-element input[type="email"],
.nf-field-element input[type="tel"],
.nf-field-element input[type="url"],
.nf-field-element input[type="number"],
.nf-field-element textarea,
.nf-field-element select {
  width: 100%;
  font: inherit;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  color: var(--wp--preset--color--primary);
  background: color-mix(in srgb, var(--wp--preset--color--light-sand), white 12%);
  /* rounded, soft “bar” look */
  border: 0;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  /* faint top/bottom hairlines like the screenshot */
  box-shadow:
    inset 0 1px 0 rgba(0,0,0,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.06);
  outline: none;
  transition: box-shadow .2s ease, background .2s ease, transform .08s ease;
}

/* Focus states (accessible + on-brand) */
.nf-field-element input:focus,
.nf-field-element textarea:focus,
.nf-field-element select:focus {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--wp--preset--color--2025-pink), white 65%),
    inset 0 1px 0 rgba(0,0,0,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.06);
  background: color-mix(in srgb, var(--wp--preset--color--light-sand), white 4%);
}

/* Placeholder tone similar to your form */
::placeholder {
  color: color-mix(in srgb, var(--wp--preset--color--primary), white 55%);
  opacity: 1; /* ensure consistent across browsers */
}

/* Error styles */
.nf-error .nf-field-element input,
.nf-error .nf-field-element textarea,
.nf-error .nf-field-element select {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--wp--preset--color--secondary), white 65%),
    inset 0 1px 0 rgba(0,0,0,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.06);
}
.nf-error-msg {
  color: var(--wp--preset--color--secondary);
  font-weight: 600;
  margin-top: .4rem;
}

/* Submit button → bold, dark pill like “Let’s talk” */
input[type="submit"],
.nf-field-element input[type="button"] {
  background: var(--wp--preset--color--primary); /* #13191E */
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem);
  line-height: 1;
  border: 0;
  border-radius: 2rem;
  padding: 1rem 1.4rem 1.05rem;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0,0,0,0.2);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}

.light input[type="submit"],
.light .nf-field-element input[type="button"] {
  background: var(--wp--preset--color--light-sand); /* #13191E */
  color: var(--wp--preset--color--primary);
}

/* Optional: add a right-arrow “badge” with a pseudo element (no extra markup) */
input[type="submit"]::after {
  content: "➜";
  display: inline-block;
  margin-left: .65rem;
  font-weight: 900;
  opacity: .95;
}

/* Hover/active */
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.24);
}
input[type="submit"]:active {
  transform: translateY(0);
}

/* Success message */
.nf-response-msg {
  background: color-mix(in srgb, var(--wp--preset--color--mint), white 85%);
  color: var(--wp--preset--color--primary);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Accessibility: ensure visible focus on the button for keyboard users */
input[type="submit"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wp--preset--color--2025-pink), white 40%);
  outline-offset: 3px;
}

/* Mandala custom */
.nf-form-cont {
	width: 100%;
}
.nf-form-fields-required {
	display: none;
}

.light .nf-response-msg {
	background: #0000004d;
    color: var(--wp--preset--color--light-sand);
    border: 2px solid var(--wp--preset--color--light-pink);
}
}


/* input fields at 50% "flex" */
/* Flatten NF's inner wrappers so the layout can control direct children */
.mandala-contact-form .nf-row,
.mandala-contact-form .nf-cell { display: contents; }

/* Grid container (mobile = 1 col) */
.mandala-contact-form .nf-form-layout,
.mandala-contact-form .nf-fields-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Neutralize NF defaults; full-width by default */
.mandala-contact-form .nf-field-container {
  float: none !important;
  width: auto !important;
  min-width: 0;
  grid-column: 1 / -1;
}

/* ≥768px: two columns; text + email are half, others full */
@media (min-width: 768px) {
  .mandala-contact-form .nf-form-layout,
  .mandala-contact-form .nf-fields-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* half-width fields */
  .mandala-contact-form .nf-field-container.type-textbox,
  .mandala-contact-form .nf-field-container.type-email {
    grid-column: span 1;
  }

  /* full-width fields */
  .mandala-contact-form .nf-field-container.type-textarea,
  .mandala-contact-form .nf-field-container.type-submit,
  .mandala-contact-form .nf-field-container.list-checkbox,
  .mandala-contact-form .nf-field-container.list-radio {
    grid-column: 1 / -1;
  }
}

