.cde-hidden { display: none !important; }

.cde-booking-redirect {
  max-width: 1180px;
  margin: 0 auto clamp(48px, 8vw, 96px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(150, 114, 76, .22);
  border-radius: 28px;
  background: linear-gradient(135deg, #fbf8f3 0%, #f3e9dc 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 22px 58px rgba(64, 55, 47, .08);
}

.cde-booking-redirect h2 { margin: 8px 0 12px; color: #40372f; }
.cde-booking-redirect p { max-width: 650px; margin: 0; color: #6b625a; }
.cde-booking-redirect .cde-button { flex: 0 0 auto; }

.cde-birth-date { animation: cdeConsentFade .2s ease; }

.cde-consent-flow h4,
.cde-consent-flow h5 { color: #40372f; margin: 0 0 14px; }

.cde-consent-flow h4 { font-size: clamp(1.25rem, 3vw, 1.65rem); }
.cde-consent-flow h5 { font-size: 1.05rem; }

.cde-consent-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 18px 0 26px;
}

.cde-consent-progress span {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  background: #eee8e0;
  color: #6b625a;
  font-weight: 700;
}

.cde-consent-progress span.active { background: #96724c; color: #fff; }
.cde-consent-progress span small { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); color: #6b625a; font-size: 10px; font-weight: 600; white-space: nowrap; }
.cde-consent-progress i { height: 2px; background: #ddd2c5; }

.cde-consent-step { animation: cdeConsentFade .25s ease; }
.cde-consent-step[hidden] { display: none !important; }

.cde-consent-identity,
.cde-signature-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.cde-consent-notice,
.cde-dry-care,
.cde-photo-permission,
.cde-attestation-text {
  background: #fbf8f3;
  border: 1px solid #e5d9cb;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
}

.cde-consent-list { margin: 12px 0 0 1.15rem; padding: 0; }
.cde-consent-list li { margin: 0 0 8px; line-height: 1.45; }
.cde-consent-checks { display: grid; gap: 10px; }
.cde-consent-choice { border: 1px solid #e5d9cb; border-radius: 12px; padding: 13px; background: #fff; }
.cde-consent-choice input { flex: 0 0 auto; }

.cde-photo-choice { border: 0; padding: 0; margin: 0; }
.cde-photo-choice legend { font-weight: 700; margin-bottom: 10px; }
.cde-photo-choice .cde-radio { display: flex; gap: 10px; align-items: center; border: 1px solid #e5d9cb; border-radius: 10px; padding: 12px; margin: 8px 0; background: #fff; }

.cde-signature-field { grid-column: 1 / -1; border: 0; padding: 0; margin-top: 8px; }
.cde-signature-field legend { font-weight: 700; margin-bottom: 8px; }
.cde-signature-field canvas { display: block; width: 100%; height: 150px; border: 2px solid #cbb89f; border-radius: 12px; background: #fff; touch-action: none; }
.cde-signature-field > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 7px; }
.cde-signature-clear,
.cde-step-back { border: 1px solid #96724c; color: #6f5236; background: #fff; border-radius: 9px; padding: 10px 14px; cursor: pointer; }

.cde-step-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.cde-step-message { min-height: 1.5em; color: #a3261f; font-weight: 700; margin: 12px 0; }
.cde-storage-consent { margin-top: 18px; }

@keyframes cdeConsentFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .cde-booking-redirect { margin-inline: 18px; border-radius: 20px; align-items: stretch; flex-direction: column; }
  .cde-booking-redirect .cde-button { width: 100%; justify-content: center; text-align: center; }
  .cde-consent-identity,
  .cde-signature-details { grid-template-columns: 1fr; }
  .cde-consent-progress span small { display: none; }
  .cde-consent-notice,
  .cde-dry-care,
  .cde-photo-permission,
  .cde-attestation-text { padding: 13px; }
  .cde-consent-list { margin-left: 1rem; }
  .cde-signature-field canvas { height: 165px; }
  .cde-step-actions { align-items: stretch; }
  .cde-step-actions .cde-public-submit { flex: 1; }
}
