/* ==========================================================================
   Doccure Thank You Modal & Page Styles
   Matching Doccure.io Color Palette (#0e82fd, #09e5ab, #1b2a47)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

.doccure-thankyou-overlay {
  display: none !important;
}

.doccure-thankyou-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow: 
    0 24px 70px -15px rgba(14, 130, 253, 0.25),
    0 10px 30px -10px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(14, 130, 253, 0.1);
  transform: scale(0.82) translateY(24px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  overflow: hidden;
}

.doccure-thankyou-overlay.active .doccure-thankyou-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close Button */
.doccure-thankyou-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  z-index: 10;
}

.doccure-thankyou-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

/* Background Subtle Decorative Gradients */
.doccure-thankyou-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(9, 229, 171, 0.15) 0%, rgba(14, 130, 253, 0.1) 50%, rgba(255,255,255,0) 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* Animated Icon Squircle */
.doccure-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.doccure-icon-pulse {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(9, 229, 171, 0.4) 0%, rgba(14, 130, 253, 0.4) 100%);
  animation: doccurePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  z-index: 1;
}

.doccure-icon-squircle {
  position: relative;
  z-index: 2;
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: linear-gradient(135deg, #09e5ab 0%, #0e82fd 100%);
  box-shadow: 
    0 14px 30px -5px rgba(14, 130, 253, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0) rotate(-15deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.doccure-thankyou-overlay.active .doccure-icon-squircle {
  transform: scale(1) rotate(0deg);
}

/* SVG Checkmark Animation */
.doccure-checkmark-svg {
  width: 44px;
  height: 44px;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.doccure-checkmark-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.3s;
}

.doccure-thankyou-overlay.active .doccure-checkmark-path {
  stroke-dashoffset: 0;
}

/* Content Elements */
.doccure-thankyou-title {
  font-family: 'Outfit', 'Roboto', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1b2a47;
  line-height: 1.35;
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.doccure-thankyou-overlay.active .doccure-thankyou-title {
  opacity: 1;
  transform: translateY(0);
}

.doccure-thankyou-desc {
  font-family: 'Outfit', 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}

.doccure-thankyou-overlay.active .doccure-thankyou-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Action Button */
.doccure-thankyou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  padding: 16px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0e82fd 0%, #0060d0 100%);
  color: #ffffff !important;
  font-family: 'Outfit', 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -4px rgba(14, 130, 253, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(12px);
}

.doccure-thankyou-overlay.active .doccure-thankyou-btn {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.45s, transform 0.5s ease 0.45s, background 0.3s ease, box-shadow 0.3s ease;
}

.doccure-thankyou-btn:hover {
  background: linear-gradient(135deg, #09e5ab 0%, #0e82fd 100%);
  box-shadow: 0 14px 30px -4px rgba(14, 130, 253, 0.55);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.doccure-thankyou-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px -4px rgba(14, 130, 253, 0.4);
}

.doccure-btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.doccure-thankyou-btn:hover .doccure-btn-icon {
  transform: translateX(4px);
}

/* Confetti Canvas */
.doccure-confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Animations */
@keyframes doccurePulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .doccure-thankyou-card {
    padding: 36px 24px 28px;
    border-radius: 22px;
  }
  .doccure-thankyou-title {
    font-size: 22px;
  }
  .doccure-thankyou-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .doccure-icon-squircle, .doccure-icon-pulse {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }
  .doccure-checkmark-svg {
    width: 36px;
    height: 36px;
  }
}
