/* Thank You page (WP) – aligned with reference/demo-design/Thank Page */
:root {
  --mrc-primary: #11B4F5;
  --mrc-text: #06425A;

  --mrc-success: #10b981;
  --mrc-success-2: #059669;

  --mrc-gray-50: #f9fafb;
  --mrc-gray-100: #f3f4f6;
  --mrc-gray-200: #e5e7eb;
  --mrc-gray-300: #d1d5db;
  --mrc-gray-600: #4b5563;
  --mrc-gray-700: #374151;
  --mrc-gray-900: #111827;
  --mrc-white: #ffffff;

  --mrc-radius-sm: 0.375rem;
  --mrc-radius-md: 0.5rem;
  --mrc-radius-lg: 0.75rem;
  --mrc-radius-xl: 1rem;
  --mrc-radius-full: 9999px;

  --mrc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --mrc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --mrc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; }

@keyframes mrcSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mrcMoveBackground {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

@keyframes mrcScaleIn {
  from { opacity: 0; transform: scale(0.3) rotate(-45deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes mrcFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0.2; }
}

.mrc-thankyou-page {
  background: var(--mrc-gray-100);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--mrc-gray-900);
}

.thank-you-container {
  background: var(--mrc-white);
  border-radius: var(--mrc-radius-xl);
  box-shadow: var(--mrc-shadow-xl);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  animation: mrcSlideUp 0.5s ease-out;
}

.thank-you-header {
  background: linear-gradient(135deg, var(--mrc-success) 0%, var(--mrc-success-2) 100%);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.thank-you-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: mrcMoveBackground 20s linear infinite;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: var(--mrc-white);
  border-radius: var(--mrc-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  animation: mrcScaleIn 0.6s ease-out 0.2s both;
}

.success-icon i {
  font-size: 3.5rem;
  color: var(--mrc-success);
}

.thank-you-header h1 {
  color: var(--mrc-white);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  animation: mrcFadeIn 0.6s ease-out 0.4s both;
}

.thank-you-header p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
  animation: mrcFadeIn 0.6s ease-out 0.6s both;
}

.thank-you-content {
  padding: 2rem;
}

.booking-card {
  background: var(--mrc-gray-50);
  border-radius: var(--mrc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 2px solid var(--mrc-gray-200);
  animation: mrcFadeIn 0.6s ease-out 0.8s both;
}

.booking-number {
  background: var(--mrc-success) ;
  color: var(--mrc-white);
  padding: 1rem;
  border-radius: var(--mrc-radius-md);
  text-align: center;
  margin-bottom: 1.5rem;
}

.booking-number span {
  display: block;
  font-size: 0.875rem;
  opacity: 0.92;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.booking-number strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.booking-details {
  display: grid;
  gap: 1rem;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.75rem;
  background: var(--mrc-white);
  border-radius: var(--mrc-radius-md);
  transition: all 0.2s ease;
}

.detail-row:hover {
  box-shadow: var(--mrc-shadow-sm);
  transform: translateX(5px);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mrc-gray-600);
  font-size: 0.875rem;
}

.detail-label i {
  font-size: 1.25rem;
  color: var(--mrc-primary);
}

.detail-value {
  font-weight: 600;
  color: var(--mrc-gray-900);
  text-align: right;
}

.next-steps {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  border-radius: var(--mrc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  animation: mrcFadeIn 0.6s ease-out 1s both;
}

.next-steps h3 {
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #92400e;
}

.next-steps ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.next-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--mrc-gray-700);
  font-size: 0.875rem;
}

.next-steps li i {
  color: var(--mrc-success);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.mrc-client-dashboard-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #2563eb;
  border-radius: var(--mrc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  animation: mrcFadeIn 0.6s ease-out 1.05s both;
}

.mrc-client-dashboard-box h3 {
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e3a8a;
}

.mrc-client-dashboard-box p {
  margin: 0 0 1rem;
  color: #1f2937;
  font-size: 0.92rem;
}

.mrc-client-dashboard-box .btn {
  width: 100%;
}

/* Feedback */
.feedback-section {
  background: var(--mrc-white);
  border: 2px solid var(--mrc-gray-200);
  border-radius: var(--mrc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  animation: mrcFadeIn 0.6s ease-out 1.2s both;
}

.feedback-section h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--mrc-gray-900);
  margin: 0 0 1rem;
  text-align: center;
}

.star-rating {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.star {
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.3;
  color: #fbbf24;
}

.star:hover,
.star.active {
  opacity: 1;
  transform: scale(1.1);
}

.feedback-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--mrc-gray-300);
  border-radius: var(--mrc-radius-md);
  font-size: 0.875rem;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.feedback-input:focus {
  outline: none;
  border-color: var(--mrc-primary);
  box-shadow: 0 0 0 3px rgba(17, 180, 245, 0.15);
}

.feedback-success {
  text-align: center;
  padding: 2rem;
  animation: mrcFadeIn 0.4s ease-out;
}

.feedback-success i {
  font-size: 4rem;
  color: var(--mrc-success);
  margin-bottom: 1rem;
}

.feedback-success p {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--mrc-success);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--mrc-radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: var(--mrc-primary);
  color: var(--mrc-white);
}

.btn-primary:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
  box-shadow: var(--mrc-shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--mrc-gray-300);
  color: var(--mrc-gray-700);
}

.btn-outline:hover {
  border-color: var(--mrc-primary);
  color: var(--mrc-primary);
  background: rgba(17, 180, 245, 0.05);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn i { font-size: 1.25rem; }

.button-group {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: mrcFadeIn 0.6s ease-out 1.4s both;
}

/* Share */
.share-section {
  text-align: center;
  padding: 1.5rem;
  background: var(--mrc-gray-50);
  border-radius: var(--mrc-radius-lg);
  border: 2px solid var(--mrc-gray-200);
  margin-bottom: 1.5rem;
}

.share-section p {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--mrc-gray-700);
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--mrc-radius-full);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--mrc-white);
}

.social-btn i { font-size: 1.35rem; color:var(--mrc-white);}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--mrc-shadow-lg);
}

.social-btn.facebook { background: #1877F2; }
.social-btn.twitter { background: #111827; }
.social-btn.whatsapp { background: #25D366; }
.social-btn.email { background: var(--mrc-primary); }

/* Confetti */
.confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  opacity: 0.9;
  transform: rotate(0deg);
  pointer-events: none;
  z-index: 9999;
  animation-name: confettiFall;
  animation-timing-function: ease-in;
}

/* Theme overrides (keep styling consistent across any WP theme) */
.mrc-thankyou-page .btn,
.mrc-thankyou-page a.btn,
.mrc-thankyou-page button.btn {
  -webkit-appearance: none;
  appearance: none;
  border: none !important;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none !important;
}

.mrc-thankyou-page .btn.btn-primary {
  background: var(--mrc-primary) !important;
  color: var(--mrc-white) !important;
}

.mrc-thankyou-page .btn.btn-outline {
  background: transparent !important;
  border: 2px solid var(--mrc-gray-300) !important;
  color: var(--mrc-gray-700) !important;
}

.mrc-thankyou-page .btn:focus-visible,
.mrc-thankyou-page .social-btn:focus-visible,
.mrc-thankyou-page .star:focus-visible,
.mrc-thankyou-page textarea:focus-visible {
  outline: 3px solid rgba(17, 180, 245, 0.35);
  outline-offset: 2px;
}

.mrc-thankyou-page .social-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none !important;
  border-radius: var(--mrc-radius-full) !important;
  cursor: pointer;
}

.mrc-thankyou-page .social-btn.facebook { background: #1877F2 !important; }
.mrc-thankyou-page .social-btn.twitter { background: #111827 !important; }
.mrc-thankyou-page .social-btn.whatsapp { background: #25D366 !important; }
.mrc-thankyou-page .social-btn.email { background: var(--mrc-primary) !important; }

.mrc-ty-help {
  margin-top: 14px;
  padding: 10px 0 0;
  color: var(--mrc-text);
}

.mrc-ty-help-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.mrc-ty-help-row i {
  color: var(--mrc-primary);
  font-size: 18px;
}

.mrc-ty-help a {
  color: var(--mrc-primary);
  font-weight: 800;
  text-decoration: none;
}

.mrc-ty-help a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .thank-you-header {
    padding: 34px 16px;
  }
  .thank-you-content {
    padding: 16px;
  }
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-value {
    text-align: left;
  }
}
