:root {
  --red: #cc3333;
  --blue: #000033;
  --light: #e8e8e8;
  --mid: #94979e;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--light);
  color: var(--blue);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.max-wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

/* top bar */

.top-bar {
  background: var(--blue);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* LOGO ONLY row */
.top-bar-logo-only {
  justify-content: space-between;
}

.top-logo {
  height: 40px;
  width: auto;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.language-switcher select {
  min-width: 132px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue);
  font: inherit;
  padding: 8px 10px;
}

/* content head */

.page-wrap {
  padding: 28px 0 40px;
}

.hero-head h1 {
  margin: 0;
  color: var(--blue);
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-head p {
  margin: 10px 0 0;
  font-size: 1.15rem;
  color: #5f6470;
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
}

/* configurator card */

.config-card {
  margin-top: 26px;
  background: var(--white);
  border: 1px solid #d8dde6;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 51, 0.12);
  padding: 26px 30px 18px;
}

.progress-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.step-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #d6d9df;
  overflow: hidden;
}

.progress-fill {
  width: 14.2857%;
  height: 100%;
  background: var(--red);
  border-radius: 999px;
  transition: width 0.2s ease;
}

/* question */

.question-area h2 {
  margin: 0;
  font-size: 2.05rem;
  line-height: 1.15;
  color: var(--blue);
}

.question-help {
  margin: 8px 0 18px;
  font-size: 1.2rem;
  color: #666c78;
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
}

/* options */

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.option-card {
  position: relative;
  border: 1px solid #d4d9e2;
  border-radius: 14px;
  background: var(--white);
  padding: 14px 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 51, 0.08);
  min-height: 104px;

  /* új elrendezés: szöveg az ikon mellett, középen */
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-card:hover {
  border-color: var(--red);
}

.option-card.selected {
  border: 2px solid var(--red);
  background: #fff8f8;
}

.option-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #f2f4f8;
  border: 1px solid #dde2ea;
  display: grid;
  place-items: center;
  margin-bottom: 0; /* régi: 10px — horizontálisan 0 kell */
  flex-shrink: 0;
}

.option-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.option-icon-wrap svg {
  width: 30px;
  height: 30px;
  stroke: #000033;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.option-label {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0;
}

.check-badge {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1,15rem;
  line-height: 1;
  font-weight: 900;
}

/* slider */

.weight-wrap {
  margin-top: 8px;
  border: 1px solid #d4d9e2;
  border-radius: 14px;
  padding: 16px;
  background: #fcfcfd;
}

.weight-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.weight-range {
  width: 100%;
  accent-color: var(--red);
}

.weight-scale {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: #6f7582;
  font-size: 0.95rem;
}

.weight-other {
  margin-top: 14px;
}

.weight-other label {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
}

.weight-other input {
  width: 100%;
  border: 1px solid #ccd2dc;
  border-radius: 10px;
  background: var(--white);
  padding: 10px 11px;
  font: inherit;
}

/* actions */

.actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #dbe0e8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 16px rgba(204, 51, 51, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: #b82d2d;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--white);
  color: #5a606d;
  border: 1px solid #ccd2dc;
}

/* contact */

.contact-area h2 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 1.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.95rem;
  color: var(--blue);
  font-weight: 600;
}

.req {
  color: var(--red);
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #ccd2dc;
  border-radius: 10px;
  background: var(--white);
  padding: 10px 11px;
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.helper {
  margin: 10px 0 0;
  color: #69707c;
  font-size: 0.95rem;
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
}

.contact-error {
  min-height: 18px;
  margin-top: 8px;
  color: var(--red);
  font-size: 0.95rem;
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  white-space: pre-wrap;
}

.contact-debug {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #ccd2dc;
  border-radius: 10px;
  background: #f4f6fa;
  color: #22304d;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* responsive */

@media (max-width: 980px) {
  .hero-head h1 {
    font-size: 2.2rem;
  }

  .options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .config-card {
    padding: 18px 16px 14px;
  }

  .hero-head h1 {
    font-size: 1.8rem;
  }

  .question-area h2 {
    font-size: 1.55rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

.final-thankyou {
  max-width: 640px;
  margin: 16px auto 8px;
  padding: 24px 26px;
  border: 1px solid #e3e5ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 51, 0.05);
  text-align: center;
}

.final-thankyou .ok {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #e8f6ed;
  color: #1f7a3f;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  margin: 0 auto 14px;
}

.final-thankyou h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: #000033;
}

.final-thankyou .final-line {
  max-width: 520px;
  margin: 10px auto 0;
  line-height: 1.45;
  color: #4c5566;
  text-align: left;
}

.final-thankyou .final-cta {
  margin-top: 16px;
  min-width: 250px;
}
