/* Fonts: Pinyon Script, DM Sans, VT323 (Google). CTA labels use local Jager Master. */

@font-face {
  font-family: "Jager Master";
  src: url("/fonts/Jager-MasterRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  background-color: #fef2ff;
  font-family: "DM Sans", sans-serif;
  color: #000;
}

.contact-page {
  min-height: 100dvh;
  width: 100%;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.form-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ac85b8;
  border-radius: 10px;
  background-color: #f7e2f9;
  overflow: hidden;
}

.step {
  flex-direction: column;
  gap: 20px;
}

.step--on {
  display: flex;
}

.step--off {
  display: none;
}

.field {
  padding: 20px;
  border: 1px solid #ebd5ec;
  border-radius: 10px;
  background-color: #fffded;
}

.field_input-wrapper {
  position: relative;
}

.label {
  display: block;
  font-weight: 400;
  font-size: 0.93rem;
  line-height: 1;
  margin: 0 0 20px;
}

.input {
  display: block;
  width: 100%;
  padding: 17px 20px;
  border: 1px solid #ebd5ec;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(52, 0, 67, 0.6);
  background-color: rgba(241, 229, 237, 0.61);
  font-family: inherit;
}

.input::placeholder {
  color: rgba(52, 0, 67, 0.6);
}

.input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ebd5ec, 0 0 0 4px #ac85b8;
}

.unstyled-button {
  border: none;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.unstyled-button:focus-visible {
  outline: 0;
  filter: drop-shadow(0 0 4px #ac85b8);
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.animated-element {
  animation-name: slideInFromLeft;
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.78, 0.34, 0.59, 0.97);
  animation-fill-mode: forwards;
  animation-delay: 0s;
  opacity: 0;
  transform: translateX(-100%);
}

.animated-element--delay-1 {
  animation-delay: 0.133s;
}

.animated-element--delay-2 {
  animation-delay: 0.166s;
}

/* —— Layout: form view —— */
.view {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.view[hidden] {
  display: none !important;
}

.view--form.view--active {
  display: flex;
}

.page-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-bottom: 30px;
}

.crown-icon {
  display: block;
  flex-shrink: 0;
}

.headline-script {
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  color: #49024c;
  text-align: center;
  margin: 0;
  font-size: 70px;
  line-height: 1.1;
}

.headline-script--thanks {
  position: relative;
  /* Below gorilla */
  z-index: 0;
  max-width: 360px;
  font-size: 80px;
  line-height: 1;
}

.form-main {
  width: 100%;
  max-width: 480px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
}

.form-error {
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffe0e0;
  border: 1px solid #e88;
  color: #600;
  font-size: 0.9rem;
}

/* Decorative CTA (Figma vectors + serif label) */
.submit-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.submit-button {
  display: block;
  width: 100%;
}

.custom-button {position:relative;display:grid;grid-template-columns:28px 1fr 28px;height:75px}.custom-button_bg--middle{width:100%}.custom-button_text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.custom-button_text svg{max-width:70vw}

.custom-button_text {
  color: #550158;
font-family: Jager;
font-size: 25px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.submit-button__layers {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.submit-button__outer,
.submit-button__inner {
  position: absolute;
  width: 100%;
  max-width: 311px;
  height: auto;
  object-fit: contain;
}

.submit-button__inner {
  width: calc(100% - 8px);
  max-width: 303px;
  margin-top: 5px;
}

.submit-button__text {
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width: 100%;
  max-width: 100%;
  padding-bottom: .2em;
  font-family: "Jager Master", Georgia, "Times New Roman", serif;
  font-size: 25px;
  color: #550158;
  text-align: center;
}

.submit-button:hover .submit-button__outer,
.submit-button:hover .submit-button__inner {
  filter: brightness(1.05);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Thank-you */
.page-top--thanks {
  margin-bottom: 0;
}

.thanks-stage {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 24px;
}

.success-gorilla {
  position: absolute;
  top: -65px;
  z-index: 1;
  width: 100%;
  height: 767px;
  pointer-events: none;
  background-image: url("https://imagedelivery.net/kAmxXLog4Jpwgl_SuFtw6w/b72438f0-97b8-493c-1480-270742130a00/public");
  background-repeat: no-repeat;
  background-position: top center;
}

.thanks-card {
  position: relative;
  z-index: 2;
  max-width: 360px;
  margin-top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.thanks-copy {
  margin: 0;
  font-family: "VT323", monospace;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #550158;
  text-align: center;
}

.thanks-cta {
  text-decoration: none;
}

.thanks-cta .submit-button__text {
  white-space: nowrap;
}

.site-footer {
  position: relative;
  /* Above the gorilla */
  z-index: 2;
  flex-shrink: 0;
  padding-top: 24px;
}

.wordmark {
  display: block;
  height: 20px;
  width: auto;
  max-width: 136px;
  margin: 0 auto;
}

.input:invalid:not(:placeholder-shown) {
  box-shadow: 0 0 0 2px #f5a5a5;
}
