/*
 * Medicare Pal form kit -- the one look every request form on both sites
 * shares (QA note of 2 Oct 2026: "use the form at /agent/marketing/badges as
 * a template and replicate it for all other forms on medicarepal.com and
 * accounts.medicarepal.com").
 *
 * The values are the agent panel's Verified Badges help form, measured: the
 * #eeeae5 panel, white 8px fields, the round-cornered tick box, the yellow
 * Send button, the red error list and the thank-you card.
 *
 * TWO IDENTICAL COPIES -- edit both, byte for byte:
 *   laravel/public/assets/css/mcp-forms.css
 *   files/wordpress/medicarepal-agent-profiles/assets/mcp-forms.css
 * (FormKitTest fails when they differ.) Behaviour lives in mcp-forms.js.
 *
 * Every rule is scoped under .mcp-form / .mcp-form-sent, and set in full
 * rather than inherited, so the theme's page stylesheets (contact.css,
 * agent.css ...) and the agent panel's style.css cannot bend it.
 */

.mcp-form,
.mcp-form *,
.mcp-form-sent,
.mcp-form-sent * {
  box-sizing: border-box;
}

.mcp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 30px;
  border: 0;
  border-radius: 8px;
  background: #eeeae5;
  font-family: "Inter", sans-serif;
  color: #0b3948;
  text-align: left;
}
.mcp-form[hidden],
.mcp-form-sent[hidden] {
  display: none !important;
}

/* ---- Fields --------------------------------------------------------------- */

.mcp-form .mcp-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 14px;
  margin: 0;
  padding: 0;
}
.mcp-form .mcp-form__field {
  display: block;
  grid-column: span 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.mcp-form .mcp-form__field--full,
.mcp-form .mcp-form__heading,
.mcp-form .mcp-form__note {
  grid-column: 1 / -1;
}

.mcp-form .mcp-form__input {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #d0cbb8;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  color: #0b3948;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mcp-form .mcp-form__input::placeholder {
  color: #b0a898;
  opacity: 1;
}
.mcp-form .mcp-form__input:focus {
  border-color: #0b3948;
  box-shadow: 0 0 0 3px rgba(11, 57, 72, 0.08);
}
.mcp-form textarea.mcp-form__input {
  min-height: 110px;
  resize: vertical;
}
.mcp-form select.mcp-form__input {
  padding-right: 48px;
  background: #fff url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230b3948' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center;
  cursor: pointer;
}
/* Nothing chosen yet: its first, empty option reads as a placeholder. */
.mcp-form select.mcp-form__input:has(option[value=""]:checked) {
  color: #b0a898;
}
.mcp-form select.mcp-form__input option {
  color: #0b3948;
}

.mcp-form .mcp-form__heading {
  margin: 6px 0 0;
  padding: 0;
  font-family: "Averia Serif Libre", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #0b3948;
}
.mcp-form .mcp-form__heading > * {
  margin: 0;
  font: inherit;
  color: inherit;
}
.mcp-form .mcp-form__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #3e4552;
}
.mcp-form .mcp-form__note a {
  color: #e8a23a;
  text-decoration: underline;
}

/* ---- Tick box ------------------------------------------------------------- */

.mcp-form .mcp-form__check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #0b3948;
  text-transform: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.mcp-form .mcp-form__checkbox {
  -webkit-appearance: none;
  appearance: none;
  position: static;
  flex-shrink: 0;
  display: block;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid #dde3e6;
  border-radius: 8px;
  background-color: #f3f8fa;
  opacity: 1;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.mcp-form .mcp-form__checkbox:checked {
  border-color: #0b3948;
  background: #0b3948 url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 11.0398L10.9762 15L17 9' stroke='white' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
}
.mcp-form .mcp-form__checkbox:focus-visible {
  outline: 2px solid #0b3948;
  outline-offset: 2px;
}
.mcp-form .mcp-form__check-label {
  display: block;
  padding-top: 2px;
}
.mcp-form .mcp-form__check-label p,
.mcp-form .mcp-form__check-label div {
  margin: 0;
  font: inherit;
  color: inherit;
}
.mcp-form .mcp-form__check-label a {
  color: #e8a23a;
  text-decoration: underline;
}
.mcp-form .mcp-form__check-label strong {
  display: block;
  font-weight: 600;
}

/* ---- Errors --------------------------------------------------------------- */

.mcp-form .mcp-form__field.is-invalid .mcp-form__input {
  border-color: #c0392b;
  background-color: #fffafa;
}
.mcp-form .mcp-form__field.is-invalid .mcp-form__input:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.mcp-form .mcp-form__check.is-invalid .mcp-form__checkbox {
  border-color: #c0392b;
  background-color: #fff5f5;
}

.mcp-form .mcp-form__errors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  background: #fff5f5;
  list-style: none;
}
.mcp-form .mcp-form__errors[hidden] {
  display: none;
}
.mcp-form .mcp-form__errors li {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #c0392b;
  list-style: none;
}
.mcp-form .mcp-form__errors li::before {
  content: '\2022\00a0';
}

/* ---- Bottom row and button ------------------------------------------------ */

.mcp-form .mcp-form__bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 0;
}
.mcp-form .mcp-form__submit,
.mcp-form-sent .mcp-form-sent__again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 12px 24px;
  border: 0;
  border-radius: 8px;
  background: #ffd470;
  box-shadow: none;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  color: #0b3948;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.mcp-form .mcp-form__submit {
  align-self: flex-end;
}
.mcp-form .mcp-form__submit:hover,
.mcp-form .mcp-form__submit:focus-visible,
.mcp-form-sent .mcp-form-sent__again:hover,
.mcp-form-sent .mcp-form-sent__again:focus-visible {
  background: #0b3948;
  color: #fff;
}
.mcp-form .mcp-form__submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Honeypot: off-screen and out of the tab order, so only a bot fills it. */
.mcp-form .mcp-form__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- One-line variant (an email and a button, e.g. a subscription) ------- */

.mcp-form.mcp-form--inline .mcp-form__inline {
  display: flex;
  gap: 14px;
}
.mcp-form.mcp-form--inline .mcp-form__inline .mcp-form__field {
  flex: 1 1 auto;
}
.mcp-form.mcp-form--inline .mcp-form__inline .mcp-form__submit {
  align-self: stretch;
}

/* ---- Compact variant: the same form, smaller, for popups ------------------ */
/* QA note of 29 Sep 2026: the profile's Request a Call / Message popups must
   fit a laptop screen without hiding the Send button. */

.mcp-form.mcp-form--compact {
  gap: 14px;
  padding: 20px;
}
.mcp-form.mcp-form--compact .mcp-form__grid {
  gap: 12px 12px;
}
.mcp-form.mcp-form--compact .mcp-form__input {
  padding: 11px 16px;
  font-size: 15px;
}
.mcp-form.mcp-form--compact textarea.mcp-form__input {
  min-height: 88px;
}
.mcp-form.mcp-form--compact .mcp-form__bottom {
  gap: 12px;
  margin-top: 0;
}
.mcp-form--compact + .mcp-form-sent {
  padding: 28px 20px;
}

/* ---- The thank-you card that takes the form's place ---------------------- */

.mcp-form-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 40px 24px;
  border: 1px solid #e3f3e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(11, 57, 72, 0.06);
  font-family: "Inter", sans-serif;
  text-align: center;
  color: #0b3948;
  outline: none;
}
.mcp-form-sent .mcp-form-sent__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e3f3e7;
  color: #1c6b34;
}
.mcp-form-sent .mcp-form-sent__icon svg {
  display: block;
}
.mcp-form-sent .mcp-form-sent__title {
  margin: 0;
  font-family: "Averia Serif Libre", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  color: #0b3948;
}
.mcp-form-sent .mcp-form-sent__text {
  max-width: 460px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #3e4552;
}
.mcp-form-sent .mcp-form-sent__again {
  margin-top: 8px;
}

/* ---- Smaller screens (the template's breakpoints) ------------------------ */

@media (max-width: 991.98px) {
  .mcp-form .mcp-form__input {
    padding: 13px 20px;
    font-size: 16px;
  }
}
@media (max-width: 767.98px) {
  .mcp-form {
    padding: 20px;
  }
  .mcp-form .mcp-form__grid {
    grid-template-columns: 1fr;
  }
  .mcp-form .mcp-form__bottom {
    align-items: stretch;
    gap: 12px;
  }
  .mcp-form .mcp-form__submit {
    align-self: stretch;
  }
  .mcp-form.mcp-form--inline .mcp-form__inline {
    flex-direction: column;
  }
  .mcp-form-sent {
    padding: 32px 20px;
  }
}
