/* Completion / consent page — matches Merck DEC certificate mockup */

body.thankyou-page {
  background: #EEE8F4 !important;
  background-image: none !important;
}

body.thankyou-page::before {
  background: transparent;
}

.thankyou-shell {
  max-width: 920px;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.completion-sheet {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(85, 1, 67, 0.12);
  overflow: hidden;
  border: 1px solid rgba(133, 1, 67, 0.08);
}

.completion-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #F6EEF5 0%, #F3E7F4 55%, #EFE4F8 100%);
  border-bottom: 1px solid rgba(133, 1, 67, 0.08);
}

.completion-hero-copy {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.completion-check-circle {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 18px rgba(133, 1, 67, 0.28);
}

.completion-title {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  font-weight: 700;
  color: #1E1033;
  line-height: 1.2;
}

.completion-sub {
  margin: 0;
  color: #5B4B6A;
  font-size: 0.98rem;
  line-height: 1.45;
}

.certificate-art {
  position: relative;
  flex: none;
  width: 220px;
  height: 150px;
}

.dha-tag {
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%);
  z-index: 3;
  white-space: nowrap;
  background: #fff;
  color: var(--maroon);
  border: 1.5px solid var(--maroon);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(133, 1, 67, 0.16);
}

.certificate-card {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 150px;
  height: 108px;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff 0%, #FBF7FC 100%);
  border: 3px solid var(--maroon);
  box-shadow: 0 10px 24px rgba(133, 1, 67, 0.18);
  transform: rotate(-4deg);
}

.certificate-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem;
  text-align: center;
}

.certificate-inner img {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.certificate-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--maroon);
}

.certificate-seal {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #FFE08A 0%, #FDBB2D 45%, #D4920F 100%);
  box-shadow: 0 2px 0 #B87908;
  position: relative;
}

.certificate-seal::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 10px;
  height: 16px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent 0 35%, #FDBB2D 35% 65%, transparent 65%),
    linear-gradient(#FDBB2D, #FDBB2D);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 50% 78%, 15% 100%);
}

.certificate-envelope {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  background: var(--maroon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 10px 20px rgba(133, 1, 67, 0.3);
}

.envelope-check {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #22C55E;
  color: #fff;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.completion-body {
  padding: 1.75rem 2rem 2rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E1033;
}

.section-heading .optional {
  font-weight: 500;
  color: #7A6B88;
  font-size: 0.95rem;
}

.section-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #F3E7F4;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.section-lead {
  color: #5B4B6A;
  margin-bottom: 1.25rem;
}

.cert-label {
  font-weight: 600;
  color: #2A1B3D;
  margin-bottom: 0.4rem;
}

.cert-label .req {
  color: #DC2626;
}

.input-icon {
  position: relative;
}

.input-icon > i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--maroon);
  pointer-events: none;
  z-index: 2;
}

.input-icon .cert-input {
  padding-left: 2.65rem;
}

.cert-input {
  border: 1.5px solid #C9A3C0 !important;
  border-radius: 12px !important;
  min-height: 3.1rem;
  color: #1E1033;
  background: #fff;
  box-shadow: none !important;
}

.cert-input:focus {
  border-color: var(--maroon) !important;
  box-shadow: 0 0 0 3px rgba(133, 1, 67, 0.12) !important;
}

.cert-input::placeholder {
  color: #A398B0;
}

.phone-row {
  display: flex;
  gap: 0.75rem;
}

.phone-country {
  max-width: 9.75rem;
  flex: none;
  padding-left: 0.75rem !important;
}

.consent-panel {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #EDE4F2;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.85rem 0 0.9rem;
}

.consent-check .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  border: 1.5px solid #C9A3C0;
  flex: none;
}

.consent-check .form-check-input:checked {
  background-color: var(--maroon);
  border-color: var(--maroon);
}

.consent-check .form-check-label {
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
}

.consent-statement {
  background: #F5F2F7;
  border: 1px solid #E5DDEA;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-size: 0.84rem;
  color: #5B4B6A;
  line-height: 1.55;
}

.consent-statement p {
  margin-bottom: 0.65rem;
  color: inherit;
}

.consent-statement a {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: none;
}

.consent-statement a:hover {
  text-decoration: underline;
}

.submit-wrap {
  text-align: center;
  padding-top: 0.25rem;
}

.btn-completion {
  min-width: 180px;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  background: var(--maroon);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 22px rgba(133, 1, 67, 0.28);
}

.btn-completion:hover,
.btn-completion:focus {
  background: var(--maroon-dark);
  color: #fff !important;
  filter: none;
}

.btn-completion:disabled {
  opacity: 0.7;
}

.submit-note {
  margin: 1rem 0 0;
  color: #7A6B88;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.45rem;
  max-width: 36rem;
}

.submit-note i {
  color: var(--maroon);
  margin-top: 0.15rem;
}

.thankyou-page #user-chip {
  display: inline-flex;
}

@media (max-width: 767.98px) {
  .completion-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 1.35rem 1.25rem;
  }

  .certificate-art {
    margin: 0 auto;
  }

  .completion-body {
    padding: 1.35rem 1.25rem 1.75rem;
  }

  .completion-title {
    font-size: 1.45rem;
  }

  .phone-row {
    flex-direction: column;
  }

  .phone-country {
    max-width: none;
  }
}
