/* Service Wizard Styles */

.wizard-page {
  min-height: calc(100vh - 200px);
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.wizard-container {
  max-width: 1000px;
  margin: 0 auto;
}

.wizard-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wizard-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
}

.wizard-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Progress Steps */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.progress-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.progress-step.active .progress-number {
  background: var(--primary, #2563eb);
  color: #fff;
}

.progress-step.completed .progress-number {
  background: #10b981;
  color: #fff;
}

.progress-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.progress-step.active .progress-label {
  color: var(--primary, #2563eb);
}

.progress-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
}

.progress-line.completed {
  background: #10b981;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  border-color: var(--primary, #2563eb);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary, #2563eb);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem;
}

.service-card-description {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.service-card-price {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 1rem;
}

.service-card-price strong {
  font-size: 1.25rem;
  color: #111827;
}

.service-card-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary, #2563eb);
}

/* AI Service Card Badge */
.service-card.ai-service {
  position: relative;
}

.ai-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.ai-badge svg {
  width: 12px;
  height: 12px;
}

.service-card-signup-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #8b5cf6;
  margin-bottom: 0.75rem;
}

.service-card-signup-note svg {
  width: 14px;
  height: 14px;
}

/* Wizard Form */
.wizard-form {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wizard-section {
  margin-bottom: 2.5rem;
}

.wizard-section:last-child {
  margin-bottom: 0;
}

.wizard-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.optional-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: #9ca3af;
}

/* Tier Selection */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.tier-card {
  cursor: pointer;
  position: relative;
}

.tier-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tier-card-content {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.tier-card input:checked + .tier-card-content {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
}

.tier-card:hover .tier-card-content {
  border-color: #93c5fd;
}

.tier-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
}

.tier-card-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem;
}

.tier-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary, #2563eb);
  margin-bottom: 1rem;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.tier-features li {
  padding: 0.25rem 0;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature-check {
  color: #10b981;
  font-weight: bold;
}

/* Addons */
.addon-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.addon-card {
  cursor: pointer;
  position: relative;
}

.addon-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.addon-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
  gap: 1rem;
}

.addon-card input:checked + .addon-card-content {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
}

.addon-card:hover .addon-card-content {
  border-color: #93c5fd;
}

/* Custom checkbox for addons */
.addon-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.addon-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.addon-card input:checked + .addon-card-content .addon-checkbox {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
}

.addon-card input:checked + .addon-card-content .addon-checkbox::after {
  content: '\2713';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.addon-info {
  flex: 1;
}

.addon-name {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
}

.addon-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.addon-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary, #2563eb);
  white-space: nowrap;
  margin-left: 1rem;
}

/* Payment Type */
.payment-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.payment-type-card {
  cursor: pointer;
  position: relative;
}

.payment-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-type-content {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.payment-type-card input:checked + .payment-type-content {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
}

.payment-type-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.25rem;
}

.payment-type-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.milestone-preview {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.milestone-tag {
  font-size: 0.75rem;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group .required {
  color: #dc2626;
}

.form-group .optional {
  color: #9ca3af;
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Quote Summary */
.quote-summary {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.summary-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #d1fae5;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: #374151;
}

.summary-row.consulting-row {
  color: #0369a1;
  font-weight: 500;
}

.summary-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  padding-left: 0;
}

.summary-divider {
  border-top: 1px dashed #d1d5db;
  margin: 0.75rem 0;
}

.summary-total {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.summary-ngn {
  font-size: 1.25rem;
  font-weight: 700;
  color: #059669;
}

.exchange-note {
  margin-top: 1rem;
  color: #6b7280;
  text-align: center;
}

/* Wizard Actions */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Quote Page Styles */
.quote-page {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quote-expired {
  text-align: center;
  padding: 3rem 2rem;
}

.expired-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.expired-icon svg {
  width: 100%;
  height: 100%;
  color: #9ca3af;
}

.quote-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.quote-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.quote-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
  font-family: monospace;
}

.quote-date,
.quote-expires {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0;
}

.quote-details {
  margin-bottom: 2rem;
}

.quote-section {
  margin-bottom: 1.5rem;
}

.quote-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
}

.quote-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.quote-table td:first-child {
  color: #6b7280;
  width: 40%;
}

.quote-table td:last-child {
  text-align: right;
  color: #111827;
  font-weight: 500;
}

.pricing-table .price {
  font-family: monospace;
  font-size: 1rem;
}

.pricing-table .consulting-row td {
  color: #0369a1;
}

.pricing-table .consulting-row td:first-child {
  font-weight: 500;
}

.pricing-table .total-row td {
  font-weight: 600;
  border-bottom: none;
  padding-top: 1rem;
}

.pricing-table .ngn-row td {
  font-size: 1.25rem;
  color: #059669 !important;
}

.pricing-table .rate-row td {
  color: #9ca3af;
  font-weight: 400;
  padding-top: 0.5rem;
  text-align: center !important;
}

.addon-badge {
  display: inline-block;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  margin: 0.125rem;
}

/* Milestone List */
.milestone-list {
  position: relative;
  padding-left: 2rem;
}

/* Timeline connector line */
.milestone-list::before {
  content: '';
  position: absolute;
  left: 0.875rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(to bottom, #10b981 0%, #e5e7eb 50%, #e5e7eb 100%);
  border-radius: 1px;
}

.milestone-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.milestone-card:last-child {
  margin-bottom: 0;
}

.milestone-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.milestone-card.paid {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #86efac;
}

.milestone-card.paid:hover {
  border-color: #4ade80;
}

.milestone-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.milestone-number {
  position: absolute;
  left: -2rem;
  top: 1.25rem;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #6b7280;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.milestone-card.paid .milestone-number {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.milestone-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.milestone-name {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  line-height: 1.4;
}

.milestone-percentage {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
}

.milestone-amounts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.milestone-usd {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.milestone-ngn {
  font-weight: 700;
  font-size: 1.125rem;
  color: #111827;
}

.milestone-card.paid .milestone-ngn {
  color: #059669;
}

.milestone-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  background: #f0fdf4;
}

.milestone-status.paid {
  color: #059669;
}

.milestone-status svg {
  width: 14px;
  height: 14px;
}

/* Quote Actions */
.quote-actions {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.quote-actions h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem;
}

.payment-instructions {
  color: #6b7280;
  margin-bottom: 1rem;
}

.milestone-payment-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

.milestone-pay-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.milestone-pay-btn:not(.disabled):not(.locked):hover {
  border-color: var(--primary, #2563eb);
  background: #eff6ff;
}

.milestone-pay-btn.disabled {
  background: #f0fdf4;
  border-color: #86efac;
  cursor: default;
}

.milestone-pay-btn.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.milestone-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
}

.btn-text {
  font-weight: 600;
  color: var(--primary, #2563eb);
}

.btn-status {
  font-size: 0.875rem;
  color: #6b7280;
}

.milestone-pay-btn.disabled .btn-status {
  color: #059669;
}

.pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.payment-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.secure-icon {
  width: 16px;
  height: 16px;
}

.quote-paid {
  text-align: center;
  padding: 2rem;
  background: #f0fdf4;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.paid-icon {
  width: 48px;
  height: 48px;
  color: #10b981;
  margin-bottom: 1rem;
}

.quote-paid h3 {
  font-size: 1.25rem;
  color: #059669;
  margin: 0 0 0.5rem;
}

.quote-paid p {
  color: #6b7280;
  margin: 0;
}

.quote-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary, #2563eb);
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* Payment Result Pages */
.payment-result {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-icon svg {
  width: 48px;
  height: 48px;
}

.result-icon.success {
  background: #d1fae5;
}

.result-icon.success svg {
  color: #059669;
}

.result-icon.failed {
  background: #fee2e2;
}

.result-icon.failed svg {
  color: #dc2626;
}

.result-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem;
}

.result-message {
  font-size: 1.125rem;
  color: #374151;
  margin-bottom: 1.5rem;
}

.result-details {
  background: #f9fafb;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.detail-row span:first-child {
  color: #6b7280;
}

.detail-row span:last-child {
  font-weight: 500;
  color: #111827;
}

.result-note {
  color: #6b7280;
  margin-bottom: 2rem;
}

.failure-reasons {
  text-align: left;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  color: #6b7280;
}

.failure-reasons li {
  padding: 0.25rem 0;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-footer {
  color: #6b7280;
  font-size: 0.875rem;
}

.result-footer a {
  color: var(--primary, #2563eb);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  .wizard-title {
    font-size: 1.5rem;
  }

  .wizard-form {
    padding: 1.5rem;
  }

  .tier-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .wizard-actions .btn {
    width: 100%;
  }

  .wizard-progress {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .progress-line {
    display: none;
  }

  .milestone-list {
    padding-left: 1.5rem;
  }

  .milestone-list::before {
    left: 0.625rem;
  }

  .milestone-number {
    left: -1.5rem;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .milestone-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .milestone-header {
    width: 100%;
  }

  .milestone-amounts {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .milestone-ngn {
    font-size: 1rem;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn {
    width: 100%;
  }
}
