/**
 * ==============================================================================
 * TEAM REMOVALS AUSTRALIA — THANK YOU & 404 PAGES REDESIGN
 * File: assets/css/thankyou-404-redesign.css
 * Premium modern design system for Thank You confirmation and 404 Error pages.
 * ==============================================================================
 */

:root {
  --tr-page-primary: #8b181b;
  --tr-page-primary-hover: #a31d2e;
  --tr-page-primary-dark: #660e11;
  --tr-page-primary-light: #fff1f2;
  --tr-page-primary-glow: rgba(139, 24, 27, 0.22);
  --tr-page-secondary: #0f172a;
  --tr-page-secondary-light: #1e293b;
  --tr-page-gold: #f59e0b;
  --tr-page-gold-light: #fef3c7;
  --tr-page-emerald: #10b981;
  --tr-page-emerald-light: #ecfdf5;
  --tr-page-emerald-glow: rgba(16, 185, 129, 0.25);
  --tr-page-bg: #f8fafc;
  --tr-page-surface: #ffffff;
  --tr-page-border: #e2e8f0;
  --tr-page-border-hover: #cbd5e1;
  --tr-page-text-heading: #0f172a;
  --tr-page-text-body: #334155;
  --tr-page-text-muted: #64748b;
  --tr-page-radius-sm: 8px;
  --tr-page-radius-md: 14px;
  --tr-page-radius-lg: 20px;
  --tr-page-radius-xl: 28px;
  --tr-page-radius-full: 9999px;
  --tr-page-font-heading: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tr-page-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tr-page-shadow-card: 0 16px 40px -12px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  --tr-page-shadow-elevated: 0 24px 50px -15px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(15, 23, 42, 0.05);
  --tr-page-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   01. GLOBAL PAGE LAYOUT WRAPPER (THANK YOU & 404)
   ============================================================================== */
.tr-page-wrapper {
  background-color: var(--tr-page-bg);
  background-image:
    radial-gradient(ellipse at 15% 10%, rgba(139, 24, 27, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(15, 23, 42, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Ambient glow accents */
.tr-page-wrapper::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(139, 24, 27, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tr-page-wrapper::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ==============================================================================
   02. THANK YOU PAGE STYLING
   ============================================================================== */
.tr-thankyou-card {
  background: var(--tr-page-surface);
  border: 1px solid var(--tr-page-border);
  border-radius: var(--tr-page-radius-xl);
  box-shadow: var(--tr-page-shadow-elevated);
  padding: clamp(32px, 5vw, 60px) clamp(24px, 5vw, 56px);
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Animated Success Icon */
.tr-success-badge-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-success-icon-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--tr-page-emerald-glow);
  animation: trPulseRing 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.tr-success-icon-box {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 44px;
  box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.45);
  position: relative;
  z-index: 2;
  animation: trPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes trPulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.22);
    opacity: 0.3;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes trPopIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Pill status tag */
.tr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tr-page-emerald-light);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: var(--tr-page-radius-full);
  font-family: var(--tr-page-font-heading);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tr-status-pill .tr-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.tr-thankyou-card h1.tr-title {
  font-family: var(--tr-page-font-heading);
  font-size: clamp(28px, 4vw, 41px);
  font-weight: 850;
  color: var(--tr-page-text-heading);
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.tr-thankyou-card p.tr-subtitle {
  font-family: var(--tr-page-font-body);
  font-size: clamp(15.5px, 1.8vw, 17.5px);
  color: var(--tr-page-text-body);
  max-width: 660px;
  margin: 0 auto 34px;
  line-height: 1.7;
}

.tr-thankyou-card p.tr-subtitle strong {
  color: var(--tr-page-primary);
  font-weight: 700;
}

/* 3-Step Process Timeline */
.tr-process-timeline {
  background: #f8fafc;
  border: 1px solid var(--tr-page-border);
  border-radius: var(--tr-page-radius-lg);
  padding: 28px 24px;
  margin-bottom: 34px;
  text-align: left;
}

.tr-process-timeline-title {
  font-family: var(--tr-page-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--tr-page-text-heading);
  text-align: center;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tr-process-timeline-title i {
  color: var(--tr-page-primary);
}

.tr-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tr-step-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--tr-page-radius-md);
  padding: 20px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--tr-page-transition);
}

.tr-step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.tr-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tr-page-primary-light);
  color: var(--tr-page-primary);
  font-family: var(--tr-page-font-heading);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tr-step-item h4 {
  font-family: var(--tr-page-font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--tr-page-text-heading);
  margin-bottom: 6px;
}

.tr-step-item p {
  font-family: var(--tr-page-font-body);
  font-size: 13px;
  color: var(--tr-page-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Urgent Moving Fast Assistance Banner */
.tr-urgent-call-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--tr-page-radius-lg);
  padding: 22px 26px;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.16);
  gap: 20px;
}

.tr-urgent-text h4 {
  font-family: var(--tr-page-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-urgent-text h4 i {
  color: #f59e0b;
}

.tr-urgent-text p {
  font-family: var(--tr-page-font-body);
  font-size: 13.5px;
  color: #cbd5e1;
  margin: 0;
}

.tr-urgent-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tr-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tr-page-primary);
  color: #ffffff !important;
  font-family: var(--tr-page-font-heading);
  font-size: 14.5px;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: var(--tr-page-radius-full);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(139, 24, 27, 0.4);
  transition: var(--tr-page-transition);
}

.tr-btn-call:hover {
  background: var(--tr-page-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 24, 27, 0.5);
  color: #ffffff !important;
}

.tr-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff !important;
  font-family: var(--tr-page-font-heading);
  font-size: 14.5px;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: var(--tr-page-radius-full);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: var(--tr-page-transition);
}

.tr-btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Action Button Row */
.tr-action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #702632 0%, #8b181b 50%, #b91c1c 100%);
  color: #ffffff !important;
  font-family: var(--tr-page-font-heading);
  font-size: 15px;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--tr-page-radius-full);
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(139, 24, 27, 0.35);
  transition: var(--tr-page-transition);
}

.tr-btn-primary:hover {
  background: linear-gradient(135deg, #8b181b 0%, #b91c1c 50%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(139, 24, 27, 0.45);
  color: #ffffff !important;
}

.tr-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--tr-page-secondary) !important;
  font-family: var(--tr-page-font-heading);
  font-size: 15px;
  font-weight: 750;
  padding: 13px 26px;
  border-radius: var(--tr-page-radius-full);
  border: 1.5px solid var(--tr-page-border);
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: var(--tr-page-transition);
}

.tr-btn-secondary:hover {
  border-color: var(--tr-page-secondary);
  color: var(--tr-page-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

/* Trust Bar */
.tr-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--tr-page-border);
  flex-wrap: wrap;
}

.tr-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tr-page-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-page-text-muted);
}

.tr-trust-item i {
  color: var(--tr-page-primary);
  font-size: 15px;
}

.tr-trust-item i.fa-star {
  color: #f59e0b;
}

/* ==============================================================================
   03. 404 NOT FOUND PAGE STYLING
   ============================================================================== */
.tr-404-card {
  background: var(--tr-page-surface);
  border: 1px solid var(--tr-page-border);
  border-radius: var(--tr-page-radius-xl);
  box-shadow: var(--tr-page-shadow-elevated);
  padding: clamp(34px, 5vw, 64px) clamp(24px, 5vw, 60px);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Big 404 Number Display */
.tr-404-glance {
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.tr-404-number {
  font-family: var(--tr-page-font-heading);
  font-size: clamp(86px, 14vw, 148px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #8b181b 0%, #b91c1c 40%, #0f172a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 30px rgba(139, 24, 27, 0.15);
  user-select: none;
}

.tr-404-badge-lost {
  position: absolute;
  bottom: 12px;
  right: -10px;
  background: #f59e0b;
  color: #0f172a;
  font-family: var(--tr-page-font-heading);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--tr-page-radius-full);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.03em;
  animation: trFloatSlow 3.2s ease-in-out infinite;
}

@keyframes trFloatSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.tr-404-card h1.tr-title {
  font-family: var(--tr-page-font-heading);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 850;
  color: var(--tr-page-text-heading);
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.tr-404-card p.tr-subtitle {
  font-family: var(--tr-page-font-body);
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--tr-page-text-body);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Quick Destination Navigation Hub */
.tr-hub-section {
  margin: 32px 0;
  text-align: left;
}

.tr-hub-title {
  font-family: var(--tr-page-font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--tr-page-text-heading);
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tr-hub-title i {
  color: var(--tr-page-primary);
}

.tr-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tr-hub-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--tr-page-radius-md);
  padding: 16px 18px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--tr-page-transition);
}

.tr-hub-card:hover {
  border-color: var(--tr-page-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px rgba(139, 24, 27, 0.12);
}

.tr-hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tr-page-primary-light);
  color: var(--tr-page-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--tr-page-transition);
}

.tr-hub-card:hover .tr-hub-icon {
  background: var(--tr-page-primary);
  color: #ffffff;
}

.tr-hub-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tr-hub-name {
  font-family: var(--tr-page-font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--tr-page-text-heading);
  margin-bottom: 2px;
  transition: color 0.2s ease;
}

.tr-hub-card:hover .tr-hub-name {
  color: var(--tr-page-primary);
}

.tr-hub-desc {
  font-family: var(--tr-page-font-body);
  font-size: 12px;
  color: var(--tr-page-text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================================================
   04. RESPONSIVE MEDIA QUERIES
   ============================================================================== */
@media (max-width: 991.98px) {
  .tr-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tr-step-item:last-child {
    grid-column: span 2;
  }

  .tr-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tr-urgent-call-box {
    flex-direction: column;
    text-align: center;
  }

  .tr-urgent-text h4 {
    justify-content: center;
  }

  .tr-urgent-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .tr-page-wrapper {
    padding: 30px 15px 50px;
  }

  .tr-thankyou-card,
  .tr-404-card {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .tr-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tr-step-item:last-child {
    grid-column: span 1;
  }

  .tr-hub-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tr-action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .tr-btn-primary,
  .tr-btn-secondary,
  .tr-btn-call,
  .tr-btn-whatsapp {
    width: 100%;
    justify-content: center;
  }

  .tr-trust-strip {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}