/*
Theme Name: MTT Active
Theme URI: https://mtt.nhkdevlabs.com/
Author: MTT Active
Description: A focused block theme for MTT Active services, events, retreats and community programmes.
Version: 1.0.24
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: mtt-active
*/

.mtt-interest-form-frame {
  height: 464px;
}

.mtt-native-interest-form {
  display: grid;
  align-content: start;
  gap: 26px;
  min-width: 0;
}

.mtt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mtt-form-field:first-child {
  grid-column: 1 / -1;
}

.mtt-form-field,
.mtt-form-choices {
  min-width: 0;
  margin: 0;
}

.mtt-form-field {
  display: grid;
  gap: 9px;
}

.mtt-form-field > span,
.mtt-form-choices legend {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mtt-form-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: 0;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.mtt-form-field input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(194, 174, 211, 0.12);
}

.mtt-form-choices {
  border: 0;
  padding: 0;
}

.mtt-form-choices legend {
  margin-bottom: 12px;
}

.mtt-form-choices > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mtt-form-choice {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.mtt-form-choice:has(input:checked) {
  border-color: var(--accent-strong);
  background: rgba(194, 174, 211, 0.1);
  color: var(--text);
}

.mtt-form-choice input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--accent-strong);
}

.mtt-form-choice span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.mtt-form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.mtt-form-status {
  min-height: 1.35em;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.mtt-form-status[data-state="error"] {
  color: #f0a5a5;
}

.mtt-form-status[data-state="success"] {
  color: var(--accent-strong);
}

.mtt-form-submit {
  min-height: 54px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 14px 22px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms ease, opacity 220ms ease;
}

.mtt-form-submit:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
}

.mtt-form-submit:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.mtt-payment-dialog {
  width: min(820px, calc(100vw - 48px));
}

.mtt-payment-dialog-panel {
  grid-template-columns: minmax(230px, 0.72fr) minmax(340px, 1.28fr);
}

.mtt-payment-options {
  display: grid;
  gap: 12px;
  align-content: start;
}

.mtt-payment-option {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 3px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 260ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.mtt-payment-option:hover {
  transform: translateX(4px);
  border-color: var(--accent-strong);
  background: var(--surface-strong);
}

.mtt-payment-option strong {
  grid-row: 1 / span 2;
  font-family: var(--display);
  font-size: 2.15rem;
  line-height: 1;
}

.mtt-payment-option span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mtt-payment-option small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

@media (max-width: 840px) {
  .mtt-form-grid,
  .mtt-form-choices > div {
    grid-template-columns: 1fr;
  }

  .mtt-payment-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    overflow-x: hidden;
  }

  .mtt-payment-dialog-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
    padding: 56px 16px 18px;
  }

  .mtt-payment-dialog-panel .mtt-dialog-heading > p {
    margin-bottom: 10px;
  }

  .mtt-payment-dialog-panel .mtt-dialog-heading h2 {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    line-height: 0.9;
    white-space: nowrap;
  }

  .mtt-payment-dialog-panel .mtt-dialog-heading > span {
    margin-top: 10px;
  }

  .mtt-payment-options {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .mtt-payment-option {
    width: 100%;
    min-width: 0;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 11px 12px;
  }

  .mtt-payment-option strong {
    font-size: 1.65rem;
  }

  .mtt-payment-option span {
    min-width: 0;
    gap: 6px;
    font-size: 0.66rem;
  }

  .mtt-payment-option small {
    grid-column: 2;
    font-size: 0.6rem;
  }
}

@media (max-width: 380px) {
  .mtt-payment-dialog-panel {
    padding-inline: 12px;
  }

  .mtt-payment-dialog-panel .mtt-dialog-heading h2 {
    font-size: 2.1rem;
  }

  .mtt-payment-option {
    grid-template-columns: 52px minmax(0, 1fr);
    padding-inline: 10px;
  }
}
