
.thanks {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--secondary-bg-color) 100%);
}

.thanks::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(30,58,95,0.05)"/><circle cx="75" cy="35" r="1" fill="rgba(212,175,55,0.1)"/><circle cx="45" cy="75" r="1.5" fill="rgba(30,58,95,0.03)"/></svg>');
}

.thanks-section {
  position: relative;
  z-index: 1;
  width: 100%;
}

.thanks-section__container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.thanks-content {
  position: relative;
  border-radius: 24px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  background: white;
  animation: slideUp 0.8s ease-out;
}

.thanks-content::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #f4d03f 100%);
}

.thanks-icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  animation: checkMark 1s ease-out 0.3s both;
}

.thanks-icon::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  animation: ripple 2s infinite;
}

.thanks-icon i {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 2.5rem;
}

.thanks-title {
  margin-bottom: 20px;
  color: var(--main-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.8rem;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.thanks-message {
  max-width: 450px;
  margin-right: auto;
  margin-bottom: 40px;
  margin-left: auto;
  opacity: 0.9;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.thanks-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 50px;
  padding: 16px 32px;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background: var(--accent-color);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.9s both;
}

.thanks-button:hover {
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  background: #b8941f;
  transform: translateY(-2px);
}

.thanks-button:active {
  transform: translateY(0);
}

.thanks-button i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.thanks-button:hover i {
  transform: translateX(-3px);
}


@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes checkMark {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ripple {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}


@media (max-width: 768px) {
  .thanks-section__container {
    padding: 20px 15px;
  }
  
  .thanks-content {
    border-radius: 20px;
    padding: 40px 30px;
  }
  
  .thanks-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
  }
  
  .thanks-icon i {
    font-size: 2rem;
  }
  
  .thanks-title {
    margin-bottom: 16px;
    font-size: 2.2rem;
  }
  
  .thanks-message {
    margin-bottom: 30px;
    font-size: 1rem;
  }
  
  .thanks-button {
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .thanks-section__container {
    padding: 15px 10px;
  }
  
  .thanks-content {
    border-radius: 16px;
    padding: 30px 20px;
  }
  
  .thanks-icon {
    width: 70px;
    height: 70px;
  }
  
  .thanks-icon i {
    font-size: 1.8rem;
  }
  
  .thanks-title {
    font-size: 1.8rem;
  }
  
  .thanks-message {
    font-size: 0.95rem;
  }
  
  .thanks-button {
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
  }
}


@media (prefers-color-scheme: dark) {
  .thanks {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  }
  
  .thanks-content {
    color: white;
    background: #2d3748;
  }
  
  .thanks-title {
    color: white;
  }
  
  .thanks-message {
    color: rgba(255, 255, 255, 0.8);
  }
}
