@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ── Design tokens ── */
:root {
  --mmt-accent:       #008d97;
  --mmt-accent-dark:  #007880;
  --mmt-bg:           #1c1f21;
  --mmt-field-bg:     #2a2d2f;
  --mmt-field-focus:  #333638;
  --mmt-text:         #ffffff;
  --mmt-muted:        #8a9099;
  --mmt-error:        #e06060;
  --mmt-radius:       6px;
}

/* ── Wrapper ── */
.mmt-quote-form-wrap {
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.mmt-qf-inner {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

/* ── Heading ── */
.mmt-qf-title {
  font-family: 'Inter', sans-serif;
  color: var(--mmt-accent);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 6px;
  line-height: 1.2;
}

.mmt-qf-subtitle {
  font-family: 'Inter', sans-serif;
  color: var(--mmt-text);
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 22px;
}

/* ── Form-level error banner ── */
.mmt-qf-error-msg {
  background-color: rgba(224, 96, 96, 0.12);
  border: 1px solid var(--mmt-error);
  color: var(--mmt-error);
  padding: 12px 14px;
  border-radius: var(--mmt-radius);
  margin-bottom: 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

/* ── Form layout ── */
.mmt-qf-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mmt-qf-field {
  display: flex;
  flex-direction: column;
}

/* ── Inputs, selects, textarea ── */
.mmt-qf-field input,
.mmt-qf-field select,
.mmt-qf-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  background-color: var(--mmt-field-bg);
  color: var(--mmt-text);
  border: 1px solid transparent;
  border-radius: var(--mmt-radius);
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  outline: none;
  transition: background-color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.mmt-qf-field input::placeholder,
.mmt-qf-field textarea::placeholder {
  color: var(--mmt-muted);
}

.mmt-qf-field input:focus,
.mmt-qf-field select:focus,
.mmt-qf-field textarea:focus {
  background-color: var(--mmt-field-focus);
  border-color: var(--mmt-accent);
}

/* ── Select ── */
.mmt-qf-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238a9099' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.mmt-qf-field select option {
  background-color: #2a2d2f;
  color: var(--mmt-text);
}

.mmt-qf-field select option[value=""] {
  color: var(--mmt-muted);
}

/* ── Textarea ── */
.mmt-qf-field textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── Field-level error text ── */
.mmt-qf-error {
  font-family: 'Inter', sans-serif;
  color: var(--mmt-error);
  font-size: 12px;
  margin-top: 4px;
  display: none;
  line-height: 1.3;
}

.mmt-qf-error:not(:empty) {
  display: block;
}

/* ── Screen-reader-only labels ── */
.mmt-qf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── City + State inline row ── */
.mmt-qf-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.mmt-qf-field--city {
  flex: 1;
}

.mmt-qf-field--state {
  flex: 0 0 82px;
}

.mmt-qf-field--state select {
  padding-right: 30px;
}

/* ── reCAPTCHA ── */
.g-recaptcha {
  margin-top: 4px;
}

/* ── Submit button ── */
.mmt-qf-submit {
  font-family: 'Inter', sans-serif !important;
  background-color: var(--mmt-accent) !important;
  border: none !important;
  border-radius: var(--mmt-radius) !important;
  color: #ffffff !important;
  cursor: pointer;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  padding: 15px 20px !important;
  text-transform: uppercase;
  width: 100% !important;
  margin-top: 8px;
  transition: background-color 0.2s;
  display: block;
  box-sizing: border-box;
}

.mmt-qf-submit:hover,
.mmt-qf-submit:focus {
  background-color: var(--mmt-accent-dark) !important;
}

/* ── Security note ── */
.mmt-qf-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-family: 'Inter', sans-serif;
  color: var(--mmt-muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}

.mmt-qf-lock {
  flex-shrink: 0;
  filter: invert(55%) sepia(10%) saturate(300%) hue-rotate(170deg);
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════
   Site-wide utility classes (used outside the form)
   ═══════════════════════════════════════════════ */

.mobile-only  { display: block; }
.desktop-only { display: none; }

@media only screen and (min-width: 640px) {
  .mobile-only  { display: none; }
  .desktop-only { display: block; }
  a.desktop-only { display: inline-block; }
}

.max-600 { max-width: 600px; }

/* ── Benefits highlight block (used in page editor) ── */
.section-benefits-highlight {
  margin-top: 40px;
  position: relative;
  z-index: 20;
  gap: 10px;
  padding: 0 40px !important;
}
.section-benefits-highlight .wp-block-column {
  border-radius: 6px;
  border: 2px solid #008d97;
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
}
.section-benefits-highlight .wp-block-column i {
  font-size: 30px;
  text-align: center;
  color: #008d97;
}
.section-benefits-highlight .wp-block-column h3 {
  font-size: 22px;
  margin: 0;
}
@media only screen and (min-width: 780px) {
  .section-benefits-highlight {
    margin-top: -30px;
    gap: 2em;
  }
}

/* ── MMT Advantage block (used in page editor) ── */
.mmt-advantage figure { margin-top: 0; }
.mmt-advantage i { text-align: center; font-size: 40px; }
.mmt-advantage h2 {
  color: #006a72;
  font-size: 30px;
  line-height: 40px;
  font-weight: 700;
  margin: 0 0 30px;
}
.mmt-advantage h3 {
  margin-top: 0;
  font-size: 18px !important;
}
@media only screen and (min-width: 640px) {
  .mmt-advantage h2 {
    font-size: 40px;
    line-height: 50px;
  }
}

#page { padding: 0 !important; }
