:root {
  --bg-1: #f4efe6;
  --bg-2: #e3efe9;
  --surface: transparent;
  --surface-border: transparent;
  --text: #ffffff;
  --muted: #eaf5ea;
  --primary: #2f7d32;
  --primary-hover: #256628;
  --ghost-bg: #e6f3e6;
  --slider-track-size: 7px;
  --slider-thumb-size: 26px;
  --slider-track-base: #9caf9f;
  --slider-track-fill: #2f8a3f;
  --slider-thumb: #ffffff;
  --shadow: 0 22px 50px rgba(31, 39, 51, 0.14);
  --radius: 20px;
  --content-inset: clamp(10px, 1.2vw, 18px);
}

* {
  box-sizing: border-box;
  font-family: "Open Sans", "Segoe UI", sans-serif;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: #4c9a45;
  overflow: hidden;
}

html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

h1,
h2,
.result-value {
  font-family: "Open Sans", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

.bg-orb {
  display: none;
}

.orb-a {
  background: #ffffff;
  top: -140px;
  left: -100px;
}

.orb-b {
  background: #80b8a1;
  bottom: -150px;
  right: -80px;
}

.app-shell {
  width: 100%;
  max-width: none;
  margin: 24px 0 0;
  padding: 0 clamp(28px, 6vw, 92px) 12px;
  background: #4c9a45 !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.hero {
  margin-bottom: 26px;
  padding-bottom: 0;
  animation: rise 0.5s ease;
  padding-left: var(--content-inset);
  padding-right: var(--content-inset);
}

.hero::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.4);
}

.progress-timeline {
  display: flex;
  align-items: center;
  width: 100%;
  margin-left: 0;
  padding: 0 var(--content-inset);
  box-sizing: border-box;
  gap: 10px;
  margin-bottom: 22px;
  justify-content: flex-start;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.timeline-step.is-active,
.timeline-step.is-done {
  background: #ffffff !important;
  color: #2f6f39 !important;
  border-color: #ffffff !important;
}

.timeline-line {
  height: 2px;
  flex: 1;
  min-width: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.timeline-line.is-done {
  background: #ffffff;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #e8f6e8;
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: clamp(1.72rem, 3.1vw, 2.2rem);
  color: #ffffff;
  font-weight: 300;
}

.subtitle {
  margin-top: 8px;
  max-width: 100%;
  font-size: 0.94rem;
  color: #eef8ee;
}

.card {
  display: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0;
  animation: rise 0.45s ease;
  backdrop-filter: none;
}

#step-1,
#step-2,
#results {
  padding: 0 var(--content-inset);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.card.is-active {
  display: block;
}

.card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
}

.step-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

#step-1.is-active .step-chip {
  background: #ffffff;
  color: #2f6f39;
  border-color: #ffffff;
  box-shadow: 0 6px 16px rgba(18, 64, 25, 0.25);
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.section-title::before {
  content: "";
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.slider-instruction {
  margin: 0 0 20px;
  color: #eef8ee;
  font-size: 0.95rem;
}

h2 {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field.full-row {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.95rem;
  font-weight: 600;
}

.field span.is-required::after {
  content: " *";
  color: #ffffff;
  font-weight: 700;
}

.range-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

input,
select {
  width: 100%;
  border: 1px solid #e9ede7;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: #1f2733;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%234c9a45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
}

#currentDesignPlatform {
  min-height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
}

#otherDesignPlatformField {
  grid-column: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.contact-grid input,
.contact-grid select {
  min-height: 40px;
}

input:focus,
select:focus {
  border-color: #e2e8df;
  outline: none;
  box-shadow: 0 0 0 3px rgba(234, 238, 231, 0.7);
}

select:required:invalid {
  color: #c7cec4;
}

select option {
  color: #1f2733;
}

select option[value=""] {
  color: #c7cec4;
}

input::placeholder {
  color: #c7cec4;
  opacity: 1;
}

input[type="range"] {
  --range-progress: 0%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  height: 18px;
  background: transparent;
  box-shadow: none;
  outline: none;
  accent-color: var(--slider-thumb);
  cursor: pointer;
}

input[type="range"]:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

input[type="range"]::-moz-focus-outer {
  border: 0;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: #d7ddd4;
  border: 0;
  box-shadow: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  margin-top: -7px;
  box-shadow: none;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: #d7ddd4;
  box-shadow: none;
}

input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: #eef2ec;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

.range-number {
  width: 64px;
  min-width: 64px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2733;
  background: #ffffff;
  border: 1px solid #e9ede7;
  border-radius: 10px;
  box-shadow: none;
  padding: 7px 8px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.range-number::-webkit-outer-spin-button,
.range-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.range-number:focus {
  border-color: #e2e8df;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 238, 231, 0.7);
}

.error {
  min-height: 1em;
  color: #ffffff;
  font-size: 0.82rem;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.results-cta-question {
  margin: 18px 0 0;
  align-self: center;
  color: #eef8ee;
  font-size: 1rem;
  font-weight: 600;
}

.confirmation-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.confirmation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 33, 12, 0.42);
}

.confirmation-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  background: #ffffff;
  color: #1f2733;
  border-radius: 24px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 28px 60px rgba(18, 46, 22, 0.24);
}

.confirmation-check {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5fbc58 0%, #2f7d32 100%);
  position: relative;
  box-shadow: 0 14px 30px rgba(47, 125, 50, 0.28);
}

.confirmation-check::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 18px;
  width: 16px;
  height: 28px;
  border-right: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  transform: rotate(40deg);
}

.confirmation-dialog h3 {
  margin: 0 0 10px;
  color: #1f5b24;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.confirmation-message {
  margin: 0 0 18px;
  color: #415041;
  font-size: 1rem;
  line-height: 1.5;
}

.confirmation-dialog .btn {
  min-width: 132px;
}

.confirmation-close-button {
  background: #2f7d32;
  color: #ffffff;
  border: 1px solid #2f7d32;
  box-shadow: 0 10px 22px rgba(47, 125, 50, 0.22);
}

.confirmation-close-button:hover {
  background: #256628;
  border-color: #256628;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  color: #2f6f39;
  background: #ffffff;
  border: 1px solid #ffffff;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn.primary:hover {
  background: #f4f8f4;
  border-color: #f4f8f4;
  transform: translateY(-1px);
}

.btn.ghost {
  background: #ffffff;
  color: #2f6f39;
  border: 1px solid #ffffff;
}

.btn.ghost:hover {
  background: #f4f8f4;
  border-color: #f4f8f4;
}

.result-intro {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 22px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#results .actions {
  margin-top: 32px;
}

.result-card {
  background: #ffffff;
  border: 1px solid #e8efe7;
  border-radius: 16px;
  padding: 14px;
}

.result-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-value {
  margin: 6px 0 0;
  font-size: clamp(1.34rem, 2.2vw, 1.8rem);
}

.result-card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-height: 110px;
  background: #ffffff;
}

.stat-visual {
  grid-area: icon;
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  display: grid;
  place-items: center;
  align-self: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: brightness(0) saturate(100%) invert(24%) sepia(25%) saturate(1243%) hue-rotate(73deg)
    brightness(95%) contrast(92%);
}

.stat-time-saved {
  background-image: url("timesaved.png");
}

.stat-more-projects {
  background-image: url("more projects.png");
}

.stat-no-paper {
  background-image: url("nopaper.png");
}

.stat-efficiency-boost {
  background-image: url("efficiencyboost.png");
}

.result-card-stat .stat-value {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(2.15rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #1f5b24;
}

.result-card-stat .stat-label {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #4f5f4f;
}

.field span.is-required::after {
  color: #ffffff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .timeline-line {
    min-width: 14px;
  }

  #otherDesignPlatformField {
    grid-column: auto;
  }

  .grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    margin: 14px 0 0;
  }

  .subtitle {
    white-space: normal;
  }

  .actions {
    justify-content: stretch;
  }

  .results-cta-question {
    width: 100%;
    margin-bottom: 4px;
  }

  #results .actions {
    margin-top: 28px;
  }

  .btn {
    width: 100%;
  }
}
