/* Small fixes that replace the Simvoly runtime without changing the archived layout. */

button.theme-button {
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  background-color: transparent;
  color: inherit;
}

.mrm-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mrm-form-success,
.mrm-form-error {
  display: none;
  margin: 12px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(46, 49, 50, 1);
}

.mrm-form-success:target,
form.is-sent .mrm-form-success {
  display: block;
}

form:has(.mrm-form-success:target) .widget-form-inner-wrapper,
form.is-sent .widget-form-inner-wrapper,
body:has(#inquiry-sent:target) form[name="project-inquiry"] .widget-form-inner-wrapper,
form.is-sent > .form-field,
form.is-sent > .booking-name,
form.is-sent .back-btn-wrapper,
form:has(#discovery-sent:target) > .form-field,
form:has(#discovery-sent:target) > .booking-name,
form:has(#discovery-sent:target) .back-btn-wrapper {
  display: none;
}

body:has(#inquiry-sent:target) form[name="project-inquiry"] .mrm-form-success {
  display: block;
}

.mrm-form-error.is-visible {
  display: block;
}

button.theme-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* Email fields keep type=email for validation. The archived theme only
   styles input[type=text], so mirror that rule here. Inline color, font,
   radius, and border-color on each field still win. */
.widget-form input[type="email"] {
  border: 1px solid rgba(150, 150, 150, 0.3);
  padding: 18px 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  width: 100%;
  max-width: 100%;
  height: auto;
  float: left;
  letter-spacing: normal;
  font-size: 13px;
  line-height: normal;
  outline: 0;
  box-shadow: none;
  background-clip: padding-box;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.widget-form input[type="email"]::placeholder {
  color: rgb(117, 117, 117);
  opacity: 1;
}

.widget-form input[type="email"]:focus {
  border-color: #ccc;
  background: #fbfbfb;
}

.mrm-discovery {
  width: 100%;
  float: left;
  box-sizing: border-box;
  padding: 72px 24px 32px;
  background: rgba(247, 245, 242, 1);
}

.mrm-discovery-wrap {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.mrm-discovery-kicker {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(129, 117, 255, 1);
}

.mrm-discovery-wrap h1 {
  margin: 0 0 18px;
  font-family: Arapey, serif;
  font-weight: 400;
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  letter-spacing: normal;
  color: rgba(46, 49, 50, 1);
}

.mrm-discovery-lede {
  max-width: 38rem;
  margin: 0 auto 32px;
  font-family: "Work Sans", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(46, 49, 50, 1);
}

.mrm-discovery-card {
  margin: 0 auto 28px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(150, 150, 150, 0.3);
  box-shadow: 0 0 25px rgba(170, 170, 170, 0.25);
}

.mrm-discovery-card iframe {
  display: block;
  width: 100%;
  height: 700px;
  border: 0;
  background: #fff;
}

.mrm-discovery-fallback.theme-button {
  display: inline-block;
  background-color: rgba(199, 205, 122, 1);
  color: rgba(46, 49, 50, 1);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 32px;
  border: 0;
  border-radius: 0;
}

@media (max-width: 768px) {
  .mrm-discovery {
    padding: 40px 16px 16px;
  }

  .mrm-discovery-wrap h1 {
    font-size: 42px;
  }

  .mrm-discovery-lede {
    font-size: 16px;
  }

  .mrm-discovery-card iframe {
    height: 920px;
  }
}
