.contact {
  display: block;
  min-height: auto;
}

.contact-title {
  display: block;
  margin-left: 145px;
}

.contact-copy {
  width: min(100%, 1125px);
  margin: 0 auto;
}

.contact-copy > p {
  max-width: 560px;
  margin-top: 28px;
}

.contact-form {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 24px 70px rgba(7, 24, 39, 0.1);
}

.contact-animation {
  width: 100%;
  max-width: 680px;
  margin: 18px auto 24px;
  overflow: hidden;

  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: 18px;

  background-color: #000;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(201, 164, 92, 0.12);
}

.contact-copy > .eyebrow {
  max-width: none;
  margin: 0 0 18px;
}

.contact-copy > .hero-copy {
  max-width: 680px;
  text-align: center;
}

.contact-copy > .skills {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  justify-content: center;
}

.contact-animation__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;

  object-fit: cover;
}

.contact-animation,
.contact-copy > .hero-copy,
.contact-copy > .skills {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

.form-section {
  display: grid;
  place-items: center;
}

.form-section-container {
  display: grid;
  width: min(100%, 1200px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
  margin: 0 auto;
}

.form-section .contact-form {
  width: 104%;
}

.form-success-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: inherit;
  background: var(--olive);
  padding: 32px;
  color: white;
  text-align: center;

  opacity: 0;
  transform: translateY(-101%);
  pointer-events: none;

  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.form-success-overlay.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.form-success-overlay .success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;

  margin-bottom: 24px;
  border: 2px solid white;
  border-radius: 50%;

  font-size: 38px;
  line-height: 1;
}

.form-success-overlay h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.form-success-overlay p {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.form-field + .form-field {
  margin-top: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #cbd2ce;
  background: transparent;
  padding: 10px 0 13px;
  color: var(--ink);
  outline: 0;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #1c7c6b;
}

.contact-form .btn {
  width: 100%;
  margin-top: 30px;
}

.form-status {
  min-height: 18px;
  margin: 14px 0 0;
  color: #2f6a5e;
  font-size: 11px;
}
