/* Evernu Verify Site - Styles
   Matching link-redirect branding: solid #055a52 bg, white text */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #055a52;
  color: white;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 20px 0;
  text-align: center;
}

.logo {
  display: inline-block;
}

.logo img {
  width: 200px;
  height: auto;
}

/* Main */
.main {
  flex: 1;
  padding: 0 0 48px;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* States */
.state-container {
  text-align: center;
  padding: 80px 20px;
}

.state-container p {
  font-size: 1rem;
  opacity: 0.9;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

#error-state h2 {
  margin-bottom: 0.5rem;
}

#error-state p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
}

.spinner-small {
  width: 24px;
  height: 24px;
  border-width: 3px;
  margin: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Step Cards */
.step-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: #055a52;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-number.completed {
  background: #4ade80;
  color: white;
}

.step-info h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
}

.step-info p {
  font-size: 14px;
  opacity: 0.85;
}

/* Didit Embed */
.didit-embed {
  width: 100%;
  min-height: 600px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

/* Step Complete */
.step-complete {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 8px;
  color: #4ade80;
  font-weight: 500;
}

.success-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4ade80;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Step Error */
.step-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 14px;
}

/* Upload Area */
.upload-area {
  margin-top: 4px;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: white;
  background: rgba(255, 255, 255, 0.05);
}

.upload-icon {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.drop-text {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 12px;
}

.file-hint {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 8px;
}

/* Photo Preview */
.photo-preview {
  position: relative;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.photo-preview img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.2);
}

.btn-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Compressing */
.compressing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  opacity: 0.85;
  font-size: 14px;
}

/* Upload Error */
.upload-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 14px;
  margin-top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: white;
  color: #055a52;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.btn-upload {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
  margin-top: 16px;
}

/* All Complete */
.all-complete {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 40px 24px;
}

.success-icon-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #4ade80;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
}

.all-complete h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: white;
}

.all-complete > p {
  opacity: 0.85;
  margin-bottom: 24px;
}

/* Timeline */
.timeline {
  text-align: left;
  max-width: 480px;
  margin: 0 auto 24px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-content strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
  color: white;
}

.timeline-content p {
  font-size: 14px;
  opacity: 0.8;
}

/* Info Box */
.info-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
}

.info-box p {
  margin-bottom: 4px;
}

.info-box p:last-child {
  margin-bottom: 0;
  opacity: 0.8;
}

/* Footer */
.footer {
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer a {
  color: white;
  text-decoration: underline;
}

.footer a:hover {
  opacity: 0.8;
}

.footer p {
  margin-bottom: 4px;
}

.footer p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .page-header h1 {
    font-size: 1.25rem;
  }

  .step-card {
    padding: 16px;
  }

  .step-header {
    gap: 12px;
  }

  .step-info h2 {
    font-size: 17px;
  }

  .drop-zone {
    padding: 24px 16px;
  }

  .didit-embed {
    min-height: 500px;
  }
}
