/* Success Page Styles */

/* Import fonts */
@font-face {
  font-family: 'din-round-regular';
  src: url('/assets/fonts/din-next-rounded-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'din-round-bold';
  src: url('/assets/fonts/din-next-rounded-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'din-round-medium';
  src: url('/assets/fonts/DINRoundPro-Medi.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

/* Main Success Container */
.success-main {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-container {
  max-width: 520px;
  width: 100%;
  padding: 0 1rem;
}

.success-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border: 1px solid #e2e8f0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.success-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* Success Icon */
.success-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  position: relative;
}

.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #10b981;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #10b981;
}

.checkmark-circle-bg {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.checkmark-circle.animated .checkmark-circle-bg {
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-circle.animated .checkmark-check {
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Error Icon Styles */
.error-circle {
  width: 80px;
  height: 80px;
  position: relative;
}

.error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #ef4444;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #ef4444;
}

.error-circle-bg {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #ef4444;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.error-exclamation {
  transform-origin: 50% 50%;
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  stroke-width: 3;
  stroke-linecap: round;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.error-dot {
  stroke-dasharray: 9.42;
  stroke-dashoffset: 9.42;
  stroke-width: 3;
  fill: #ef4444;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 1.1s forwards;
}

.error-circle.animated .error-circle-bg {
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.error-circle.animated .error-exclamation {
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.error-circle.animated .error-dot {
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 1.1s forwards;
}

/* Success Header */
.success-header {
  margin-bottom: 2rem;
}

.success-title {
  font-family: 'din-round-bold', Arial, sans-serif;
  font-size: 2rem;
  color: #1a202c;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.success-subtitle {
  font-family: 'din-round-regular', Arial, sans-serif;
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Success Details */
.success-details {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-family: 'din-round-regular', Arial, sans-serif;
  font-size: 0.9rem;
  color: #64748b;
}

.detail-value {
  font-family: 'din-round-medium', Arial, sans-serif;
  font-size: 0.9rem;
  color: #1a202c;
  font-weight: 500;
}

.detail-value.success {
  color: #10b981;
  font-weight: 600;
}

.detail-value.error {
  color: #ef4444;
  font-weight: 600;
}

.detail-value.warning {
  color: #f59e0b;
  font-weight: 600;
}

/* Action Buttons */
.success-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-button {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: 'din-round-medium', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-button.primary {
  background: #ef6029;
  color: white;
}

.action-button.primary:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 96, 41, 0.3);
}

.action-button.secondary {
  background: transparent;
  color: #ef6029;
  border: 2px solid #ef6029;
}

.action-button.secondary:hover {
  background: #ef6029;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 96, 41, 0.2);
}

/* Success Footer */
.success-footer {
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.contact-info {
  margin-bottom: 1.5rem;
}

.contact-text {
  font-family: 'din-round-regular', Arial, sans-serif;
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.contact-methods {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #ef6029;
  font-family: 'din-round-regular', Arial, sans-serif;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: #ef6029;
  color: white;
  border-color: #ef6029;
}

.contact-method i {
  font-size: 0.9rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: 'din-round-regular', Arial, sans-serif;
  font-size: 0.85rem;
  color: #0369a1;
}

.security-badge i {
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .success-main {
    padding: 1rem 0;
  }
  
  .success-card {
    padding: 1.5rem;
    margin: 0.5rem;
    border-radius: 12px;
  }
  
  .success-title {
    font-size: 1.75rem;
  }
  
  .success-subtitle {
    font-size: 1rem;
  }
  
  .checkmark-circle,
  .error-circle {
    width: 70px;
    height: 70px;
  }
  
  .checkmark,
  .error-icon {
    width: 70px;
    height: 70px;
  }
  
  .success-actions {
    flex-direction: column;
  }
  
  .contact-methods {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .success-card {
    padding: 1.25rem;
    margin: 0.25rem;
  }
  
  .success-title {
    font-size: 1.5rem;
  }
  
  .success-details {
    padding: 1.25rem;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .action-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Loading State */
.success-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Animation for card entrance */
.success-card {
  animation: slideUp 0.6s ease-out;
}

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

/* Focus styles for accessibility */
.action-button:focus,
.contact-method:focus {
  outline: 2px solid #ef6029;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .success-card {
    border-width: 2px;
  }
  
  .action-button {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .success-main {
    background: white;
    padding: 0;
  }
  
  .success-card {
    box-shadow: none;
    border: 2px solid #000;
  }
  
  .action-button {
    display: none;
  }
} 