/* ============================================================
   NCM Theme – Thank You Page & Form States
   ============================================================ */

/* ── Button Loader Spinner ───────────────────────────────────── */
.ncm-btn-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ncmSpin 0.6s linear infinite;
  vertical-align: middle;
}

.ncm-submitting {
  opacity: 0.85;
  cursor: wait !important;
  pointer-events: none;
}

@keyframes ncmSpin {
  to { transform: rotate(360deg); }
}

/* ── Inline Form Success Box ─────────────────────────────────── */
.ncm-form-success {
  text-align: center;
  padding: 40px 20px;
  animation: ncmFadeInUp 0.5s ease;
}

.ncm-form-success__icon {
  font-size: 56px;
  color: #2e7d32;
  margin-bottom: 12px;
  animation: ncmPopIn 0.4s ease 0.2s both;
}

.ncm-form-success__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  color: var(--navy, #1B3A5C);
  margin: 0 0 8px;
}

.ncm-form-success__text {
  font-size: 15px;
  color: var(--gray, #6c757d);
  margin: 0;
  max-width: 400px;
  margin: 0 auto;
}

/* ── Form Error Message ──────────────────────────────────────── */
.ncm-form-message {
  display: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}

.ncm-form-message--error {
  background: #fde8e8;
  color: #c33;
  border: 1px solid #f5c6cb;
}

/* ── Thank You Page ──────────────────────────────────────────── */
.ncm-thankyou-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F2440 0%, #1B3A5C 50%, #0F2440 100%);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

/* Background circles animation */
.ncm-thankyou-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ncm-thankyou-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.ncm-thankyou-circle--1 {
  width: 500px;
  height: 500px;
  background: #C8962E;
  top: -120px;
  right: -100px;
  animation: ncmFloat 8s ease-in-out infinite;
}

.ncm-thankyou-circle--2 {
  width: 350px;
  height: 350px;
  background: #fff;
  bottom: -80px;
  left: -60px;
  animation: ncmFloat 10s ease-in-out infinite reverse;
}

.ncm-thankyou-circle--3 {
  width: 200px;
  height: 200px;
  background: #C8962E;
  top: 40%;
  left: 15%;
  animation: ncmFloat 6s ease-in-out infinite 2s;
}

@keyframes ncmFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

/* Card */
.ncm-thankyou-card {
  background: #fff;
  border-radius: 16px;
  padding: 60px 48px;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: ncmFadeInUp 0.6s ease;
}

/* Animated SVG Checkmark */
.ncm-thankyou-check {
  margin: 0 auto 24px;
  width: 80px;
  height: 80px;
}

.ncm-thankyou-svg {
  width: 80px;
  height: 80px;
}

.ncm-thankyou-svg__circle {
  fill: none;
  stroke: #2e7d32;
  stroke-width: 3;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: ncmCircleDraw 0.6s ease 0.2s forwards;
  transform-origin: center;
}

.ncm-thankyou-svg__check {
  fill: none;
  stroke: #2e7d32;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: ncmCheckDraw 0.4s ease 0.7s forwards;
}

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

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

/* Title */
.ncm-thankyou-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  color: #1B3A5C;
  margin: 0 0 12px;
  animation: ncmFadeInUp 0.5s ease 0.5s both;
}

/* Message */
.ncm-thankyou-message {
  font-size: 16px;
  color: #6c757d;
  line-height: 1.6;
  margin: 0 0 32px;
  animation: ncmFadeInUp 0.5s ease 0.6s both;
}

/* Steps */
.ncm-thankyou-steps {
  text-align: left;
  margin: 0 0 32px;
}

.ncm-thankyou-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f8f9fb;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 3px solid #C8962E;
  animation: ncmFadeInUp 0.4s ease both;
}

.ncm-thankyou-step:last-child {
  margin-bottom: 0;
}

.ncm-thankyou-step__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B3A5C, #2a5580);
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
}

.ncm-thankyou-step__text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* Actions */
.ncm-thankyou-actions {
  animation: ncmFadeInUp 0.4s ease both;
}

.ncm-thankyou-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
}

/* Animations */
@keyframes ncmFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ncmPopIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .ncm-thankyou-card {
    padding: 40px 24px;
    margin: 0 16px;
  }
  .ncm-thankyou-title {
    font-size: 26px;
  }
}
