/* ============================================================
   Ninja Forms – LP Pages styling
   Covers:
     .ilp-nf-wrap  – Invisalign LP form (light beige card)
     .elp-nf-wrap  – Emergency LP form  (dark/translucent card)
   ============================================================ */

/* ─── Shared resets ───────────────────────────────────────── */
.ilp-nf-wrap .nf-form-cont,
.elp-nf-wrap .nf-form-cont {
  max-width: 100%;
}

.ilp-nf-wrap .nf-form-title,
.elp-nf-wrap .nf-form-title {
  display: none; /* title managed by heading above */
}

.ilp-nf-wrap .nf-before-form-content,
.elp-nf-wrap .nf-before-form-content {
  display: none;
}

/* ─────────────────────────────────────────────────────────── */
/*  INVISALIGN LP  (.ilp-nf-wrap)                             */
/* ─────────────────────────────────────────────────────────── */

/* Labels */
.ilp-nf-wrap .nf-field-label label,
.ilp-nf-wrap .nf-field-label .nf-label-span {
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  color: #58595b;
  margin-bottom: 4px;
  display: block;
  text-align: left;
}

/* All text-like inputs */
.ilp-nf-wrap .nf-field-element input[type="text"],
.ilp-nf-wrap .nf-field-element input[type="email"],
.ilp-nf-wrap .nf-field-element input[type="tel"],
.ilp-nf-wrap .nf-field-element input[type="number"],
.ilp-nf-wrap .nf-field-element textarea {
  background: #ffffff;
  border: none;
  border-bottom: 2px solid #cfb497;
  border-radius: 0;
  color: #260045;
  font-size: 0.9375rem;
  padding: 10px 4px;
  width: 100%;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
}

.ilp-nf-wrap .nf-field-element input[type="text"]:focus,
.ilp-nf-wrap .nf-field-element input[type="email"]:focus,
.ilp-nf-wrap .nf-field-element input[type="tel"]:focus,
.ilp-nf-wrap .nf-field-element input[type="number"]:focus,
.ilp-nf-wrap .nf-field-element textarea:focus {
  border-bottom-color: #441c2d;
}

/* Textarea */
.ilp-nf-wrap .nf-field-element textarea {
  min-height: 90px;
  resize: vertical;
}

/* Field rows */
.ilp-nf-wrap .nf-row,
.ilp-nf-wrap .nf-field-container {
  margin-bottom: 18px;
}

/* Error messages */
.ilp-nf-wrap .nf-error-msg {
  color: #c0392b;
  font-size: 0.75rem;
  margin-top: 3px;
}

/* Submit button */
.ilp-nf-wrap .nf-field-element input[type="button"],
.ilp-nf-wrap .nf-field-element input[type="submit"],
.ilp-nf-wrap input.ninja-forms-field[type="submit"] {
  display: block;
  width: auto;
  margin: 10px auto 0;
  background: #441c2d;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 9999px;
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.2s;
}

.ilp-nf-wrap .nf-field-element input[type="button"]:hover,
.ilp-nf-wrap .nf-field-element input[type="submit"]:hover,
.ilp-nf-wrap input.ninja-forms-field[type="submit"]:hover {
  background: #3a1625;
}

/* Success message */
.ilp-nf-wrap .nf-response-msg {
  color: #441c2d;
  font-weight: 600;
  text-align: center;
  padding: 12px 0;
}

/* Honeypot / hidden spam field – NF uses several class names */
.ilp-nf-wrap .nf-field-container.hidden-container,
.ilp-nf-wrap .nf-field-container.hp-wrap,
.ilp-nf-wrap .nf-field-container[class*="hp-"],
.ilp-nf-wrap .nf-field-container .nf-field-hp,
.ilp-nf-wrap .field-type-spam,
.ilp-nf-wrap .nf-field-container:has(input.nf-element[aria-label*="human"]),
.ilp-nf-wrap .nf-field-container:has(input[name*="_submit_test_"]) {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* ─────────────────────────────────────────────────────────── */
/*  EMERGENCY LP  (.elp-nf-wrap)                              */
/* Background: #cfb497 (warm gold/beige)                      */
/* ─────────────────────────────────────────────────────────── */

/* Labels */
.elp-nf-wrap .nf-field-label label,
.elp-nf-wrap .nf-field-label .nf-label-span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #260045;
  margin-bottom: 4px;
  display: block;
  text-align: left;
}

/* All text-like inputs */
.elp-nf-wrap .nf-field-element input[type="text"],
.elp-nf-wrap .nf-field-element input[type="email"],
.elp-nf-wrap .nf-field-element input[type="tel"],
.elp-nf-wrap .nf-field-element input[type="number"] {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  color: #260045;
  font-size: 0.9375rem;
  padding: 12px 20px;
  width: 100%;
  outline: none;
  box-shadow: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.elp-nf-wrap .nf-field-element input[type="text"]::placeholder,
.elp-nf-wrap .nf-field-element input[type="email"]::placeholder,
.elp-nf-wrap .nf-field-element input[type="tel"]::placeholder,
.elp-nf-wrap .nf-field-element input[type="number"]::placeholder {
  color: rgba(38, 0, 69, 0.6);
}

.elp-nf-wrap .nf-field-element input[type="text"]:focus,
.elp-nf-wrap .nf-field-element input[type="email"]:focus,
.elp-nf-wrap .nf-field-element input[type="tel"]:focus,
.elp-nf-wrap .nf-field-element input[type="number"]:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.5);
}

/* Textarea */
.elp-nf-wrap .nf-field-element textarea {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  color: #260045;
  font-size: 0.9375rem;
  padding: 12px 20px;
  min-height: 96px;
  width: 100%;
  outline: none;
  box-shadow: none;
  resize: vertical;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.elp-nf-wrap .nf-field-element textarea::placeholder {
  color: rgba(38, 0, 69, 0.6);
}

.elp-nf-wrap .nf-field-element textarea:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.5);
}

/* Select wrapper — needed for custom arrow */
.elp-nf-wrap .nf-field-element {
  position: relative;
}

/* Select */
.elp-nf-wrap .nf-field-element select {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  color: #260045;
  font-size: 0.9375rem;
  padding: 12px 44px 12px 20px; /* extra right padding for arrow */
  width: 100%;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23260045' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.elp-nf-wrap .nf-field-element select option {
  color: #260045;
  background: #cfb497;
}

/* Checkbox */
.elp-nf-wrap .nf-field-element input[type="checkbox"] {
  accent-color: #441c2d;
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.elp-nf-wrap .nf-field-label label {
  display: flex;
  align-items: center;
}

/* Field rows */
.elp-nf-wrap .nf-row,
.elp-nf-wrap .nf-field-container {
  margin-bottom: 6px;
}

/* Error messages */
.elp-nf-wrap .nf-error-msg {
  color: #7b1c1c;
  font-size: 0.75rem;
  margin-top: 3px;
}

/* Submit button */
.elp-nf-wrap .nf-field-element input[type="button"],
.elp-nf-wrap .nf-field-element input[type="submit"],
.elp-nf-wrap input.ninja-forms-field[type="submit"] {
  display: block;
  width: 100%;
  height: 61px;
  background: #441c2d;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 0 30px 0 30px;
  padding: 0 24px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}

.elp-nf-wrap .nf-field-element input[type="button"]:hover,
.elp-nf-wrap .nf-field-element input[type="submit"]:hover,
.elp-nf-wrap input.ninja-forms-field[type="submit"]:hover {
  background: #3a1625;
}

/* Success message */
.elp-nf-wrap .nf-response-msg {
  color: #260045;
  font-weight: 600;
  text-align: center;
  padding: 12px 0;
}

/* Honeypot / hidden spam field – NF uses several class names */
.elp-nf-wrap .nf-field-container.hidden-container,
.elp-nf-wrap .nf-field-container.hp-wrap,
.elp-nf-wrap .nf-field-container[class*="hp-"],
.elp-nf-wrap .nf-field-container .nf-field-hp,
.elp-nf-wrap .field-type-spam,
.elp-nf-wrap .nf-field-container:has(input.nf-element[aria-label*="human"]),
.elp-nf-wrap .nf-field-container:has(input[name*="_submit_test_"]) {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

.nf-after-form-content {
  display: none;
}
