@font-face {
  font-family: "Eurostile";
  src: url("Fonts/Eurostile.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Riccione Serial Light";
  src: url("Fonts/Riccione-Serial-Light.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-eurostile: "Eurostile", Arial, sans-serif;
  --font-riccione: "Riccione Serial Light", Georgia, serif;
  --tracking-label: 0.16em;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #18181b;
}

#app {
  width: 100%;
  min-height: 100vh;
}

.screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen.hidden {
  display: none;
}

.screen:not(.landing) {
  background-color: #18181b;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url("images/form-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 24px;
  position: relative;
  font-family: var(--font-eurostile);
}

.progress-bar-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#submit-screen .progress-bar-fill {
  width: 100%;
}

.panel {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

#back-btn.icon-back {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 30;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--font-eurostile);
  font-size: 18px;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

#back-btn.icon-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

#back-btn.icon-back.hidden {
  display: none;
}

.message {
  font-family: var(--font-eurostile);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 32px;
}

.progress {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-riccione);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  letter-spacing: var(--tracking-label);
  z-index: 5;
}

.intro-text {
  font-family: var(--font-eurostile);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 32px;
}

.intro-text.hidden {
  display: none;
}

.question-eyebrow {
  font-family: var(--font-riccione);
  font-size: 13px;
  letter-spacing: var(--tracking-label);
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 18px;
}

.question-eyebrow.hidden {
  display: none;
}

.field-block {
  margin-bottom: 28px;
}

.field-block:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-family: var(--font-eurostile);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

/* A field-block holding the sole field on a step (a long reflective question)
   reads as the step's headline, matching the design's per-question h2 treatment. */
.field-block:has(textarea) .field-label {
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
}

.field-block input[type="text"],
.field-block input[type="tel"],
.field-block input[type="email"],
.field-block input[type="number"],
.field-block textarea {
  display: block;
  width: 100%;
  font-family: var(--font-eurostile);
  font-size: 17px;
  padding: 8px 2px;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  background: transparent;
  color: #ffffff;
}

.field-block textarea {
  font-size: 22px;
}

.field-block input::placeholder,
.field-block textarea::placeholder {
  font-family: var(--font-riccione);
  color: rgba(255, 255, 255, 0.45);
}

.field-block textarea {
  min-height: 120px;
  resize: vertical;
}

.field-block input:focus,
.field-block textarea:focus {
  outline: none;
  border-bottom-color: #ffffff;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 15px;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.nav-hint {
  font-family: var(--font-riccione);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #18181b;
  cursor: pointer;
}

.screen:not(.landing) button {
  font-family: var(--font-riccione);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  font-size: 14px;
  padding: 18px 40px;
  border-radius: 0;
}

button:disabled {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
}

button.secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.error.hidden {
  display: none;
}

/* Landing / closing full-bleed screens. */

.landing {
  background-color: #18181b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

#landing {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url("images/landing.jpg");
}

#thankyou-screen {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url("images/closing.jpg");
}

.landing-overlay {
  width: 100%;
  max-width: 480px;
  padding: 32px;
  text-align: center;
  color: #ffffff;
}

.landing-message {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.landing-checkbox-row {
  justify-content: center;
  color: #ffffff;
  margin-bottom: 0;
}

#enter-btn {
  width: 100%;
  margin-bottom: 20px;
}

.closing-message {
  font-family: var(--font-eurostile);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.closing-link {
  display: inline-block;
  font-family: var(--font-riccione);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}
