/* ===========================
   THANK-YOU PAGE STYLES
   Loaded only on Thank-You page.
   Standalone design (no header/footer).
   =========================== */

/* Make body the green gradient background (full-screen) */
body.edugates-thankyou-page {
  background: linear-gradient(135deg, #3ed337 0%, #6ee81e 35%, #aaf50e 65%, #d9f812 100%) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
}

body.edugates-thankyou-page::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.edugates-thankyou-page::after {
  content: '';
  position: fixed;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,30,122,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.thankyou-card {
  background: #fff;
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  padding: 60px 50px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(30,30,122,0.25);
  position: relative;
  z-index: 2;
  animation: thankyouPopIn .6s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 0 auto;
}

@keyframes thankyouPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.thankyou-card .success-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: #fff;
  font-size: 60px;
  font-weight: 800;
  position: relative;
  box-shadow: 0 16px 40px rgba(62,211,55,0.4);
  animation: thankyouSuccessBounce 1s cubic-bezier(0.34, 1.56, 0.64, 1) .2s both;
}

@keyframes thankyouSuccessBounce {
  0%   { opacity: 0; transform: scale(0.5); }
  50%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

.thankyou-card .success-icon::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 3px solid var(--green-1);
  animation: thankyouRingPulse 2.5s infinite;
  opacity: .5;
}

@keyframes thankyouRingPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.18); opacity: 0; }
}

.thankyou-card .success-checkmark {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-card .success-checkmark svg {
  width: 60px;
  height: 60px;
  stroke: #fff;
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thankyou-card .success-checkmark svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: thankyouDrawCheck .6s ease .8s forwards;
}

@keyframes thankyouDrawCheck {
  to { stroke-dashoffset: 0; }
}

.thankyou-arabic {
  font-family: var(--arabic);
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 8px;
  font-weight: 700;
  animation: thankyouFadeUp .6s ease .5s both;
}

.thankyou-title {
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  animation: thankyouFadeUp .6s ease .65s both;
}

.thankyou-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
}

.thankyou-subtitle {
  font-size: 17px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 500;
  animation: thankyouFadeUp .6s ease .8s both;
}

.thankyou-subtitle strong { color: var(--navy); font-weight: 700; }

@keyframes thankyouFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.thankyou-info {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 32px;
  text-align: left;
  animation: thankyouFadeUp .6s ease .95s both;
}

.thankyou-info-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.thankyou-info-text { font-size: 14px; color: var(--ink2); line-height: 1.7; }
.thankyou-info-text strong { color: var(--navy); font-weight: 700; }

.thankyou-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: thankyouFadeUp .6s ease 1.1s both;
}

.thankyou-card .btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--r8);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(245,124,46,0.4);
  transition: all .25s;
}

.thankyou-card .btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-3px);
}

.thankyou-card .btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 12px 28px;
  border-radius: var(--r8);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .25s;
}

.thankyou-card .btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.thankyou-contact-strip {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed var(--line);
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: thankyouFadeUp .6s ease 1.25s both;
}

.thankyou-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink3);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}

.thankyou-contact-item:hover { color: var(--orange); }

.thankyou-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .thankyou-card { padding: 40px 26px; }
  .thankyou-card .success-icon { width: 100px; height: 100px; }
  .thankyou-info { padding: 16px 18px; }
  .thankyou-card .btn-primary,
  .thankyou-card .btn-secondary { width: 100%; justify-content: center; }
  .thankyou-contact-strip { flex-direction: column; gap: 14px; align-items: flex-start; text-align: left; }
}
