.kh-page {
  --kh-focus: #f5846d;
  --kh-surface: rgba(255, 255, 255, 0.04);
  --kh-surface-border: rgba(255, 255, 255, 0.22);
  color: var(--color-white);
}

.kh-page .kh-left {
  display: flex;
  flex-direction: column;
}

.kh-page .kh-header {
  width: min(100%, 390px);
}

.kh-page .kh-intro {
  margin: 0 0 1rem;
}

.kh-page .kh-intro p {
  margin: 0;
}

.kh-page .kh-progress {
  margin: 0 0 1.35rem;
  max-width: 348px;
}

.kh-page .kh-progress__meta {
  margin-bottom: 0.55rem;
}

.kh-page .kh-progress__line {
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
}

.kh-page .kh-progress__value {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.kh-page .kh-current-question {
  max-width: 11ch;
}

.kh-page--homepage {
  color: var(--color-white);
}

.kh-page--homepage .kh-card {
  width: 100%;
}

.kh-page--homepage .kh-header {
  width: min(100%, 520px);
}

.kh-page--homepage .kh-progress {
  margin-bottom: 1rem;
}

.kh-page--homepage .kh-question legend.gfield_label,
.kh-page--homepage .kh-question legend.gform-field-label {
  margin-bottom: 1.5rem;
}

.kh-page--homepage .textBox .button {
  margin-top: 1rem;
}

.kh-page .kh-form-shell,
.kh-page .gform_wrapper,
.kh-page form[id^="gform_"] {
  width: 100%;
}

.kh-page .kh-question fieldset {
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
}

.kh-page .kh-question legend {
  width: 100%;
  padding: 0;
}

.kh-page .gform_wrapper {
  margin: 0;
}

.kh-page .gform_heading,
.kh-page .gform_title,
.kh-page .gform_description {
  display: none;
}

.kh-page .gform_body,
.kh-page .gform-body,
.kh-page .gform_page,
.kh-page .gform_page_fields {
  margin-top: 0;
}

.kh-page .gform_fields {
  row-gap: 0;
}

.kh-page .gfield {
  margin: 0;
}

.kh-page .kh-ui-hidden {
  display: none !important;
}

.kh-page .gfield > .gfield_label,
.kh-page .gfield > .gform-field-label,
.kh-page .gfield > legend.gfield_label,
.kh-page .gfield > legend.gform-field-label {
  display: block;
  margin: 0 0 1rem;
  color: var(--color-white);
  font-family: var(--font-family-base), sans-serif;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem);
  font-weight: 400;
  line-height: 1.15;
}

.kh-page .kh-native-choice-list {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.kh-page .kh-choice-tabs {
  width: min(100%, 390px);
  margin-bottom: 0;
  display: grid;
  gap: 0.5rem;
}

.kh-page .kh-choice-tabs .kh-choice-item {
  width: min(100%, 390px);
}

.kh-page .kh-choice-button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 48px;
  padding: 5px 24px 5px 45px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 35px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-grey-90);
  font-family: var(--font-family-base), sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  width: 100%;
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: var(--duration);
}

.kh-page .kh-choice-button::before,
.kh-page .kh-choice-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 13px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.kh-page .kh-choice-button::before {
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
}

.kh-page .kh-choice-button::after {
  left: 18px;
  width: 10px;
  height: 10px;
  background-color: var(--color-white);
}

.kh-page .kh-choice-item.is-active .kh-choice-button {
  border-color: var(--color-white);
}

.kh-page .kh-choice-item.is-active .kh-choice-button::before {
  background-color: var(--color-white);
}

.kh-page .kh-choice-item.is-active .kh-choice-button::after {
  background-color: var(--color-primary);
}

.kh-page .kh-choice-button:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.kh-page .kh-choice-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.kh-page .kh-choice-button:focus-visible,
.kh-page .gform_button:focus-visible,
.kh-page .gform_next_button:focus-visible,
.kh-page .gform_previous_button:focus-visible {
  outline: 2px solid var(--kh-focus);
  outline-offset: 2px;
}

.kh-page .gform_validation_errors,
.kh-page .validation_error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(234, 93, 60, 0.14);
  color: #ffd1c7;
}

.kh-page .gfield_validation_message,
.kh-page .validation_message {
  margin-top: 0.75rem;
  color: #ffd1c7;
}

.kh-page .gform_footer,
.kh-page .gform_page_footer {
  margin-top: 5.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.kh-page .gform_button,
.kh-page .gform_next_button,
.kh-page .gform_previous_button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  border-radius: 4px;
  border: 0;
  font-size: var(--font-size-base);
  font-family: var(--font-family-base), sans-serif;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--duration);
  box-shadow: none;
}

.kh-page .gform_button,
.kh-page .gform_next_button {
  min-width: 226px;
  padding: 11px 48px 11px 34px;
  color: var(--color-white);
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 13.5L13.5 4.5M13.5 4.5H6.75M13.5 4.5V11.25' stroke='%230B0D0E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}

.kh-page .gform_previous_button {
  padding: 11px 24px;
  color: var(--color-white);
  background-color: rgba(158, 158, 158, 0.4);
}

.kh-page .gform_button:hover,
.kh-page .gform_next_button:hover {
  filter: brightness(1.02);
}

.kh-page .gform_previous_button:hover {
  background-color: var(--color-light);
}

.kh-page .gform_button:disabled,
.kh-page .gform_next_button:disabled,
.kh-page .gform_previous_button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.kh-page .kh-media {
  margin: 0;
  height: 100%;
}

.kh-page .kh-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.keuzehulp-result {
  display: grid;
  gap: 1.6rem;
  max-width: 980px;
  margin: 0 auto;
  color: var(--color-white);
}

.keuzehulp-result__header {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
}

.keuzehulp-result__eyebrow {
  margin: 0;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.keuzehulp-result h2 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.keuzehulp-result p {
  margin: 0;
  color: var(--color-grey-90);
  line-height: 1.55;
}

.keuzehulp-result__intro {
  max-width: 42rem;
}

.keuzehulp-result__hero {
  position: relative;
  min-height: min(72vw, 540px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  background: #1e1e1e;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.keuzehulp-result__product-image {
  margin: 0;
  position: absolute;
  inset: 0;
}

.keuzehulp-result__product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.62) 100%);
}

.keuzehulp-result__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.keuzehulp-result__product-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: inherit;
  padding: 18px 26px 27px 25px;
}

.keuzehulp-result__product-top,
.keuzehulp-result__product-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}

.keuzehulp-result__product-top {
  align-items: flex-start;
}

.keuzehulp-result__product-copy {
  min-width: 0;
}

.keuzehulp-result__product-bottom {
  margin-top: auto;
  align-items: center;
}

.keuzehulp-result__product-title {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin-bottom: 16px;
}

.keuzehulp-result__product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.keuzehulp-result__product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: solid 1px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  backdrop-filter: blur(15px);
}

.keuzehulp-result__product-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  flex: 1 1 320px;
}

.keuzehulp-result__product-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.keuzehulp-result__gallery-trigger {
  color: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.keuzehulp-result__gallery-trigger span {
  text-decoration: underline;
  display: inline-block;
  margin-right: 10px;
}

.keuzehulp-result__gallery-trigger i {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  border-radius: 999px;
  color: var(--color-primary);
  transition: var(--duration);
}

.keuzehulp-result__gallery-trigger i::before {
  content: "";
  width: 21px;
  height: 21px;
  display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M2.625 6.5625C2.625 5.11275 3.80025 3.9375 5.25 3.9375H10.2835C10.9795 3.9375 11.647 4.21403 12.1392 4.70627L13.6688 6.23588C14.161 6.72812 14.8285 7.00465 15.5245 7.00465H15.75C17.1997 7.00465 18.375 8.1799 18.375 9.62965V15.75C18.375 17.1997 17.1997 18.375 15.75 18.375H5.25C3.80025 18.375 2.625 17.1997 2.625 15.75V6.5625Z' stroke='%23F5846D' stroke-width='1.5'/%3E%3Cpath d='M10.5 15.0938C12.1909 15.0938 13.5625 13.7221 13.5625 12.0312C13.5625 10.3404 12.1909 8.96875 10.5 8.96875C8.80913 8.96875 7.4375 10.3404 7.4375 12.0312C7.4375 13.7221 8.80913 15.0938 10.5 15.0938Z' stroke='%23F5846D' stroke-width='1.5'/%3E%3C/svg%3E") center/21px 21px no-repeat;
}

.keuzehulp-result__gallery-trigger:hover span {
  text-decoration: none;
}

.keuzehulp-result__gallery-trigger:hover i,
.keuzehulp-result__gallery-trigger:focus i {
  color: var(--color-white);
  background-color: var(--color-primary);
}

.keuzehulp-result__gallery-trigger:hover i::before,
.keuzehulp-result__gallery-trigger:focus i::before {
  filter: brightness(0) invert(1);
}

.keuzehulp-result__product-price {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
  color: var(--color-white);
  font-size: 18px;
}

/* Result full-width layout: hide the right column image and span full width */

.kh-card--result {
  display: block !important;
  grid-template-columns: 1fr !important;
  padding: clamp(1.35rem, 2vw, 2.3rem);
  border-radius: 28px !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: linear-gradient(180deg, #2b2b2b 0%, #242424 100%) !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
}

.kh-card--result .kh-right,
.kh-card--result .kh-media,
.kh-card--result .kh-header {
  display: none !important;
}

.kh-card--result .kh-left {
  width: 100%;
  max-width: 100%;
}

/* No-image hero state */

.keuzehulp-result__hero--no-image {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.keuzehulp-result__hero--no-image .keuzehulp-result__product-overlay {
  justify-content: space-between;
}

.keuzehulp-result__empty {
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.keuzehulp-result__empty p {
  max-width: 40rem;
  margin: 0 auto;
}

/* Email trigger button */

.keuzehulp-result__email-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--color-primary);
  border-radius: 14px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-family-base), sans-serif;
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.keuzehulp-result__email-trigger:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  filter: brightness(1.08);
}

.keuzehulp-result__email-trigger:focus-visible {
  outline: 2px solid var(--kh-focus);
  outline-offset: 2px;
}

.keuzehulp-result__email-trigger svg {
  flex: 0 0 20px;
  opacity: 1;
}

/* Email modal */

.keuzehulp-result__email-modal .uk-modal-dialog {
  max-width: 520px;
  padding: 2rem 2rem 2.2rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.18);
}

.keuzehulp-result__email-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(17, 17, 17, 0.6);
}

.keuzehulp-result__email-modal-body {
  display: grid;
  gap: 0.5rem;
}

.keuzehulp-result__email-modal .keuzehulp-result__form-title {
  margin: 0;
  color: #111;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.keuzehulp-result__email-modal .keuzehulp-result__form-intro {
  max-width: 40rem;
  margin-bottom: 0.8rem;
  color: rgba(17, 17, 17, 0.76);
}

.keuzehulp-result__email-modal .gform_wrapper {
  margin: 0;
}

.keuzehulp-result__email-modal .gfield {
  margin: 0 0 1.2rem;
}

.keuzehulp-result__email-modal .gfield > .gfield_label,
.keuzehulp-result__email-modal .gfield > .gform-field-label,
.keuzehulp-result__email-modal .gfield > legend.gfield_label,
.keuzehulp-result__email-modal .gfield > legend.gform-field-label {
  margin-bottom: 0.7rem;
  color: #111;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 500;
}

.keuzehulp-result__email-modal .gfield_required_text {
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 500;
}

.keuzehulp-result__email-modal input[type="email"],
.keuzehulp-result__email-modal input[type="text"],
.keuzehulp-result__email-modal input[type="tel"] {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #111;
  font-size: 16px;
  box-shadow: none;
}

.keuzehulp-result__email-modal input[type="email"]::placeholder,
.keuzehulp-result__email-modal input[type="text"]::placeholder,
.keuzehulp-result__email-modal input[type="tel"]::placeholder {
  color: rgba(17, 17, 17, 0.54);
}

.keuzehulp-result__email-modal .gchoice {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.keuzehulp-result__email-modal .gfield-choice-input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: var(--color-primary);
}

.keuzehulp-result__email-modal .gform-field-label--type-inline {
  color: rgba(17, 17, 17, 0.8);
  font-size: 0.98rem;
  line-height: 1.45;
}

.keuzehulp-result__email-modal .gform_footer,
.keuzehulp-result__email-modal .gform_page_footer {
  margin-top: 1.8rem;
}

.keuzehulp-result__email-modal .gform_button,
.keuzehulp-result__email-modal .gform_next_button,
.keuzehulp-result__email-modal .gform_previous_button {
  min-height: 52px;
  border-radius: 12px;
}

.keuzehulp-result__email-modal .gform_button,
.keuzehulp-result__email-modal .gform_next_button {
  min-width: 240px;
  background-color: var(--color-primary);
}

.keuzehulp-result__email-modal .gform_validation_errors,
.keuzehulp-result__email-modal .validation_error {
  margin-bottom: 1.2rem;
}

.kh-page .kh-fade-out {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.kh-page .kh-back-wrap {
  margin-top: 2.4rem;
}

.kh-page .kh-back-button {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  padding: 11px 24px;
  border: 0;
  border-radius: 4px;
  background-color: rgba(158, 158, 158, 0.4);
  color: var(--color-white);
  font-family: var(--font-family-base), sans-serif;
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: var(--duration);
  box-shadow: none;
  min-width: 160px;
}

.kh-page .kh-back-button::before,
.kh-page .kh-back-button::after {
  content: none;
  display: none;
}

.kh-page .kh-back-button:hover {
  background-color: var(--color-light);
}

.kh-page .kh-back-button:focus-visible {
  outline: 2px solid var(--kh-focus);
  outline-offset: 2px;
}

.kh-admin-debug {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 180, 180, 0.35);
  background: rgba(255, 90, 90, 0.08);
  color: #ffdede;
}

/* Fullscreen result modal */

body.kh-modal-open {
  overflow: hidden;
}

.kh-result-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(11, 13, 14, 0.96);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.kh-result-modal--visible {
  opacity: 1;
}

.kh-result-modal--closing {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.kh-result-modal__inner {
  width: 100%;
  max-width: 980px;
  padding: 80px 24px 48px;
}

.kh-result-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1101;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white, #fff);
  cursor: pointer;
  transition: background 0.2s ease;
}

.kh-result-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.kh-result-modal__close:focus-visible {
  outline: 2px solid var(--kh-focus);
  outline-offset: 2px;
}

.kh-result-modal__close svg {
  width: 20px;
  height: 20px;
}

/* Ensure nested UIkit modals (email, gallery) appear above the result modal */

.kh-result-modal ~ .uk-modal,
.kh-result-modal .uk-modal {
  z-index: 1200 !important;
}

@media (max-width: 1279px) {
  .kh-page .kh-current-question {
    max-width: 13ch;
  }
}

@media (max-width: 980px) {
  .kh-page .kh-header,
  .kh-page .kh-progress,
  .kh-page .kh-choice-tabs,
  .kh-page .kh-choice-tabs .kh-choice-item,
  .kh-page .gform_button,
  .kh-page .gform_next_button,
  .kh-page .gform_previous_button {
    max-width: 100%;
    width: 100%;
  }

  .kh-page .gform_footer,
  .kh-page .gform_page_footer {
    margin-top: 2.4rem;
  }

  .kh-page .kh-choice-button {
    font-size: 18px;
  }

  .keuzehulp-result {
    gap: 1.25rem;
  }

  .keuzehulp-result__hero {
    min-height: 420px;
  }

  .keuzehulp-result__product-title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .keuzehulp-result__product-overlay {
    padding: 18px;
  }

  .keuzehulp-result__product-top,
  .keuzehulp-result__product-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .keuzehulp-result__product-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .keuzehulp-result__product-button {
    width: 100%;
  }

  .keuzehulp-result__product-price {
    align-self: flex-start;
    margin-left: 0;
    text-align: left;
  }

  .keuzehulp-result__email-modal .uk-modal-dialog {
    padding: 1.5rem;
    margin: 1rem;
  }

  .keuzehulp-result__email-trigger {
    width: 100%;
    justify-content: center;
  }

  .kh-result-modal__inner {
    padding: 72px 16px 32px;
  }

  .kh-result-modal__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}
