/* José Pizarro — Newsletter Signup Block (Contacta.io) */
.jp-signup {
  --jp-band: #2C3020;
  --jp-coral: #E07060;
  --jp-text: #ffffff;
  --jp-muted: rgba(255, 255, 255, 0.6);
  --jp-border: rgba(255, 255, 255, 0.35);
  --jp-border-focus: rgba(255, 255, 255, 0.8);

  background: var(--jp-band);
  color: var(--jp-text);
  padding: 70px 10%;
  width: 100%;
}

.jp-signup, .jp-signup * { box-sizing: border-box; }

/* Full-width inner so the section's 10% padding is the only gutter (scoped to this block) */
.jp-signup .jp-signup__inner.container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.jp-signup__heading {
  font-family: "Mansalva", cursive;
  font-weight: 400;
  color: var(--jp-text);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 48px;
}

.jp-signup__form { width: 100%; }

/* ---------- Inputs ---------- */
.jp-signup__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
}
.jp-field { display: flex; flex-direction: column; }
.jp-field__label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--jp-text);
}
.jp-req { color: var(--jp-coral); }
.jp-field__input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--jp-border);
  color: var(--jp-text);
  font-size: 1rem;
  padding: 6px 0;
  border-radius: 0;
  transition: border-color 0.2s ease;
  width: 100%;
}
.jp-field__input:focus {
  outline: none;
  border-bottom-color: var(--jp-border-focus);
}
.jp-field__input.is-invalid { border-bottom-color: var(--jp-coral); }

/* ---------- Question labels ---------- */
.jp-signup__q {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 18px;
  color: var(--jp-text);
}

/* ---------- Locations ---------- */
.jp-signup__locations {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px 40px;
  align-items: start;
  margin-top: 48px;
}
.jp-checks--locations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}

/* ---------- Custom checkboxes (FontAwesome tick) ---------- */
.jp-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}
.jp-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.jp-check__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid var(--jp-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: border-color 0.2s ease;
}
.jp-check__box::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f00c"; /* fa-check */
  font-size: 12px;
  color: var(--jp-coral);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.jp-check input:checked + .jp-check__box { border-color: var(--jp-coral); }
.jp-check input:checked + .jp-check__box::after { opacity: 1; }
.jp-check input:focus-visible + .jp-check__box { outline: 2px solid var(--jp-border-focus); outline-offset: 2px; }
.jp-check__text { color: var(--jp-text); }

/* ---------- Subscribe + submit ---------- */
.jp-signup__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: 48px;
}
.jp-signup__subscribe { max-width: 720px; }
.jp-check--subscribe { margin-bottom: 14px; }
.jp-signup__privacy {
  color: var(--jp-muted);
  text-decoration: underline;
  font-size: 0.95rem;
}
.jp-signup__privacy:hover { color: var(--jp-text); }

.jp-signup__btn {
  background: var(--jp-coral);
  color: #fff;
  border: 0;
  border-radius: 40px;
  padding: 18px 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.jp-signup__btn:hover { filter: brightness(1.07); }
.jp-signup__btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- Feedback ---------- */
.jp-signup__feedback {
  margin-top: 26px;
  font-size: 1rem;
}
.jp-signup__feedback.is-error { color: var(--jp-coral); }
.jp-signup__feedback.is-success { color: var(--jp-text); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .jp-signup { padding: 54px 24px; }
  .jp-signup__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-signup__locations { grid-template-columns: 1fr; gap: 18px; }
  .jp-checks--locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-signup__bottom { flex-direction: column; align-items: stretch; }
  .jp-signup__action { width: 100%; }
  .jp-signup__btn { width: 100%; }
}
@media (max-width: 575.98px) {
  .jp-signup__grid { grid-template-columns: 1fr; }
  .jp-checks--locations { grid-template-columns: 1fr; }
}

/* ============================================================
   Contacta.io embedded form — themed to match the design
   (scoped to .jp-signup; FID 69e739f980c3fb6bcf502e34)
   ============================================================ */
.jp-signup .contacta-webform-body,
.jp-signup .contacta-webform-form,
.jp-signup .contacta-webform-table,
.jp-signup .contacta-row,
.jp-signup .contacta-col,
.jp-signup .input-field,
.jp-signup .data-block,
.jp-signup .input-block,
.jp-signup .email-holder { background: transparent !important; }

.jp-signup .contacta-webform-form { color: var(--jp-text); width: 100%; }

/* Layout: First name / Surname / E-mail across one row, rest full width */
.jp-signup .contacta-webform-table {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr) !important;
  column-gap: 40px;
  row-gap: 28px;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.jp-signup .contacta-row { margin: 0 !important; padding: 0 !important; display: block !important; }
.jp-signup .contacta-col { width: auto !important; max-width: none !important; padding: 0 !important; flex: none !important; }
.jp-signup .input-field { margin: 0 !important; }

/* Hide only the hidden pre-load field */
.jp-signup .contacta-row:has(input[name="preloadContact_string"]) { display: none !important; }

/* Full-width rows (locations + submit) */
.jp-signup .contacta-row:has(.input-field.multi),
.jp-signup .contacta-row:has(.submitBtn) { grid-column: 1 / -1; }

/* Field labels (regular fields + the DOB wrapper) */
.jp-signup .input-field > label,
.jp-signup .contacta-col > div > label {
  display: block;
  font-weight: 700;
  color: var(--jp-text);
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.jp-signup .required { color: var(--jp-coral); }

/* Date of Birth (day / month / year) selects */
.jp-signup .dob-date-time-dropdown .dropdown { display: flex; gap: 10px; }
.jp-signup .dob-date-time-dropdown select,
.jp-signup .dob-date-time-dropdown input {
  flex: 1 1 0;
  width: 100%;
  background: transparent !important;
  color: var(--jp-text) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--jp-border) !important;
  border-radius: 0 !important;
  padding: 6px 0 !important;
  outline: none;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.jp-signup .dob-date-time-dropdown select:focus,
.jp-signup .dob-date-time-dropdown input:focus { border-bottom-color: var(--jp-border-focus) !important; }
.jp-signup .dob-date-time-dropdown select option { color: #000; }
.jp-signup .dob-date-time-dropdown input::placeholder { color: var(--jp-muted); }
.jp-signup .dob-date-time-dropdown input::-webkit-outer-spin-button,
.jp-signup .dob-date-time-dropdown input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Text / email inputs -> underline style */
.jp-signup .input-block input,
.jp-signup .email-holder input {
  width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--jp-border) !important;
  border-radius: 0 !important;
  color: var(--jp-text) !important;
  padding: 6px 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.jp-signup .input-block input:focus,
.jp-signup .email-holder input:focus { border-bottom-color: var(--jp-border-focus) !important; }
.jp-signup .input-block input::placeholder,
.jp-signup .email-holder input::placeholder { color: var(--jp-muted); }

/* "Tick all that apply" hint */
.jp-signup .description, .jp-signup .description i { color: var(--jp-muted); font-style: normal; font-size: 0.9rem; }

/* Locations checkboxes */
.jp-signup .checkbox {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 8px;
}
/* "Select all" sits outside the grid — match the grid's row-gap */
.jp-signup .checkbox + .label-option { margin: 14px 0 0 !important; }
.jp-signup .label-option {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--jp-text) !important;
  font-weight: 400 !important;
}
.jp-signup .checkbox-option {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0 10px 0 0;
  padding: 0;
  background: transparent;
  border: 2px solid var(--jp-border);
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.jp-signup .checkbox-option:checked { border-color: var(--jp-coral); }
.jp-signup .checkbox-option:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--jp-coral);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.jp-signup .checkbox-option:focus-visible {
  outline: 2px solid var(--jp-border-focus);
  outline-offset: 2px;
}

/* Submit button -> coral pill */
.jp-signup .submitBtn { margin-top: 12px; }
.jp-signup .submitBtn .btn,
.jp-signup #contacta-webform-submission-69e739f980c3fb6bcf502e34 {
  background-color: var(--jp-coral) !important;
  color: #fff !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  line-height: 1 !important;
  padding: 18px 40px !important;
  border: 0 !important;
  border-radius: 40px !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}

/* Validation errors */
.jp-signup .error-msg, .jp-signup .error { color: var(--jp-coral) !important; }

/* Success message: white text, and show it only once */
.jp-signup .submission-message-info,
.jp-signup .submission-message-info i { color: var(--jp-text) !important; font-style: normal; }
.jp-signup .submission-message ~ .submission-message { display: none !important; }

/* Responsive */
@media (max-width: 991.98px) {
  .jp-signup .contacta-webform-table { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .jp-signup .checkbox { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .jp-signup .contacta-webform-table { grid-template-columns: 1fr !important; }
  .jp-signup .checkbox { grid-template-columns: 1fr; }
}
