:root {
  --ccs-olive: #6f7759;
  --ccs-matcha: #95a07a;
  --ccs-oat: #f3eee6;
  --ccs-cream: #f8f4ee;
  --ccs-taupe: #c5af97;
  --ccs-espresso: #8c7866;
  --ccs-ink: #2f3428;
  --ccs-gold: #d8b46d;
  --ccs-rose: #c98478;
}

.ccs-survey-shell,
.ccs-survey-shell * {
  box-sizing: border-box;
}

.ccs-survey-shell {
  position: relative;
  isolation: isolate;
  max-width: min(980px, calc(100vw - 32px));
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  overflow: hidden;
  color: var(--ccs-ink);
  border: 1px solid rgba(140, 120, 102, 0.24);
  border-radius: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 10% 0%, rgba(149, 160, 122, 0.25), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(216, 180, 109, 0.18), transparent 20rem),
    linear-gradient(145deg, rgba(248, 244, 238, 0.88), rgba(243, 238, 230, 0.72));
  box-shadow:
    0 34px 90px rgba(47, 52, 40, 0.13),
    inset 0 1px 0 rgba(255,255,255,0.72);
  backdrop-filter: blur(18px) saturate(1.12);
}

.ccs-survey-shell::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px solid rgba(111,119,89,0.12);
  border-radius: clamp(18px, 3.4vw, 30px);
  pointer-events: none;
}

.ccs-survey-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  top: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(149,160,122,0.38), transparent 68%);
  filter: blur(4px);
  z-index: -2;
  pointer-events: none;
  animation: ccsFloatGlow 10s ease-in-out infinite;
}

@keyframes ccsFloatGlow {
  0%,100% { transform: translate3d(0,0,0) scale(1); opacity: .85; }
  50% { transform: translate3d(-22px,18px,0) scale(1.08); opacity: 1; }
}

.ccs-survey-head {
  max-width: 720px;
  margin: 0 0 clamp(1.5rem, 4vw, 2.4rem);
}

.ccs-front-kicker,
.ccs-survey-shell .ccs-required {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .6rem;
  color: var(--ccs-espresso);
  font-family: Inter, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ccs-front-kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ccs-matcha), var(--ccs-gold));
  box-shadow: 0 0 0 4px rgba(149,160,122,.14);
}

.ccs-survey-shell h2,
.entry-content .ccs-survey-shell h2,
.wp-site-blocks .ccs-survey-shell h2 {
  max-width: 760px;
  margin: 0 0 .7rem;
  color: var(--ccs-olive);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: .015em;
  text-transform: none;
}

.ccs-survey-head p:not(.ccs-front-kicker) {
  margin: 0;
  color: rgba(47,52,40,.78);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.ccs-front-notice {
  margin: 0 0 1.2rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  font-family: Inter, Arial, sans-serif;
  font-weight: 750;
}

.ccs-front-success {
  color: #405229;
  border: 1px solid rgba(111,119,89,.32);
  background: rgba(149, 192, 95, .18);
}

.ccs-front-error {
  color: #7a3e34;
  border: 1px solid rgba(201,132,120,.32);
  background: rgba(201,132,120,.14);
}

.ccs-survey-form {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.35rem);
}

.ccs-field {
  position: relative;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.45rem);
  border: 1px solid rgba(140,120,102,.23);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.54), rgba(248,244,238,.36));
  box-shadow:
    0 18px 46px rgba(47,52,40,.07),
    inset 0 1px 0 rgba(255,255,255,.68);
  backdrop-filter: blur(14px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.ccs-field:hover {
  transform: translateY(-1px);
  border-color: rgba(111,119,89,.35);
  box-shadow: 0 24px 60px rgba(47,52,40,.1), inset 0 1px 0 rgba(255,255,255,.72);
}

.ccs-field legend {
  display: block;
  float: left;
  width: 100%;
  margin: 0 0 .9rem;
  padding: 0;
  color: var(--ccs-olive);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .01em;
}

.ccs-field legend::after {
  content: "";
  display: block;
  clear: both;
}

.ccs-required {
  margin-left: .45rem !important;
  color: var(--ccs-espresso) !important;
  font-size: .62rem !important;
  vertical-align: middle;
}

.ccs-scale,
.ccs-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  clear: both;
}

.ccs-scale label,
.ccs-choice-list label {
  cursor: pointer;
}

.ccs-scale input,
.ccs-choice-list input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ccs-scale span,
.ccs-choice-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: .68rem .9rem;
  color: var(--ccs-olive);
  border: 1px solid rgba(111,119,89,.25);
  border-radius: 999px;
  background: rgba(248,244,238,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  font-family: Inter, Arial, sans-serif;
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .04em;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ccs-scale label:hover span,
.ccs-choice-list label:hover span {
  transform: translateY(-2px);
  border-color: rgba(111,119,89,.5);
  box-shadow: 0 14px 26px rgba(47,52,40,.12), inset 0 1px 0 rgba(255,255,255,.8);
}

.ccs-scale input:checked + span,
.ccs-choice-list input:checked + span {
  color: #fffaf3;
  border-color: rgba(111,119,89,.8);
  background: linear-gradient(135deg, var(--ccs-olive), var(--ccs-matcha));
  box-shadow: 0 16px 34px rgba(111,119,89,.28), inset 0 1px 0 rgba(255,255,255,.25);
}

.ccs-scale input:focus-visible + span,
.ccs-choice-list input:focus-visible + span {
  outline: 3px solid rgba(216,180,109,.5);
  outline-offset: 3px;
}

.ccs-scale-labels {
  display: flex;
  justify-content: space-between;
  clear: both;
  margin-top: .55rem;
  color: rgba(47,52,40,.62);
  font-family: Inter, Arial, sans-serif;
  font-size: .82rem;
  font-weight: 700;
}

.ccs-voice-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: stretch;
  clear: both;
}

.ccs-voice-wrap input,
.ccs-voice-wrap textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: .95rem 1rem;
  color: var(--ccs-ink);
  border: 1px solid rgba(140,120,102,.32);
  border-radius: 18px;
  background: rgba(255,250,243,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
}

.ccs-voice-wrap textarea {
  min-height: 136px;
}

.ccs-voice-wrap input:focus,
.ccs-voice-wrap textarea:focus {
  outline: none;
  border-color: rgba(111,119,89,.75);
  box-shadow: 0 0 0 4px rgba(149,160,122,.16), inset 0 1px 0 rgba(255,255,255,.86);
}

.ccs-dictate {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-width: 138px;
  min-height: 46px;
  margin: 4px 0 0;
  padding: .68rem 1rem;
  overflow: hidden;
  cursor: pointer;
  color: #fffaf3;
  border: 1px solid rgba(111,119,89,.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #6f7759, #95a07a);
  box-shadow: 0 14px 28px rgba(47,52,40,.14);
  font-family: Inter, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: normal;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ccs-dictate::before {
  content: "";
  position: absolute;
  inset: -80% auto auto -40%;
  width: 42%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.44), transparent);
  transform: rotate(22deg) translateX(-150%);
  transition: transform .45s ease;
}

.ccs-dictate:hover,
.ccs-dictate:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(47,52,40,.18);
  filter: saturate(1.08);
}

.ccs-dictate:hover::before,
.ccs-dictate:focus-visible::before {
  transform: rotate(22deg) translateX(420%);
}


.ccs-dictate.is-unsupported {
  background: linear-gradient(135deg, rgba(140,120,102,.9), rgba(197,175,151,.9));
  color: #fffaf3;
}

.ccs-dictate.is-listening {
  background: linear-gradient(135deg, #95c85f, #d8b46d);
  color: #2f3428;
  animation: ccsListenPulse 1.1s ease-in-out infinite;
}

@keyframes ccsListenPulse {
  0%,100% { box-shadow: 0 14px 28px rgba(47,52,40,.14), 0 0 0 0 rgba(149,200,95,.4); }
  50% { box-shadow: 0 18px 34px rgba(47,52,40,.18), 0 0 0 8px rgba(149,200,95,.08); }
}

.ccs-consent-box {
  display: grid;
  gap: .35rem;
  padding: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid rgba(111,119,89,.24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(248,244,238,.72), rgba(255,255,255,.42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  font-family: Inter, Arial, sans-serif;
}

.ccs-consent-label {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  color: var(--ccs-ink);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.45;
}

.ccs-consent-label input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  margin: .1rem 0 0;
  border: 2px solid rgba(111,119,89,.46);
  border-radius: 8px;
  background: rgba(255,250,243,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ccs-consent-label input[type="checkbox"]:checked {
  border-color: var(--ccs-olive);
  background:
    linear-gradient(135deg, rgba(255,255,255,.0), rgba(255,255,255,.16)),
    linear-gradient(135deg, var(--ccs-olive), var(--ccs-matcha));
  box-shadow: 0 0 0 4px rgba(149,160,122,.16), inset 0 1px 0 rgba(255,255,255,.35);
}

.ccs-consent-label input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  color: #fffaf3;
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.ccs-consent-label input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(216,180,109,.5);
  outline-offset: 3px;
}

.ccs-consent-required {
  margin: .2rem 0 0 2.45rem;
  color: #6f7759;
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .02em;
}

.ccs-privacy-note {
  margin: .1rem 0 0 2.45rem;
  color: rgba(47,52,40,.64);
  font-size: .9rem;
  line-height: 1.5;
}

.ccs-front-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 1.6rem;
  overflow: hidden;
  cursor: pointer;
  color: #fffaf3;
  border: 1px solid rgba(111,119,89,.7);
  border-radius: 999px;
  background: linear-gradient(135deg, #596446 0%, #7f8d5e 55%, #c5af97 100%);
  box-shadow: 0 18px 44px rgba(47,52,40,.22);
  font-family: Inter, Arial, sans-serif;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: normal;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.ccs-front-btn::before {
  content: "";
  position: absolute;
  top: -130%;
  left: -20%;
  width: 32%;
  height: 320%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
  transform: rotate(24deg) translateX(-240%);
  transition: transform .55s ease;
}

.ccs-front-btn:hover,
.ccs-front-btn:focus-visible {
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 26px 60px rgba(47,52,40,.26);
}

.ccs-front-btn:hover::before,
.ccs-front-btn:focus-visible::before {
  transform: rotate(24deg) translateX(520%);
}

.ccs-hidden-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  .ccs-survey-shell {
    max-width: calc(100vw - 20px);
    margin: 1.25rem auto;
    padding: 1rem;
  }

  .ccs-voice-wrap {
    grid-template-columns: 1fr;
  }

  .ccs-dictate {
    justify-self: start;
    min-width: 0;
    width: auto;
  }

  .ccs-scale span,
  .ccs-choice-list span {
    min-height: 40px;
    min-width: 40px;
    padding: .62rem .8rem;
  }

  .ccs-consent-required,
  .ccs-privacy-note {
    margin-left: 0;
  }
}
