/* =========================
   DESIGN SYSTEM
========================= */

:root {
  --color-accent: #3269FF;
  --color-white: #F6F5F1;
  --color-dark: #1C2445;
  --color-black: #000000;

  --font-heading: "Source Sans 3", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-ui: "Manrope", sans-serif;
}


/* =========================
   GLOBAL
========================= */

* {
  box-sizing: border-box;
}

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

html {
  background: var(--color-white);
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  background: var(--color-white);
  color: var(--color-dark);

  font-family: var(--font-body);
  font-weight: 400;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea,
a,
label {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}


/* =========================
   SITE HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  z-index: 200;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 36px;

  background: transparent;
}

.site-logo {
  display: block;

  width: 150px;

  transform-origin: center;

  transition:
    transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.site-logo img {
  display: block;

  width: 100%;
  height: auto;
}

.site-logo:hover {
  transform: rotate(-2deg);
}

.site-nav {
  display: flex;
  align-items: center;

  gap: 30px;
}

.nav-link {
  display: inline-flex;
  align-items: center;

  color: var(--color-dark);

  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;

  opacity: 1;
}

.nav-link > span {
  display: inline-block;

  transform-origin: center;

  transition:
    transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.nav-link.tilt-left:hover > span {
  transform: rotate(-4deg);
}

.nav-link.tilt-right:hover > span {
  transform: rotate(4deg);
}

.nav-link.active {
  color: var(--color-accent);
}

.imdb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.imdb-link:hover {
  transform: rotate(-3deg);
}

.imdb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 20px;

  padding: 0 5px;

  border-radius: 3px;

  background: #F5C518;
  color: #000000;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}


/* =========================
   CONTACT LAYOUT
========================= */

.contact-page {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding:
    clamp(125px, 16vh, 170px)
    clamp(28px, 6vw, 96px)
    clamp(54px, 8vh, 92px);
}

.contact-shell {
  width: min(1180px, 100%);

  margin: 0 auto;

  display: grid;
  grid-template-columns:
    minmax(0, .9fr)
    minmax(420px, .72fr);

  align-items: start;

  gap: clamp(60px, 9vw, 150px);
}

.contact-heading {
  padding-top: 4px;
}

.contact-heading h1 {
  max-width: 680px;

  margin: 0;

  color: var(--color-dark);

  font-family: var(--font-heading);
  font-size: clamp(54px, 6.1vw, 102px);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -0.052em;
}

.contact-heading h1 span {
  color: var(--color-accent);
}


/* =========================
   FORM
========================= */

.contact-form-wrap {
  width: 100%;
}

.contact-form {
  width: 100%;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 24px;
}

.field {
  margin-bottom: 25px;
}

.field label {
  display: block;

  margin-bottom: 9px;

  color: var(--color-dark);

  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;

  letter-spacing: .07em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;

  border: 0;
  border-bottom: 1px solid rgba(28, 36, 69, .25);

  border-radius: 0;

  background: transparent;

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;

  outline: none;

  transition:
    border-color 180ms ease;
}

.field input {
  height: 44px;

  padding: 0 0 8px;
}

.field textarea {
  min-height: 128px;

  padding: 9px 0 12px;

  resize: vertical;

  line-height: 1.55;
}

.field select {
  height: 44px;

  padding: 0 34px 8px 0;

  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(28, 36, 69, .5);
}

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

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: #C53A3A;
}

.select-wrap {
  position: relative;
}

.select-arrow {
  position: absolute;

  right: 4px;
  top: 7px;

  pointer-events: none;

  color: var(--color-dark);

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

.website-field {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;

  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;
}


/* =========================
   TURNSTILE
========================= */

.cf-turnstile {
  min-height: 65px;

  margin: 0 0 18px;
}


/* =========================
   SUBMIT
========================= */

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;
}

.form-status {
  flex: 1;

  margin: 0;

  color: rgba(28, 36, 69, .72);

  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.4;
}

.form-status.error {
  color: #A72D2D;
}

.submit-button {
  flex: 0 0 auto;

  min-width: 158px;
  height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 0 21px;

  border: 0;
  border-radius: 999px;

  background: var(--color-accent);
  color: var(--color-white);

  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 180ms cubic-bezier(.2, .8, .2, 1),
    opacity 180ms ease;
}

.submit-button:hover {
  transform: translateY(-1px) rotate(-1deg);
}

.submit-button:disabled {
  cursor: wait;

  opacity: .55;

  transform: none;
}

.submit-button svg {
  width: 17px;
  height: 17px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================
   SUCCESS
========================= */

.success-state {
  padding-top: 2px;
}

.success-mark {
  width: 48px;
  height: 48px;

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

  margin-bottom: 25px;

  border-radius: 50%;

  background: var(--color-accent);
  color: var(--color-white);

  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 600;
}

.success-state h2 {
  margin: 0 0 8px;

  font-family: var(--font-heading);
  font-size: clamp(35px, 4vw, 48px);
  font-weight: 500;
  line-height: 1;

  letter-spacing: -.035em;
}

.success-state p {
  max-width: 390px;

  margin: 0 0 29px;

  color: rgba(28, 36, 69, .72);

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

.back-link {
  display: inline-block;

  color: var(--color-accent);

  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;

  border-bottom: 1px solid currentColor;
}


/* =========================
   TABLET
========================= */

@media (max-width: 980px) {
  .contact-page {
    align-items: flex-start;

    padding-top: 136px;
  }

  .contact-shell {
    grid-template-columns: 1fr;

    gap: 66px;
  }

  .contact-heading h1 {
    max-width: 760px;

    font-size: clamp(58px, 10vw, 92px);
  }

  .contact-form-wrap {
    max-width: 680px;
  }
}


/* =========================
   HEADER MOBILE
========================= */

@media (max-width: 700px) {
  .site-header {
    padding: 18px 20px;
  }

  .site-logo {
    width: 108px;
  }

  .site-nav {
    gap: 13px;
  }

  .nav-link {
    font-size: 12px;
  }

  .imdb-badge {
    min-width: 34px;
    height: 18px;

    font-size: 12px;
  }

  .contact-page {
    padding:
      118px
      20px
      48px;
  }

  .contact-shell {
    gap: 50px;
  }

  .contact-heading h1 {
    font-size: clamp(49px, 15vw, 74px);
  }

  .field-row {
    grid-template-columns: 1fr;

    gap: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 16px;
  }

  .site-logo {
    width: 92px;
  }

  .site-nav {
    gap: 9px;
  }

  .nav-link {
    font-size: 10.5px;
  }

  .imdb-badge {
    min-width: 31px;
    height: 17px;

    font-size: 11px;
  }

  .contact-page {
    padding:
      108px
      17px
      38px;
  }

  .contact-heading h1 {
    font-size: clamp(45px, 14.2vw, 64px);

    line-height: .94;
  }

  .field {
    margin-bottom: 23px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;

    gap: 14px;
  }

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