@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Regular.woff2") format("woff2");
  font-display: swap;
}

/* Remove spinner arrows from number inputs (Chrome, Safari, Edge) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* PRELOADER ROOT */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: #000;
  z-index: 999999;
  opacity: 1;
  transition: opacity 0.9s ease;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

/* GRID LAYOUT */
.preloader-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1.4fr auto auto 1fr;
  justify-items: center;
  align-items: center;
  padding: clamp(16px, 3vw, 40px);
}

/* QUESTION */
.question-section {
  display: flex;
  align-items: end;
  justify-content: center;
  opacity: 0;
  animation: questionReveal 1.2s ease forwards;
  animation-delay: 0.4s;
}

.question-text {
  color: #fff;
  text-align: center;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1.2;
  max-width: 90vw;

  font-size: clamp(1.8rem, 4vw, 4.8rem);
}

/* LOGO SECTION */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;

  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: logoReveal 1.2s ease forwards;
  animation-delay: 1.4s;
}

.preloader-logo {
  width: clamp(220px, 28vw, 520px);
  max-width: 80vw;
  height: auto;
  object-fit: contain;
}

.company-name {
  margin-top: clamp(12px, 2vw, 24px);

  color: #fff;
  font-family: "Clash Display", sans-serif;
  font-weight: 300;

  letter-spacing: clamp(3px, 0.8vw, 12px);
  font-size: clamp(10px, 1vw, 20px);

  text-align: center;
}

/* LOADING SECTION */
.loading-section {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loading-bar {
  width: clamp(180px, 22vw, 360px);
  height: 2px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
  border-radius: 999px;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: #fff;
  animation: loadBar 2.1s ease forwards;
  animation-delay: 1.9s;
}

.loading-text {
  color: rgba(255,255,255,0.9);
  font-family: "Clash Display", sans-serif;
  letter-spacing: clamp(4px, 0.6vw, 8px);
  font-size: clamp(10px, 0.9vw, 14px);
}

/* ANIMATIONS */
@keyframes questionReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loadBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {
  .preloader-grid {
    grid-template-rows: 1.2fr auto auto 0.8fr;
  }

  .question-text {
    max-width: 92%;
  }
}

/* LANDSCAPE MOBILE / SHORT HEIGHT */
@media (max-height: 600px) {
  .preloader-grid {
    grid-template-rows: 1fr auto auto 0.6fr;
  }

  .preloader-logo {
    width: clamp(180px, 20vw, 380px);
  }
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Clash Display", sans-serif;
  color: white;
}

.lead-page {
  position: relative;
  width: 100%;
  height: 100dvh;
  background-image: url("assets/BG.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: bgZoom 12s ease forwards;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
}

.card {
  position: relative;
  z-index: 2;
  width: min(700px, 92vw);
  min-height: 500px;
  background: rgba(18,18,18,0.58);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: cardEnter 1s ease;
}

.card-top h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
}

.progress-container {
  margin-top: 20px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

.progress-bar {
  width: 20%;
  height: 100%;
  background: #d0b28e;
  transition: width 0.5s ease;
}

#stepIndicator {
  margin-top: 10px;
  color: #d0b28e;
}

.question-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.question {
  animation: slideIn 0.45s ease;
}

.question label {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 18px;
}

.question input, 
.question select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  color: white;
  font-size: 1rem;
  font-family: "Clash Display", sans-serif;

  cursor: text; /* IMPORTANT */
  transition: all 0.3s ease;
}

.question input:hover,
.question input:focus {
  cursor: text;
}

/* Hover */
.question select:hover {
  border-color: rgba(208,178,142,0.45);
  background: rgba(255,255,255,0.12);
}

/* Focus */
.question select:focus {
  outline: none;
  border-color: #d0b28e;
  box-shadow: 0 0 0 3px rgba(208,178,142,0.15);
}

/* Dropdown options */
.question select option {
  background: #181818;
  color: white;
  padding: 12px;
}

.navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

button {
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  font-size: 1rem;
}

#backBtn {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

#nextBtn {
  background: #d0b28e;
}

.card-bottom {
  text-align: center;
}

.card-bottom a {
  color: #d0b28e;
  text-decoration: underline;
  font-size: 1rem;
}

.thank-you {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none;
}

.submit-mode {
  background: #0c4444;
  color: white;
}

/* CUSTOM DROPDOWN */
.custom-select {
  width: 100%;
  position: relative;
  user-select: none;
}

.select-trigger {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
  transition: all 0.3s ease;
}

.select-trigger:hover {
  border-color: rgba(208,178,142,0.45);
  background: rgba(255,255,255,0.12);
}

.select-trigger.active {
  border-color: #d0b28e;
  box-shadow: 0 0 0 3px rgba(208,178,142,0.12);
}

.select-trigger span {
  font-size: 1rem;
  color: white;
}

.arrow {
  color: #d0b28e;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.select-trigger.active .arrow {
  transform: rotate(180deg);
}

/* OPTIONS PANEL */
.select-options {
  position: absolute;
  top: calc(100% + 8px);
  width: 100%;
  overflow: hidden;

  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: all 0.3s ease;
  z-index: 100;
}

.select-options.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.option {
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.option:hover {
  background: rgba(208,178,142,0.14);
  color: #d0b28e;
}

.option:first-child {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.error-message {
  min-height: 20px;
  margin-top: 10px;

  color: #d0b28e;
  font-size: 0.9rem;
  font-family: "Clash Display", sans-serif;

  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bgZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .card {
    padding: 24px;
    min-height: 580px;
  }

  .navigation {
    flex-direction: column;
    gap: 12px;
  }

  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #preloader {
    display: none;
  }
}
