.hcdr-shell {
  min-height: 100vh;
  padding: 22px 0 30px;
}

.hcdr-shell *,
.hcdr-shell *::before,
.hcdr-shell *::after {
  box-sizing: border-box;
}

.hcdr-container {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Utility classes used in markup (no Bootstrap dependency) */
.hcdr-shell .text-center {
  text-align: center;
}

.hcdr-shell .font-weight-bold {
  font-weight: 400;
}

.hcdr-shell .d-block {
  display: block;
}

.hcdr-shell .d-flex {
  display: flex;
}

.hcdr-shell .justify-content-end {
  justify-content: flex-end;
}

.hcdr-shell .mb-3 {
  margin-bottom: 1rem;
}

.hcdr-shell .mb-4 {
  margin-bottom: 1.5rem;
}

.hcdr-shell .mt-3 {
  margin-top: 1rem;
}

.hcdr-shell .p-3 {
  padding: 1rem;
}

.hcdr-shell .p-4 {
  padding: 1.5rem;
}

.hcdr-shell .px-3 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hcdr-shell .pb-3 {
  padding-bottom: 1rem;
}

.hcdr-shell .h6 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.hcdr-shell hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

.hcdr-shell .alert.alert-danger {
  padding: 0.75rem 1rem;
  border: 1px solid #f5c6cb;
  border-radius: 0.35rem;
  background-color: #f8d7da;
  color: #721c24;
}

.hcdr-shell .btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  cursor: pointer;
  text-decoration: none;
}

/* Form controls (class names kept for parity with distributor step 1) */
.hcdr-form .form-group {
  margin-bottom: 1rem;
}

.hcdr-form label {
  margin-bottom: 0.35rem;
}

.hcdr-form .form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.hcdr-form .form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.hcdr-form .form-control.is-invalid {
  border-color: #dc3545;
}

.hcdr-form .form-control.is-valid {
  border-color: #28a745;
}

.hcdr-form select.form-control {
  height: calc(1.5em + 0.75rem + 2px);
}

.hcdr-form .invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.hcdr-form .form-check {
  position: relative;
  display: block;
  margin-bottom: 0.35rem;
}

.hcdr-form .form-check-inline {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  margin-bottom: 0.35rem;
  padding-left: 0;
}

.hcdr-form .form-check-inline .form-check-input {
  position: static;
  margin: 0 0.35rem 0 0;
  flex-shrink: 0;
}

.hcdr-form .form-check-inline .form-check-label {
  margin: 0;
  color: #4a6562;
  font-weight: 500;
}

.hcdr-form .form-check-input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  vertical-align: top;
}

/* avoid nice-select effect from main theme */
.hcdr-form select.form-control {
    display: block !important;
}
.hcdr-form .nice-select,
.hcdr-form .select2,
.hcdr-form .chosen-container {
    display: none !important;
}

/* Responsive grid: .row + .col-md-* inside the form */
.hcdr-form .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -8px;
  margin-left: -8px;
}

.hcdr-form .row > [class*='col-'] {
  position: relative;
  width: 100%;
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 576px) {
  .hcdr-form .row > .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .hcdr-form .row > .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .hcdr-form .row > .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .hcdr-form .row > .col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
}

.hcdr-form-container {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(43, 58, 74, 0.14);
  overflow: hidden;
}

.hcdr-header-image {
  width: 100%;
  display: block;
  border-radius: 14px !important;
  margin-bottom:24px;
}

.hcdr-topbar {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  padding: 0 28px 14px;
}

/* Match photo release main title: .wpr-container .header h1 */
.hcdr-title {
  color: #ff646c;
  font-size: clamp(24px, 4.2vw, 36px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  width: 100%;
}

.hcdr-footer {
  text-align: center;
  margin-top: 18px;
}

.hcdr-powered-by {
  color: #096768;
  font-size: 18px;
  margin-bottom: 8px;
}

.hcdr-footer img {
  width: 140px;
  max-width: 80%;
  height: auto;
}

/* Bold group headings: charcoal-grey instead of default black */
.hcdr-form label.font-weight-bold {
  color: #616a75;
}

/* Match photo release section headings: .wpr-form .form-section h3 */
.hcdr-form .hcdr-section-title {
  color: #36535f;
  font-weight: 600;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #6bd3dc;
  letter-spacing: 0;
  text-transform: none;
}

/* First question in bottom block: same color as section titles (General / Shipping) */


@media (max-width: 768px) {
  .hcdr-topbar {
    text-align: center;
  }

  .hcdr-title {
    text-align: center;
  }
}

/* Valid state on selects (check icon background) */
.hcdr-form select.form-control.is-valid {
  border-color: #28a745;
  padding-right: calc(1.5em + 0.75rem);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2328a745' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")
    no-repeat right calc(0.375em + 0.1875rem) center / calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Radios: neutral ring, selected = green control + label, invalid group = red all */
.hcdr-form input[type='radio'].form-check-input {
  accent-color: #b8c2c9;
}

.hcdr-form input[type='radio'].form-check-input:checked,
.hcdr-form input[type='radio'].form-check-input.is-valid {
  accent-color: #28a745;
}

.hcdr-form input[type='radio'].form-check-input.is-invalid {
  accent-color: #dc3545;
}

.hcdr-form input[type='radio'].form-check-input:checked + .form-check-label,
.hcdr-form input[type='radio'].form-check-input.is-valid + .form-check-label {
  color: #28a745;
}

.hcdr-form input[type='radio'].form-check-input.is-invalid + .form-check-label {
  color: #dc3545;
}

/* Checkbox: teal when OK; invalid = red border + red label (like reference form) */
.hcdr-form input[type='checkbox'].form-check-input {
  accent-color: #66cccc;
}

.hcdr-form input[type='checkbox'].form-check-input.is-invalid {
  accent-color: #dc3545;
  box-shadow: 0 0 0 1px #dc3545;
  outline: none;
  border-radius: 4px;
}

.hcdr-form input[type='checkbox'].form-check-input.is-invalid + .form-check-label {
  color: #dc3545;
}

.hcdr-form input[type='checkbox'].form-check-input:checked + .form-check-label,
.hcdr-form input[type='checkbox'].form-check-input.is-valid + .form-check-label {
  color: #28a745;
}

.hcdr-form input[type='checkbox'].form-check-input:checked,
.hcdr-form input[type='checkbox'].form-check-input.is-valid {
  accent-color: #28a745;
  box-shadow: none;
}

/* Pill teal buttons (Previous outline + primary solid) */
.hcdr-form .d-flex.justify-content-end {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hcdr-form .btn.btn-primary,
.hcdr-thankyou-card .btn.btn-primary {
  background-color: #66cccc;
  border: 2px solid #66cccc;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.85rem;
  min-width: 7.5rem;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Solid primary: no extra ring by default; clear outer outline on hover */
.hcdr-form .btn.btn-primary:hover,
.hcdr-thankyou-card .btn.btn-primary:hover {
  background-color: #52b8b8;
  border-color: #52b8b8;
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #2d9090;
}

.hcdr-form .btn.btn-primary:focus,
.hcdr-thankyou-card .btn.btn-primary:focus {
  background-color: #52b8b8;
  border-color: #52b8b8;
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #2d9090;
}

.hcdr-form .btn.btn-outline-primary {
  color: #66cccc;
  border: 2px solid #66cccc;
  background-color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.55rem 1.85rem;
  min-width: 7.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.hcdr-form .btn.btn-outline-primary:hover {
  color: #2d9090;
  background-color: rgba(102, 204, 204, 0.14);
  border-color: #2d9090;
  border-width: 2px;
  /* Outer ring so the outline change reads clearly on hover */
  box-shadow: 0 0 0 3px rgba(45, 144, 144, 0.28);
}

.hcdr-form .btn.btn-outline-primary:focus {
  color: #3a9e9e;
  background-color: rgba(102, 204, 204, 0.12);
  border-color: #3a9e9e;
  box-shadow: 0 0 0 0.2rem rgba(102, 204, 204, 0.3);
}

/* Thank-you page — same visual language as photo release (.wpr-thank-you) */
.hcdr-thankyou-page {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hcdr-thankyou-card {
  text-align: center;
  margin: 0 auto;
  padding: 48px 32px 40px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 107, 107, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(25, 68, 98, 0.12);
  position: relative;
  overflow: hidden;
}

.hcdr-thankyou-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(103, 212, 205, 0.28) 0%, rgba(103, 212, 205, 0) 70%);
  pointer-events: none;
}

.hcdr-thankyou-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0 auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(10, 146, 175, 0.18) 0%, rgba(10, 146, 175, 0) 72%);
  pointer-events: none;
}

.hcdr-thankyou-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(103, 212, 205, 0.16);
  color: #0f7d85;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hcdr-thankyou-badge::before {
  content: '\2713';
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #67d4cd 0%, #0a92af 100%);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

/* Matches reg-baby views/distributor/style.css .thank-you */
.hcdr-thankyou-card-title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  font-style: italic;
  color: #ff646c;
}

/* Matches reg-baby .thank-you-message */
.hcdr-thankyou-card-lead {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto 12px;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.4;
  color: #66cccc;
  font-weight: 700;
}

.hcdr-thankyou-card-text {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto 10px;
  font-size: 17px;
  line-height: 1.65;
  color: #4f6674;
}

.hcdr-thankyou-card-text a {
  color: #0a92af;
  font-weight: 700;
  text-decoration: none;
}

.hcdr-thankyou-card-text a:hover {
  text-decoration: underline;
}

.hcdr-thankyou-card .hcdr-thankyou-cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 24px;
  text-decoration: none !important;
}

.hcdr-thankyou-card .hcdr-thankyou-cta:hover,
.hcdr-thankyou-card .hcdr-thankyou-cta:focus,
.hcdr-thankyou-card .hcdr-thankyou-cta:visited {
  text-decoration: none !important;
  color: #fff;
}

.hcdr-thankyou-card-footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 107, 107, 0.1);
  text-align: center;
}

.hcdr-thankyou-card-footer .hcdr-powered-by {
  margin-bottom: 6px;
  font-size: 16px;
}

.hcdr-thankyou-card-footer img {
  width: 120px;
  max-width: 70%;
  height: auto;
}

/* Thank-you banner: directly under lead line, compact width */
.hcdr-thankyou-card .hcdr-thankyou-banner-wrap {
  max-width: min(100%, 380px);
  width: 100%;
  margin: 0.35rem auto 1.15rem;
}

.hcdr-thankyou-card .hcdr-thankyou-banner {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  box-shadow: none;
}

@media (max-width: 768px) {
  .hcdr-thankyou-card {
    padding: 36px 20px 32px;
    border-radius: 22px;
  }

  .hcdr-thankyou-card-text {
    font-size: 15px;
  }

}

/* Bottom-of-form block (packages + confirmation) */
.hcdr-form .hcdr-late-fields-sep {
  margin: 2.25rem 0 1.5rem;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hcdr-form .hcdr-late-fields {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.hcdr-form .hcdr-small-text-input {
  width: 260px;
  max-width: 100%;
}

.hcdr-form .hcdr-small-text-input.form-control {
  display: inline-block;
}

.hcdr-form .hcdr-inline-label-input {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hcdr-form .hcdr-inline-small-input {
  width: 110px;
  max-width: 110px;
  flex: 0 0 auto;
  text-align: center;
}

@media (max-width: 576px) {
  .hcdr-form .hcdr-inline-label-input {
    display: block;
  }

  .hcdr-form .hcdr-inline-small-input {
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    text-align: left;
  }
}

.hcdr-form .hcdr-confirm-check .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-left: 0;
}

.hcdr-form .hcdr-confirm-check .form-check-input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  border-radius: 2px;
  cursor: pointer;
}

.hcdr-form .hcdr-confirm-check .form-check-label {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #364b59;
  font-weight: 500;
  cursor: pointer;
}

