@font-face {
  font-family: "Gotham Light";
  src: url("Gotham-Light.woff") format("woff"),
    url("Gotham-Light.otf") format("opentype"),
    url("Gotham-Light.woff2") format("woff2");
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-body);
  font-family: "Gotham Light", sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

img {
  height: auto;
  max-width: 100%;
  outline: none;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
}

section {
  box-sizing: border-box;
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-width);
  height: 100vh;
  height: 100dvh;
  background-color: var(--header);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
}

.header-logo {
  padding: var(--space-xl) var(--space-m);
}

.header-logo img {
  width: 100%;
  height: auto;
  filter: invert(1);
}

.header-slogan {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-m);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding-bottom: var(--space-xl);
}

.header-slogan-text {
  transform: rotate(-180deg);
  writing-mode: vertical-rl;
  font-size: var(--text-m);
  font-weight: 100;
  white-space: nowrap;
  margin-bottom: var(--space-m);
}

@media only screen and (max-width: 768px) {
  .header {
    width: auto;
    position: absolute;
    top: 0;
    background: none;
    z-index: 100;
  }

  .header-logo {
    max-width: 60px;
    padding: var(--space-2xl) 0 0 var(--space-2xl);
  }
  .header-slogan-text {
    display: none;
  }
}

/* Main Content */
.main-content {
  height: 100dvh;
  height: 100vh;
  margin-left: var(--header-width);
  padding: 0;
  display: flex;
  flex-direction: column;
}

@media only screen and (max-width: 768px) {
  .main-content {
    margin-left: 0;
    z-index: 200;
  }
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: row-reverse;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 25%, transparent 50%);
  flex: 1;
}

.hero-caption {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-xl);
  color: var(--text-title-inverse);
  font-size: var(--text-l);
  text-align: right;
  max-width: 40ch;
}

.hero-caption p {
  margin: 0;
  max-width: 25ch;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.register-button {
  display: inline-block;
  margin: 0;
}

@media only screen and (max-width: 768px) {
  .hero-section {
    padding: var(--space-2xl);
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 25%,
      transparent 50%,
      transparent 75%,
      #84add9 90%
    ); /* Sky blue tint added to top to make the logo more visible */
  }
  .hero-caption {
    max-width: calc(100% - var(--header-width));
  }
}

/* Content Section */
.content-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: auto;
  padding: var(--space-4xl);
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.content-section * {
  z-index: 1;
}

.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  margin: 5% 15%;
  width: 100%;
  height: 100%;
  background-image: url("../images/Eastin Logo.svg");
  background-position: top left;
  background-size: 30%;
  background-repeat: no-repeat;
  opacity: 0.04;
  overflow: hidden;
}

@media only screen and (max-width: 768px) {
  .content-section {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
}

/* Feature Section */
.feature-section {
  display: flex;
}

.feature-section div {
  box-sizing: border-box;
  padding: var(--space-m);
}

.feature-section:nth-of-type(even) {
  flex-direction: row-reverse;
}

.feature-section-media {
  width: 50%;
}

.feature-section:nth-of-type(odd) .feature-section-media {
  text-align: right;
}

.feature-section-content {
  width: 100%;
  max-width: 40ch;
  display: flex;
  flex-direction: column;
}

.feature-section:nth-of-type(1) .feature-section-media img {
  margin-left: calc(-1 * var(--space-2xl));
  margin-bottom: calc(-1 * var(--space-2xl));
  width: calc(100% + var(--space-2xl));
  height: calc(100% + var(--space-2xl));
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.feature-section:nth-of-type(2) .feature-section-media img {
  margin-top: calc(-1 * var(--space-2xl));
  margin-right: calc(-1 * var(--space-2xl));
  width: calc(100% + var(--space-2xl));
  max-width: none;
  max-height: none;
}

.feature-section:nth-of-type(3) {
  margin-top: calc(-1 * var(--space-xl));
}

@media only screen and (max-width: 768px) {
  .content-section .feature-section {
    flex-direction: column;
    padding-bottom: var(--space-4xl);
  }

  .content-section .feature-section-media {
    width: 100%;
    padding: 0;
  }

  .content-section .feature-section-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.5;
    object-fit: cover;
  }

  .content-section .feature-section-content {
    max-width: none;
    padding: var(--space-2xl);
  }

  .feature-section:nth-of-type(odd) .feature-section-media img {
    width: calc(100% - var(--space-2xl));
    margin-left: var(--space-2xl);
    margin-bottom: 0;
  }

  .feature-section:nth-of-type(even) .feature-section-media img {
    width: calc(100% - var(--space-2xl));
    margin-right: var(--space-2xl);
  }
}

/* Registration Section */
.registration-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2xl);
  min-height: 950px;
}

.registration-section .tagline {
  order: -1; /* Move tagline above h2 */
  padding-bottom: 0;
}

/* Registration Form */
.register-step {
  max-width: 800px;
  padding: var(--space-2xl);
}

.register-step input[type="text"],
.register-step input[type="email"],
.register-step input[type="tel"] {
  width: 100%;
  border-radius: 0;
}

.register-step__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-m);
}

.select-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.register-step__buttons {
  grid-column-end: span 2;
}

.register-step__buttons input[type="submit"] {
  width: 100%;
  margin: var(--space-l) auto;
}

.register-step__disclaimer {
  grid-column-end: span 2;
  font-size: var(--text-xs);
}

@media only screen and (max-width: 768px) {
  .register-step__wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
  }
  .register-step {
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }
}

.captcha {text-align:center;padding-bottom: 20px;}
.g-recaptcha {
  display: inline-block;
}

/* iOS Overrides */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #ccc;
  border-radius: 0;
  background-color: #fff;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
}
