/* Checkout Flow Design */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --zdh-flow-primary: #2563eb;
  --zdh-flow-primary-dark: #1e40af;
  --zdh-flow-success: #10b981;
  --zdh-flow-gray-50: #f9fafb;
  --zdh-flow-gray-100: #f3f4f6;
  --zdh-flow-gray-200: #e5e7eb;
  --zdh-flow-gray-900: #111827;
}

.zdh-checkout-flow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Manrope', -apple-system, sans-serif;
}

/* Progress Steps */
.zdh-flow-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.zdh-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.zdh-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--zdh-flow-gray-200);
  color: var(--zdh-flow-gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.zdh-step.active .zdh-step-number {
  background: var(--zdh-flow-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.zdh-step.completed .zdh-step-number {
  background: var(--zdh-flow-success);
  color: white;
}

.zdh-step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zdh-flow-gray-900);
}

.zdh-step-line {
  flex: 1;
  height: 2px;
  background: var(--zdh-flow-gray-200);
  position: relative;
  z-index: 1;
}

/* Content Sections */
.zdh-flow-content {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  animation: zdh-fade-slide 0.4s ease-out;
}

.zdh-flow-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  color: var(--zdh-flow-gray-900);
}

.zdh-step-subtitle {
  color: #6b7280;
  font-size: 1.125rem;
  margin: 0 0 2rem 0;
}

/* Domain Search in Flow */
.zdh-search-box-flow {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.zdh-flow-input {
  flex: 1;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  border: 2px solid var(--zdh-flow-gray-200);
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  transition: all 0.2s;
}

.zdh-flow-input:focus {
  outline: none;
  border-color: var(--zdh-flow-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.zdh-flow-btn {
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zdh-flow-btn.primary {
  background: var(--zdh-flow-primary);
  color: white;
}

.zdh-flow-btn.primary:hover {
  background: var(--zdh-flow-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.zdh-flow-btn.secondary {
  background: var(--zdh-flow-gray-100);
  color: var(--zdh-flow-gray-900);
}

.zdh-flow-btn.secondary:hover {
  background: var(--zdh-flow-gray-200);
}

.zdh-flow-btn.large {
  padding: 1.5rem 3rem;
  font-size: 1.125rem;
}

.zdh-flow-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.zdh-tld-suggestions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.zdh-tld-quick {
  padding: 0.75rem 1.5rem;
  background: var(--zdh-flow-gray-100);
  border: 1px solid var(--zdh-flow-gray-200);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.zdh-tld-quick:hover {
  background: var(--zdh-flow-primary);
  color: white;
  border-color: var(--zdh-flow-primary);
  transform: translateY(-2px);
}

/* Domain Results */
#zdh-flow-domain-results {
  margin-top: 2rem;
}

.zdh-domain-result-card {
  border: 3px solid var(--zdh-flow-gray-200);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.zdh-domain-result-card.available {
  border-color: var(--zdh-flow-success);
  background: linear-gradient(135deg, #ecfdf5 0%, white 100%);
}

.zdh-domain-result-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}

.zdh-domain-result-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--zdh-flow-primary);
}

/* Hosting Packages */
.zdh-hosting-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.zdh-hosting-package {
  background: white;
  border: 3px solid var(--zdh-flow-gray-200);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
}

.zdh-hosting-package:hover {
  border-color: var(--zdh-flow-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

.zdh-hosting-package.selected {
  border-color: var(--zdh-flow-success);
  background: linear-gradient(135deg, #ecfdf5 0%, white 100%);
}

.zdh-hosting-package h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
}

.zdh-package-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--zdh-flow-primary);
  margin-bottom: 1.5rem;
}

.zdh-package-price span {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 600;
}

.zdh-package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.zdh-package-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--zdh-flow-gray-100);
  font-size: 0.9375rem;
  color: #4b5563;
}

.zdh-package-features li:last-child {
  border-bottom: none;
}

/* Customer Form */
.zdh-customer-form {
  max-width: 600px;
  margin: 0 auto;
}

.zdh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.zdh-form-group {
  margin-bottom: 1.5rem;
}

.zdh-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--zdh-flow-gray-900);
  font-size: 0.9375rem;
}

.zdh-form-group input,
.zdh-form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--zdh-flow-gray-200);
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Manrope', sans-serif;
  transition: all 0.2s;
}

.zdh-form-group input:focus,
.zdh-form-group select:focus {
  outline: none;
  border-color: var(--zdh-flow-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Order Summary */
.zdh-order-summary {
  background: var(--zdh-flow-gray-50);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.zdh-summary-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--zdh-flow-gray-200);
}

.zdh-summary-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.zdh-summary-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.zdh-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.zdh-summary-item-name {
  font-weight: 600;
  color: var(--zdh-flow-gray-900);
}

.zdh-summary-item-price {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--zdh-flow-primary);
}

.zdh-summary-total {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
}

.zdh-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1.125rem;
}

.zdh-total-row.total {
  border-top: 2px solid var(--zdh-flow-gray-200);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--zdh-flow-primary);
}

/* Flow Actions */
.zdh-flow-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Spinner */
.zdh-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: zdh-spin 0.8s linear infinite;
}

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

@keyframes zdh-spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .zdh-checkout-flow {
    padding: 1rem;
  }
  
  .zdh-flow-steps {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .zdh-step-line {
    display: none;
  }
  
  .zdh-flow-content {
    padding: 1.5rem;
  }
  
  .zdh-search-box-flow {
    flex-direction: column;
  }
  
  .zdh-hosting-packages {
    grid-template-columns: 1fr;
  }
  
  .zdh-form-row {
    grid-template-columns: 1fr;
  }
  
  .zdh-flow-actions {
    flex-direction: column;
  }
  
  .zdh-flow-btn {
    width: 100%;
  }
}
