/* 067 Group website forms - branded thank-you panel and inline alerts.
   Colours: navy #222671, gold #FFCB08. All text sits on white so contrast
   stays well above WCAG AA regardless of the surrounding card colour. */

.o67-thanks {
  display: none;
  background: #ffffff;
  border: 1px solid #e3e7f1;
  border-left: 4px solid #ffcb08;
  border-radius: 0 10px 10px 0;
  padding: 26px 24px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(34, 38, 113, 0.08);
}

.o67-thanks.is-visible {
  display: block;
  animation: o67-thanks-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes o67-thanks-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.o67-thanks__tick {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: block;
}

.o67-thanks__tick circle {
  fill: none;
  stroke: #222671;
  stroke-width: 3;
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: o67-draw 0.65s ease-out 0.1s forwards;
}

.o67-thanks__tick path {
  fill: none;
  stroke: #ffcb08;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: o67-draw 0.35s ease-out 0.55s forwards;
}

@keyframes o67-draw {
  to { stroke-dashoffset: 0; }
}

.o67-thanks__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  color: #222671;
}

.o67-thanks__text {
  margin: 0 auto 4px;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.65;
  color: #3d4453;
}

.o67-thanks__meta {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #eceff6;
  font-size: 13px;
  line-height: 1.7;
  color: #5b6474;
}

.o67-thanks__meta a {
  color: #222671;
  font-weight: 600;
  text-decoration: none;
}

.o67-thanks__meta a:hover,
.o67-thanks__meta a:focus {
  text-decoration: underline;
}

/* Inline error alert on white, readable on any card colour. */
.o67-alert {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e6b0b0;
  border-left: 4px solid #c0392b;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #8a2318;
}

.o67-alert.is-visible {
  display: block;
}

/* Submit button spinner state. */
.o67-busy {
  position: relative;
  pointer-events: none;
  opacity: 0.72;
}

@media (max-width: 480px) {
  .o67-thanks { padding: 22px 16px; }
  .o67-thanks__title { font-size: 18px; }
  .o67-thanks__text { font-size: 14px; }
}
