/*
 * D-081: the shared thank-you pop-up (partials/thank-you-modal.blade.php). Same look as the "Book a free call"
 * booked step: a drawn tick, one line of thanks, the RM badge, quick contact chips, one Done button.
 */
.cy-ty {
  position: fixed;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 40px 32px 28px;
  border: 0;
  border-radius: 28px;
  background: var(--cy-neutral-0);
  color: var(--cy-text-primary);
  font-family: var(--cy-font);
  text-align: center;
  box-shadow: 0 32px 80px rgba(23, 23, 23, 0.22), 0 0 0 1px rgba(23, 23, 23, 0.04);
  overflow-y: auto;
}
.cy-ty[open] { display: flex; flex-direction: column; align-items: center; animation: cy-ty-in 0.32s var(--cy-ease); }
.cy-ty::backdrop { background: rgba(23, 23, 23, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cy-ty :where(p) { margin: 0; }
.cy-ty [hidden] { display: none !important; }
.cy-ty .cy-icon { width: 18px; height: 18px; flex: none; }
.cy-ty :focus { outline: none; }
.cy-ty :focus-visible { outline: 2px solid var(--cy-neutral-900); outline-offset: 3px; }
@keyframes cy-ty-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.cy-ty__close {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: var(--cy-neutral-100); color: var(--cy-text-primary); cursor: pointer;
  transition: background-color 0.15s, transform 0.2s var(--cy-ease);
}
.cy-ty__close:hover { background: var(--cy-neutral-200); transform: rotate(90deg); }
.cy-ty .cy-ty__close .cy-icon { width: 20px; height: 20px; }

.cy-ty__badge {
  display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 20px; border-radius: 50%;
  background: radial-gradient(circle, var(--cy-success-100) 0%, var(--cy-success-50) 70%);
  color: var(--cy-success-600); box-shadow: 0 0 0 10px rgba(12, 167, 80, 0.06);
}
.cy-ty__ring { stroke-dasharray: 151; stroke-dashoffset: 151; }
.cy-ty__check { stroke-dasharray: 36; stroke-dashoffset: 36; }
.cy-ty.is-shown .cy-ty__ring { animation: cy-ty-draw 0.6s 0.1s var(--cy-ease) forwards; }
.cy-ty.is-shown .cy-ty__check { animation: cy-ty-draw 0.4s 0.55s var(--cy-ease) forwards; }
@keyframes cy-ty-draw { to { stroke-dashoffset: 0; } }

.cy-ty__title { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.cy-ty__text { margin-top: 8px; max-width: 360px; font-size: 15px; line-height: 22px; color: var(--cy-text-body); }
.cy-ty__ref { margin-top: 12px; padding: 4px 12px; border-radius: var(--cy-radius-full); background: var(--cy-neutral-100); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.cy-ty__rm { margin-top: 20px; }
.cy-ty__rm .pl-rm {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 302px; max-width: 100%; margin: 0; padding: 2px 8px;
  border-radius: 8px; background: linear-gradient(to right, #fff 0.871%, #fdeeec 41.791%); font: 500 var(--cy-fs-xs)/16px var(--cy-font);
}
.cy-ty__rm .pl-rm__icon, .cy-ty__rm .pl-rm__smile { position: relative; display: block; flex-shrink: 0; overflow: hidden; }
.cy-ty__rm .pl-rm__icon { width: 32px; height: 32px; }
.cy-ty__rm .pl-rm__smile { position: absolute; }
.cy-ty__rm .pl-rm__icon span, .cy-ty__rm .pl-rm__smile span { position: absolute; display: block; }
.cy-ty__rm .pl-rm__icon img { display: block; width: 100%; height: 100%; }

.cy-ty__or { margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--cy-text-secondary); }
.cy-ty__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.cy-ty__chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--cy-neutral-200);
  border-radius: var(--cy-radius-full); color: var(--cy-text-primary); font-size: 13px; font-weight: 500; text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.cy-ty__chip:hover { border-color: var(--cy-brand-400); background: var(--cy-brand-50); color: var(--cy-text-primary); text-decoration: none; }
.cy-ty .cy-ty__chip .cy-icon { color: var(--cy-brand-600); }
.cy-ty__done { margin-top: 24px; }

@media (max-width: 639.98px) {
  .cy-ty { inset: auto 0 0 0; width: 100%; max-width: 100%; margin: 0; padding: 36px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .cy-ty[open] { animation: cy-ty-up 0.35s var(--cy-ease); }
  .cy-ty__title { font-size: 21px; line-height: 28px; }
}
@keyframes cy-ty-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .cy-ty[open] { animation: none; }
  .cy-ty .cy-ty__ring, .cy-ty .cy-ty__check { animation: none !important; stroke-dashoffset: 0; }
}
