:root {
  --kdrr-wine: #7f1425;
  --kdrr-wine-dark: #3c0e16;
  --kdrr-ink: #342525;
  --kdrr-muted: #746361;
  --kdrr-paper: #f7f1e9;
  --kdrr-line: #e4d8cb;
  --kdrr-gold: #c89943;
  --kdrr-green: #16703a;
}

.kdrr-shell,
.kdrr-showcase {
  box-sizing: border-box;
  max-width: 980px;
  margin: 32px auto;
  padding: 0 16px;
  color: var(--kdrr-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.kdrr-shell *,
.kdrr-showcase * { box-sizing: border-box; }

.kdrr-form-hero,
.kdrr-empty-card {
  background: linear-gradient(145deg, #230b10, #5e0d1d);
  border-radius: 22px;
  padding: 46px 34px;
  color: #fff8ee;
  text-align: center;
  box-shadow: 0 16px 44px rgba(42, 11, 16, .16);
}

.kdrr-form-hero h1,
.kdrr-empty-card h1,
.kdrr-showcase-heading h2,
.kdrr-card h2,
.kdrr-success-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: inherit;
}

.kdrr-form-hero h1,
.kdrr-empty-card h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1.04; }
.kdrr-form-hero p,
.kdrr-empty-card p { max-width: 690px; margin: 16px auto 0; font-size: 19px; line-height: 1.65; }

.kdrr-kicker,
.kdrr-small-label {
  color: #d8b370;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.kdrr-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 610px;
  margin: 26px auto;
  padding: 0 8px;
}

.kdrr-progress-item { display: flex; align-items: center; gap: 9px; color: #91817e; font-size: 14px; }
.kdrr-progress-item span {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #cdbeb4;
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
}
.kdrr-progress-item.is-active { color: var(--kdrr-wine); }
.kdrr-progress-item.is-active span { background: var(--kdrr-wine); color: #fff; border-color: var(--kdrr-wine); }
.kdrr-progress-line { height: 2px; margin: 0 14px; background: #ddd0c5; overflow: hidden; }
.kdrr-progress-line i { display: block; width: 0; height: 100%; background: var(--kdrr-wine); transition: width .25s ease; }

.kdrr-step { display: none; }
.kdrr-step.is-active { display: block; animation: kdrrFade .24s ease; }
@keyframes kdrrFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.kdrr-card,
.kdrr-public-summary,
.kdrr-review-card,
.kdrr-success-card {
  background: #fff;
  border: 1px solid var(--kdrr-line);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(48, 31, 31, .07);
}
.kdrr-card { padding: 30px; margin: 0 0 20px; }
.kdrr-card h2 { color: #32191c; font-size: 31px; line-height: 1.2; }
.kdrr-muted { margin: 8px 0 25px; color: var(--kdrr-muted); font-size: 15px; line-height: 1.65; }

.kdrr-selected-product { display: flex; align-items: center; gap: 20px; }
.kdrr-selected-image { width: 108px; height: 108px; flex: 0 0 auto; border-radius: 13px; background: var(--kdrr-paper); overflow: hidden; }
.kdrr-selected-image img { width: 100%; height: 100%; object-fit: contain; }
.kdrr-selected-product h2 { margin-top: 5px; }
.kdrr-verified-inline { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--kdrr-green); font-size: 13px; font-weight: 700; }
.kdrr-verified-inline span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--kdrr-green); color: #fff; font-size: 12px; }

.kdrr-product-switcher { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--kdrr-line); }
.kdrr-product-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.kdrr-product-pill { border: 1px solid #d6c7bd; background: #faf7f3; color: #4c3736; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 700; }
.kdrr-product-pill.is-selected { background: var(--kdrr-wine); color: #fff; border-color: var(--kdrr-wine); }

.kdrr-field { margin: 0 0 25px; }
.kdrr-field-label { display: block; margin-bottom: 10px; color: #3d292a; font-size: 16px; font-weight: 700; }
.kdrr-required { color: #b1142a; font-size: 14px; font-weight: 800; vertical-align: top; }
.kdrr-optional { color: #8b7a76; font-size: 12px; font-weight: 600; margin-left: 6px; }
.kdrr-field select,
.kdrr-field textarea,
.kdrr-field input[type="text"] {
  width: 100%;
  border: 1px solid #cebfb5;
  border-radius: 11px;
  background: #fff;
  color: #302323;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  outline: 0;
}
.kdrr-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.kdrr-field select:focus,
.kdrr-field textarea:focus,
.kdrr-field input:focus { border-color: var(--kdrr-wine); box-shadow: 0 0 0 3px rgba(127, 20, 37, .10); }
.kdrr-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.kdrr-star-input { display: flex; gap: 9px; flex-wrap: wrap; }
.kdrr-star-input label { position: relative; cursor: pointer; }
.kdrr-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.kdrr-star-input span { display: block; color: #d7cbc1; font-size: 43px; line-height: 1; transition: color .15s ease, transform .15s ease; }
.kdrr-star-input em { display: none; }
.kdrr-star-input label.is-lit span,
.kdrr-star-input label:hover span { color: var(--kdrr-gold); transform: translateY(-1px); }

.kdrr-scale-input { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kdrr-scale-input label { position: relative; cursor: pointer; }
.kdrr-scale-input input { position: absolute; opacity: 0; pointer-events: none; }
.kdrr-scale-input span { min-height: 77px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #d8c9be; border-radius: 11px; background: #fbf8f5; padding: 8px; text-align: center; transition: .15s ease; }
.kdrr-scale-input strong { font-size: 19px; }
.kdrr-scale-input small { color: #735f5d; font-size: 11px; line-height: 1.25; }
.kdrr-scale-input label.is-selected span { border-color: var(--kdrr-wine); background: var(--kdrr-wine); color: #fff; box-shadow: 0 5px 15px rgba(127,20,37,.18); }
.kdrr-scale-input label.is-selected small { color: #fff1ec; }

.kdrr-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.kdrr-actions-end { justify-content: flex-end; }
.kdrr-primary-button,
.kdrr-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 11px;
  padding: 13px 24px;
  border: 0;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.kdrr-primary-button { background: var(--kdrr-wine); color: #fff !important; }
.kdrr-primary-button:hover { background: #68101e; color: #fff; }
.kdrr-secondary-button { background: #f1e9e0; color: #493534 !important; border: 1px solid #d9cbbf; }
.kdrr-secondary-button:hover { background: #e9ddd1; }
.kdrr-primary-button[disabled] { opacity: .55; cursor: wait; }

.kdrr-character-count { margin-top: 6px; text-align: right; color: #94847f; font-size: 12px; }
.kdrr-upload-box { border: 1px dashed #cdb9aa; border-radius: 15px; background: #fbf7f2; padding: 28px 22px; text-align: center; }
.kdrr-upload-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; background: #efe2d6; color: var(--kdrr-wine); font-size: 30px; }
.kdrr-upload-box h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 25px; color: #361d20; }
.kdrr-upload-box p { max-width: 610px; margin: 0 auto 16px; color: var(--kdrr-muted); font-size: 14px; line-height: 1.55; }
.kdrr-photo-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.kdrr-photo-preview-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eee; }
.kdrr-photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.kdrr-photo-preview-item button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(32,16,17,.84); color: #fff; cursor: pointer; }

.kdrr-check-row { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: #5e4b49; font-size: 14px; line-height: 1.55; }
.kdrr-check-row input { flex: 0 0 auto; margin-top: 3px; }
.kdrr-reward-note { margin-top: 20px; border-left: 4px solid var(--kdrr-gold); background: #f5ecdd; padding: 15px 17px; border-radius: 0 9px 9px 0; color: #5c493f; font-size: 14px; line-height: 1.6; }
.kdrr-form-error,
.kdrr-alert { margin: 16px 0; padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.55; }
.kdrr-form-error,
.kdrr-alert-error { background: #fff0f0; border: 1px solid #e5adad; color: #7a1e1e; }

.kdrr-success-card { padding: 48px 30px; text-align: center; }
.kdrr-success-check { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--kdrr-green); color: #fff; font-size: 34px; }
.kdrr-success-card h2 { font-size: 38px; color: #351a1e; }
.kdrr-success-card p { max-width: 650px; margin: 12px auto 24px; color: var(--kdrr-muted); font-size: 17px; line-height: 1.65; }

/* Public review showcase */
.kdrr-showcase { max-width: 1180px; padding-top: 18px; padding-bottom: 18px; }
.kdrr-showcase-heading { max-width: 820px; margin: 0 auto 35px; text-align: center; }
.kdrr-showcase-heading .kdrr-kicker { color: var(--kdrr-wine); }
.kdrr-showcase-heading h2 { margin-top: 8px; color: #2f171a; font-size: clamp(36px, 5vw, 62px); line-height: 1.05; }
.kdrr-showcase-heading p { max-width: 700px; margin: 18px auto 0; color: var(--kdrr-muted); font-size: 17px; line-height: 1.65; }

.kdrr-public-summary { display: grid; grid-template-columns: .9fr 1.2fr 1fr; gap: 28px; align-items: center; padding: 29px; }
.kdrr-summary-main { text-align: center; }
.kdrr-summary-score { color: #2e1719; font-family: Georgia, serif; font-size: 48px; line-height: 1; }
.kdrr-summary-copy { margin: 6px 0 4px; color: #685654; font-size: 14px; }
.kdrr-public-stars i,
.kdrr-card-stars i { color: #d8cdc2; font-style: normal; }
.kdrr-public-stars i.is-filled,
.kdrr-card-stars i.is-filled { color: var(--kdrr-gold); }
.kdrr-public-stars { margin-top: 7px; font-size: 23px; letter-spacing: 2px; }
.kdrr-card-stars { font-size: 17px; letter-spacing: 1px; }

.kdrr-rating-bars { display: grid; gap: 8px; }
.kdrr-rating-row { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; color: #6b5957; font-size: 12px; }
.kdrr-rating-row > div { height: 9px; border-radius: 999px; overflow: hidden; background: #ece5de; }
.kdrr-rating-row i { display: block; height: 100%; background: #8fa37b; }
.kdrr-rating-row strong { text-align: right; font-weight: 600; }

.kdrr-trust-badges { display: flex; justify-content: center; gap: 11px; flex-wrap: wrap; }
.kdrr-trust-badge { width: 105px; min-height: 105px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #d9cbbf; border-radius: 50%; background: #fbf7f2; text-align: center; color: #485744; }
.kdrr-trust-badge span { color: var(--kdrr-green); font-size: 24px; font-weight: 800; line-height: 1; }
.kdrr-trust-badge strong { margin-top: 6px; font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .4px; }
.kdrr-milestone-badge { border-color: #c6a25e; background: #f7edda; color: #5c4321; }
.kdrr-milestone-badge span { color: #986b23; }

.kdrr-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 36px 0 15px; }
.kdrr-section-title h3 { margin: 0; font-family: Georgia, serif; color: #30191c; font-size: 31px; }
.kdrr-section-title a { color: var(--kdrr-wine); font-weight: 700; }

.kdrr-photo-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.kdrr-gallery-item { display: block; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: #eee; }
.kdrr-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.kdrr-gallery-item:hover img { transform: scale(1.035); }
.kdrr-gallery-empty { border: 1px dashed #d4c5ba; border-radius: 13px; padding: 25px; color: var(--kdrr-muted); text-align: center; }

.kdrr-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kdrr-review-slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 35%); gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 3px 2px 14px; }
.kdrr-review-slider .kdrr-review-card { scroll-snap-align: start; }
.kdrr-review-card { padding: 21px; }
.kdrr-review-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kdrr-review-author { margin-top: 6px; color: #3e292b; font-size: 15px; font-weight: 700; }
.kdrr-verified-badge,
.kdrr-native-verified { display: inline-flex; align-items: center; gap: 5px; color: var(--kdrr-green); font-size: 11px; font-weight: 700; }
.kdrr-verified-badge span,
.kdrr-native-verified span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--kdrr-green); color: #fff; }
.kdrr-review-product { display: inline-block; margin-top: 16px; color: var(--kdrr-wine); font-size: 13px; font-weight: 700; text-decoration: none; }
.kdrr-review-text { color: #5b4847; font-size: 14px; line-height: 1.62; }
.kdrr-review-text p { margin: 11px 0 0; }
.kdrr-review-thumbs { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.kdrr-review-thumbs a { width: 68px; height: 68px; border-radius: 8px; overflow: hidden; display: block; }
.kdrr-review-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.kdrr-review-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee5de; color: #8b7976; font-size: 10px; line-height: 1.35; }
.kdrr-review-footer span { max-width: 68%; text-align: right; }
.kdrr-showcase-cta { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 30px; }
.kdrr-showcase-cta small { color: #82716e; text-align: center; }
.kdrr-native-verified { margin-top: 10px; }
.kdrr-incentive-note { display: block; margin-top: 9px; color: #857370; font-size: 11px; }

@media (max-width: 900px) {
  .kdrr-public-summary { grid-template-columns: 1fr 1.3fr; }
  .kdrr-trust-badges { grid-column: 1 / -1; }
  .kdrr-review-grid { grid-template-columns: 1fr 1fr; }
  .kdrr-photo-gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 680px) {
  .kdrr-shell, .kdrr-showcase { padding-left: 10px; padding-right: 10px; margin-top: 18px; }
  .kdrr-form-hero, .kdrr-empty-card { border-radius: 15px; padding: 34px 20px; }
  .kdrr-form-hero p, .kdrr-empty-card p { font-size: 17px; }
  .kdrr-progress-item strong { display: none; }
  .kdrr-card { padding: 21px 16px; border-radius: 14px; }
  .kdrr-card h2 { font-size: 27px; }
  .kdrr-selected-product { align-items: flex-start; gap: 13px; }
  .kdrr-selected-image { width: 82px; height: 82px; }
  .kdrr-two-col { grid-template-columns: 1fr; gap: 0; }
  .kdrr-scale-input { grid-template-columns: 1fr; }
  .kdrr-scale-input span { min-height: 50px; flex-direction: row; justify-content: flex-start; padding: 10px 13px; text-align: left; }
  .kdrr-scale-input small { font-size: 12px; }
  .kdrr-actions { flex-direction: column-reverse; }
  .kdrr-actions .kdrr-primary-button,
  .kdrr-actions .kdrr-secondary-button { width: 100%; }
  .kdrr-photo-preview { grid-template-columns: repeat(2, 1fr); }
  .kdrr-public-summary { grid-template-columns: 1fr; padding: 23px 17px; }
  .kdrr-rating-bars { max-width: 430px; width: 100%; margin: 0 auto; }
  .kdrr-photo-gallery { grid-template-columns: repeat(3, 1fr); }
  .kdrr-review-grid { grid-template-columns: 1fr; }
  .kdrr-review-slider { grid-auto-columns: 88%; }
  .kdrr-section-title h3 { font-size: 26px; }
}


.kdrr-reward-banner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: center;
  border: 2px solid rgba(200,153,67,.34);
  background: linear-gradient(135deg, #fffaf3, #f6ecdf);
}
.kdrr-reward-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.kdrr-reward-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-height: 170px;
  border-radius: 24px;
  background: radial-gradient(circle at top, #a61a30, #5f0f1d 72%);
  color: #fff6e8;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  padding: 16px 12px;
  box-shadow: 0 16px 32px rgba(60,14,22,.2);
}
.kdrr-reward-number {
  display: block;
  font-size: 64px;
  line-height: .95;
  font-weight: 700;
}
.kdrr-reward-word {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: .5px;
}
.kdrr-reward-copy h2 { margin: 6px 0 10px; }
.kdrr-reward-copy p { margin: 0; color: #594846; font-size: 17px; line-height: 1.75; }
.kdrr-reward-kicker { display:block; margin-bottom: 8px; }
.kdrr-submit-row .kdrr-primary-button { min-width: 240px; }
.kdrr-upload-box p strong,
.kdrr-reward-note strong { color: #4d131d; }

@media (max-width: 900px) {
  .kdrr-reward-banner { grid-template-columns: 1fr; text-align: center; }
  .kdrr-reward-badge { width: 200px; min-height: 156px; }
  .kdrr-reward-number { font-size: 58px; }
  .kdrr-reward-word { font-size: 26px; }
}


.kdrr-success-reward,
.kdrr-success-no-reward {
  max-width: 610px;
  margin: 22px auto 26px;
  padding: 22px;
  border-radius: 14px;
  text-align: center;
}
.kdrr-success-reward {
  border: 2px solid rgba(200,153,67,.48);
  background: #f7ecdc;
}
.kdrr-success-reward strong,
.kdrr-success-no-reward strong {
  display: block;
  color: #4d131d;
  font-size: 18px;
  line-height: 1.45;
}
.kdrr-success-reward code {
  display: block;
  width: fit-content;
  margin: 14px auto;
  padding: 15px 22px;
  border-radius: 10px;
  background: #4a0915;
  color: #fff8ed;
  font-size: clamp(20px, 5vw, 27px);
  font-weight: 800;
  letter-spacing: 1.6px;
}
.kdrr-success-reward span,
.kdrr-success-no-reward span {
  display: block;
  color: #665451;
  font-size: 14px;
  line-height: 1.6;
}
.kdrr-success-no-reward {
  border: 1px solid #dfcfc1;
  background: #faf5ef;
}
