/* Myntwork Landing – lead wizard */

/* ------------------------------------------------------------------ */
/* Inline card (hero)                                                   */
/* ------------------------------------------------------------------ */
.mynt-wizard {
  background: #fff;
  border-radius: var(--mynt-radius, 24px);
  padding: 28px 28px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  color: var(--mynt-ink, #1e274a);
  text-align: left;
}
/* Specificity bumped so Flatsome's .dark section colours don't win. */
.mynt-wizard .mynt-wizard__title,
.dark .mynt-wizard .mynt-wizard__title {
  margin: 0 0 6px;
  font-size: 1.3rem;
  color: var(--mynt-ink, #1e274a);
  opacity: 1;
}
.mynt-wizard .mynt-wizard__text,
.dark .mynt-wizard .mynt-wizard__text,
.dark .mynt-wizard .mw-note,
.dark .mynt-wizard .mw-hint {
  margin: 0 0 18px;
  color: var(--mynt-muted, #5b6480);
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 1;
}
.dark .mynt-wizard .mw-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  text-align: center;
}
.dark .mynt-wizard .mw-error {
  color: #b23a3a;
}

/* CF7 AntiSpam honeypots must never be visible. */
.mw-form input.fit-the-fullspace,
.mw-form input[autocomplete="fill"] {
  display: none !important;
}
.mynt-wizard.is-done .mynt-wizard__form {
  display: none;
}
.mynt-wizard__missing {
  padding: 12px;
  background: #fff3cd;
  border-radius: 8px;
}

/* ------------------------------------------------------------------ */
/* Shared form styling (inline + modal)                                 */
/* ------------------------------------------------------------------ */
.mw-form .wpcf7-form-control-wrap {
  display: block;
}
.mw-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.mw-form select,
.mw-form textarea {
  width: 100%;
  margin: 0;
  padding: 0 16px;
  min-height: 48px;
  background: var(--mynt-cream, #faf6f1);
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: none;
  color: var(--mynt-ink, #1e274a);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mw-form textarea {
  min-height: 110px;
  padding: 12px 16px;
}
.mw-form input:focus,
.mw-form select:focus,
.mw-form textarea:focus {
  outline: none;
  border-color: var(--mynt-green, #00997f);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 153, 127, 0.15);
}
.mw-form .mw-invalid input,
.mw-form .mw-invalid textarea,
.mw-form .wpcf7-not-valid {
  border-color: #d64545 !important;
  background: #fff !important;
}
.mw-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #d64545;
  font-size: 0.82rem;
}
.mw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mw-field--full {
  grid-column: 1 / -1;
}
.mw-field {
  margin: 0;
  min-width: 0;
}
.mw-field--inline {
  margin-top: 22px;
}
.mw-label {
  display: block;
  margin: 0 0 6px;
  color: var(--mynt-ink, #1e274a);
  font-size: 0.88rem;
  font-weight: 600;
}
.mw-label .mw-opt {
  font-weight: 500;
  color: var(--mynt-muted, #5b6480);
}
.mw-hint {
  margin: 0 0 16px;
  color: var(--mynt-muted, #5b6480);
  font-size: 0.88rem;
}
.mw-field .mw-hint {
  display: block;
  margin: 6px 0 0;
  font-size: 0.78rem;
}
.mw-q {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--mynt-ink, #1e274a);
}
.mw-q + [class*="wpcf7-form-control-wrap"],
.mw-hint + [class*="wpcf7-form-control-wrap"] {
  margin-top: 6px;
}
.mw-q + .mw-grid {
  margin-top: 10px;
}
.mw-note {
  margin: 12px 0 0;
  color: var(--mynt-muted, #5b6480);
  font-size: 0.8rem;
  text-align: center;
}
.mw-error {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdecec;
  color: #b23a3a;
  font-size: 0.88rem;
}
.mw-error[hidden] {
  display: none;
}

/* Buttons */
.mw-btn,
.mw-form .mw-btn,
.mw-form input.mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 24px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.mw-btn--primary,
.mw-form input.mw-btn--primary {
  width: 100%;
  background: var(--mynt-green, #00997f);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 153, 127, 0.25);
}
.mw-btn--primary:hover,
.mw-form input.mw-btn--primary:hover {
  background: var(--mynt-green-dark, #007a66);
  color: #fff;
  transform: translateY(-1px);
}
.mw-btn--ghost {
  background: transparent;
  color: var(--mynt-ink, #1e274a);
  padding-left: 12px;
  padding-right: 12px;
}
.mw-btn--ghost:hover {
  color: var(--mynt-green, #00997f);
}
.mw-form .mw-start,
.mynt-wizard .mw-start {
  margin-top: 18px;
}
.mw-step--contact .mw-grid {
  margin-bottom: 0;
}

/* Choice chips (CF7 checkbox / radio) */
.mw-form .wpcf7-checkbox,
.mw-form .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
}
.mw-form .wpcf7-list-item {
  display: block;
  margin: 0;
}
.mw-form .wpcf7-list-item label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 18px 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(30, 39, 74, 0.14);
  background: #fff;
  color: var(--mynt-ink, #1e274a);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.mw-form .wpcf7-list-item label:hover {
  border-color: var(--mynt-green, #00997f);
  transform: translateY(-1px);
}
.mw-form .wpcf7-list-item input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid rgba(30, 39, 74, 0.3);
  border-radius: 6px;
  background: #fff;
  display: grid;
  place-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mw-form .wpcf7-radio .wpcf7-list-item input {
  border-radius: 50%;
}
.mw-form .wpcf7-list-item input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #fff;
  transform: scale(0);
  transition: transform 0.15s ease;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.mw-form .wpcf7-radio .wpcf7-list-item input::before {
  clip-path: none;
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.mw-form .wpcf7-list-item input:checked {
  background: var(--mynt-green, #00997f);
  border-color: var(--mynt-green, #00997f);
}
.mw-form .wpcf7-list-item input:checked::before {
  transform: scale(1);
}
.mw-form .wpcf7-list-item label:has(input:checked) {
  border-color: var(--mynt-green, #00997f);
  background: rgba(0, 153, 127, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 153, 127, 0.12);
}
.mw-form .wpcf7-list-item input:focus-visible {
  outline: 2px solid var(--mynt-green, #00997f);
  outline-offset: 2px;
}
.mw-form .wpcf7-radio .wpcf7-list-item {
  flex: 1 1 calc(50% - 10px);
}
.mw-form .wpcf7-radio .wpcf7-list-item label {
  height: 100%;
}
.mw-form .wpcf7-list-item-label {
  flex: 1 1 auto;
}

/* File input */
.mw-form input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px dashed rgba(30, 39, 74, 0.25);
  border-radius: 12px;
  background: var(--mynt-cream, #faf6f1);
  font-size: 0.9rem;
  color: var(--mynt-muted, #5b6480);
}
.mw-form .has-file input[type="file"] {
  border-color: var(--mynt-green, #00997f);
}
.mw-file-name {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--mynt-green-dark, #007a66);
  font-weight: 600;
}
.mw-submit {
  margin-top: 22px;
}
/* Inside the modal the nav "Next" button submits; keep the real submit
   button in the DOM (CF7 needs it) but out of sight. */
.mw-dialog .mw-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
/* CF7's spinner is attached next to the hidden submit; show our own. */
.mw-dialog.is-submitting .mw-nextbtn--submit {
  color: transparent;
  position: relative;
}
.mw-dialog.is-submitting .mw-nextbtn--submit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mw-spin 0.7s linear infinite;
}
@keyframes mw-spin {
  to {
    transform: rotate(360deg);
  }
}

/* CF7 response output: show only for errors (success has its own panel) */
.mw-form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 0 !important;
  border-radius: 12px;
  background: #fdecec;
  color: #b23a3a;
  font-size: 0.9rem;
}
.mw-form.sent .wpcf7-response-output {
  display: none;
}
.mw-form .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

/* Steps */
.mw-step[hidden] {
  display: none;
}
.mw-step.mw-anim {
  animation: mw-step-in 0.35s ease both;
}
@keyframes mw-step-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* Modal                                                                */
/* ------------------------------------------------------------------ */
html.mw-lock,
html.mw-lock body {
  overflow: hidden;
}
.mw-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 39, 74, 0.72);
  backdrop-filter: blur(4px);
  animation: mw-fade 0.2s ease both;
}
.mw-overlay[hidden] {
  display: none;
}
@keyframes mw-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.mw-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: var(--mynt-ink, #1e274a);
  text-align: left;
  animation: mw-pop 0.25s ease both;
}
@keyframes mw-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
}
.mw-head__title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--mynt-muted, #5b6480);
  text-transform: uppercase;
}
.mw-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mynt-cream, #faf6f1);
  color: var(--mynt-ink, #1e274a);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.mw-close:hover {
  background: var(--mynt-sand, #efe9e1);
}

/* Progress */
.mw-progress-wrap {
  padding: 14px 24px 0;
}
.mw-progress {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.mw-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
  color: var(--mynt-muted, #5b6480);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}
.mw-progress__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mynt-cream, #faf6f1);
  color: var(--mynt-muted, #5b6480);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.mw-progress__item.is-current {
  color: var(--mynt-ink, #1e274a);
}
.mw-progress__item.is-current .mw-progress__dot {
  background: var(--mynt-navy, #1e274a);
  color: #fff;
  transform: scale(1.1);
}
.mw-progress__item.is-done .mw-progress__dot {
  background: var(--mynt-green, #00997f);
  color: #fff;
}
.mw-progress__item.is-done .mw-progress__dot::before {
  content: "✓";
}
.mw-progress__item.is-done .mw-progress__dot {
  font-size: 0;
}
.mw-progress__item.is-done .mw-progress__dot::before {
  font-size: 0.8rem;
}
.mw-progress__label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
}
.mw-progress__bar {
  height: 4px;
  border-radius: 999px;
  background: var(--mynt-sand, #efe9e1);
  overflow: hidden;
}
.mw-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mynt-green, #00997f), #37c7a9);
  transition: width 0.35s ease;
}

.mw-architect {
  margin: 12px 24px 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 153, 127, 0.08);
  color: var(--mynt-green-dark, #007a66);
  font-size: 0.85rem;
}
.mw-architect[hidden] {
  display: none;
}

/* Body / nav */
.mw-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px 24px 8px;
}
.mw-body .mw-step--contact .mw-note,
.mw-body .mw-step--contact .mw-start,
.mw-btn[hidden] {
  display: none !important;
}
.mw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px 20px;
  border-top: 1px solid rgba(30, 39, 74, 0.08);
}
.mw-nav[hidden] {
  display: none;
}
.mw-nav .mw-btn--primary {
  width: auto;
  min-width: 140px;
}
.mw-nav__counter {
  color: var(--mynt-muted, #5b6480);
  font-size: 0.82rem;
  font-weight: 600;
}
.mw-dialog.is-submitting .mw-nav,
.mw-dialog.is-submitting .mw-submit {
  opacity: 0.6;
  pointer-events: none;
}

/* Success */
.mw-success {
  padding: 48px 32px 40px;
  text-align: center;
}
.mw-success[hidden] {
  display: none;
}
.mw-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--mynt-green, #00997f);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}
.mw-success h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: var(--mynt-ink, #1e274a);
}
.mw-success p {
  margin: 0 auto 24px;
  max-width: 440px;
  color: var(--mynt-muted, #5b6480);
}
.mw-success .mw-btn--primary {
  width: auto;
  display: inline-flex;
}

/* ------------------------------------------------------------------ */
/* Mobile                                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 599px) {
  .mynt-wizard {
    padding: 22px 18px 18px;
  }
  .mw-grid {
    grid-template-columns: 1fr;
  }
  .mw-overlay {
    padding: 0;
    align-items: stretch;
  }
  .mw-dialog {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
  }
  .mw-head {
    padding: 16px 18px 0;
  }
  .mw-progress-wrap,
  .mw-body,
  .mw-nav {
    padding-left: 18px;
    padding-right: 18px;
  }
  .mw-progress__label {
    display: none;
  }
  .mw-progress__item.is-current .mw-progress__label {
    display: block;
  }
  .mw-q {
    font-size: 1.2rem;
  }
  .mw-form .wpcf7-radio .wpcf7-list-item {
    flex-basis: 100%;
  }
  .mw-nav .mw-btn--primary {
    min-width: 0;
    flex: 1 1 auto;
  }
}
