* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px; /* Sets the REM size */
  min-height: 100vh;
}

body {
  background-image: url("./assets/page-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: "futura-pt", sans-serif;
  color: #736868;
}

p {
  font-size: 1.1rem;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

h1 {
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.2px;
}

button {
  height: 3rem;
  width: 10rem;
  font-size: 1.1rem;
  text-align: center;
  background: transparent;
  color: #736868;
  border: 0px;
  cursor: pointer;
  border-bottom: #736868 1px solid;
}

button:hover {
  transform: translateY(2px);
}

/* Nav styles */
nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 5rem;
  padding: 2rem 5rem;
  background-color: black;
  color: white;
}

#nav-logo > img {
  width: 15rem;
}

.nav-label {
  font-family: "Futura PT", Helvetica, Arial, Lucida, sans-serif;
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  color: white;
  letter-spacing: 2px;
  line-height: 1em;
}

#page-nav {
  display: flex;
  justify-content: space-between;
}

#intro-right button {
  font-size: 12px;
  letter-spacing: 3;
  display: block;
  margin: 2rem 3rem 0 auto;
  color: #404040;
  border-color: #404040;
  font-weight: 900;
}

/* Main and Section styles */
main {
  width: 100%;
  padding: 1rem;
}

.page {
  background: transparent;
  padding: 5rem;
  transition: all 0.3s ease;
}

/* Form */

.intro-page {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 70vh;
}

.width-80 {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 5rem;
}

.container {
  width: 100%;
  height: flex;
}

#intro-left {
  background-color: transparent;
  padding: 30px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

#intro-right {
  background-color: transparent;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.intro-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.intro-page h1 {
  color: #736868;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid #736868;
  padding-bottom: 0.5rem;
}

.intro-page .intro-subtitle {
  font-family: "Encode Sans Condensed", sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  line-height: 1.5;
  margin-top: 1rem;
  color: #bfbdbe;
  font-weight: 800;
}

.intro-page p {
  font-family: "Arvo", serif;
  font-size: 1rem;
  line-height: 1.2;
  text-align: justify;
}

.question-group {
  margin-bottom: 2rem;
}

.question-text {
  font-size: 1.25rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0.5px solid rgb(0, 0, 0);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  color: #736868;
  background: transparent;
  font-family: "futura-pt", sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(100, 100, 100, 0.4);
  transform: translateY(-1px);
}

.checkbox-group,
.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  margin-top: 0.75rem;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  border: 1px solid #736868;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.checkbox-label:hover,
.radio-label:hover {
  background: transparent;
  border-color: #0d0d0d;
  transform: translateX(2px);
}

.checkbox-label input,
.radio-label input {
  margin-right: 0.75rem;
  width: 16px;
  height: 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid #736868;
  flex-shrink: 0;
}
/* Checkbox square  */
.checkbox-label input {
  border-radius: 4px;
}

/* Radio circle */
.radio-label input {
  border-radius: 50%;
}
.checkbox-label input:checked::after {
  content: "✓";
  color: #0d0d0d;
  font-size: 12px;
  display: block;
  text-align: center;
  line-height: 16px;
}
.radio-label input:checked::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 3px auto;
  border-radius: 50%;
  background: #0d0d0d;
}

/* Confirmation Overview Styles */
.confirmation-overview {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 0.5rem;
}

.confirmation-overview > #confirmation-comments {
  grid-column: 1 / -1;
}

.confirmation-section {
  margin-bottom: 1.75rem;
}
#subheading {
  margin-bottom: 0.5rem;
}

.text-centered {
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0px;
  margin-bottom: 4rem;
}

.confirmation-section h3 {
  color: #736868;
  font-size: 1.25rem;
  font-weight: 500;
  padding-bottom: 0.5rem;
  letter-spacing: 0px;
  border-bottom: 1px solid #736868;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.confirmation-item {
  transition: all 0.2s ease;
}

.confirmation-item span,
.confirmation-item p {
  line-height: 1.5;
  font-size: 1.1rem;
  letter-spacing: 0px;
}

.loader-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 40vh;
}

.loader-animation {
  height: 2px;
  width: 200px;
  --c: no-repeat linear-gradient(#000 0 0);
  background: var(--c), var(--c), var(--c), var(--c);
  background-size: 21% 100%;
  animation: l7 1s infinite alternate;
}
@keyframes l7 {
  0%,
  20% {
    background-position:
      calc(0 * 100% / 4) 0,
      calc(1 * 100% / 4) 0,
      calc(2 * 100% / 4) 0,
      calc(3 * 100% / 4) 0;
  }
  35% {
    background-position:
      calc(0 * 100% / 4) 0,
      calc(1 * 100% / 4) 0,
      calc(2 * 100% / 4) 0,
      calc(4 * 100% / 4) 0;
  }
  50% {
    background-position:
      calc(0 * 100% / 4) 0,
      calc(1 * 100% / 4) 0,
      calc(3 * 100% / 4) 0,
      calc(4 * 100% / 4) 0;
  }
  65% {
    background-position:
      calc(0 * 100% / 4) 0,
      calc(2 * 100% / 4) 0,
      calc(3 * 100% / 4) 0,
      calc(4 * 100% / 4) 0;
  }
  80%,
  100% {
    background-position:
      calc(1 * 100% / 4) 0,
      calc(2 * 100% / 4) 0,
      calc(3 * 100% / 4) 0,
      calc(4 * 100% / 4) 0;
  }
}

#loader-phrase {
  color: #736868;
  font-size: 1.5rem;
  margin: 3rem;
}

/* Range Slider Styles */
input[type="range"] {
  width: 100%;
  height: 8px;
  background: rgba(200, 200, 200, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 1rem 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: rgba(70, 70, 70, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: rgba(50, 50, 50, 0.9);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: rgba(70, 70, 70, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

input[type="range"]::-moz-range-thumb:hover {
  background: rgba(50, 50, 50, 0.9);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Page Transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page {
  animation: fadeIn 0.9s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    width: 95%;
    padding: 2rem 1rem;
  }

  .page {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  button {
    width: 8rem;
    height: 2.75rem;
    font-size: 1rem;
  }

  .intro-page {
    flex-direction: column;
  }

  #intro-right {
    padding: 0rem 1rem;
  }

  #intro-right button {
    margin-right: 0;
    margin-left: auto;
    letter-spacing: 0.15rem;
  }

  #page-nav {
    gap: 4rem;
  }
}
