/* ============================================
   VERIFY CERTIFICATE PAGE STYLES
   CoreClasses - Optimized & Responsive
   ============================================ */

/* ===== VERIFY HERO ===== */
.verify-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hero Background Animation */
.verify-hero::before, .verify-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.verify-hero::before {
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(31, 60, 136, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.verify-hero::after {
  bottom: -30%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -20px); }
}

.hero-icon {
  width: 100px; height: 100px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #667eea 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(31, 60, 136, 0.3);
  position: relative;
  z-index: 1;
  color: white;
}

.hero-icon svg { width: 50px; height: 50px; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-gray-600);
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { text-decoration: underline; }

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  position: relative;
  z-index: 1;
  line-height: 1.1;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--color-gray-700);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== VERIFICATION FORM SECTION ===== */
.verification-form-section {
  padding: 4rem 0;
  background-color: white;
}

.verification-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.form-container {
  background-color: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  position: relative;
  text-align: center;
}

/* Instant Badge */
.instant-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 1rem;
  color: var(--color-gray-600);
  margin-bottom: 2rem;
}

/* ===== VERIFICATION RESULT AREA ===== */
#verification-result {
  margin-bottom: 2rem;
  text-align: left;
  display: none;
}

/* Success Result */
.result-success {
  padding: 1.5rem;
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 12px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-icon {
  width: 50px; height: 50px;
  background-color: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #065f46;
  margin: 0;
}

.result-message {
  font-size: 1rem;
  color: #047857;
  margin-bottom: 1rem;
}

.certificate-details {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #d1fae5;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0fdf4;
}

.detail-row:last-child { border-bottom: none; }

.detail-label { font-weight: 600; color: #4b5563; font-size: 0.9rem; }
.detail-value { color: #111827; font-weight: 500; font-size: 0.9rem; text-align: right; }

/* Error Result */
.result-error {
  padding: 1.5rem;
  background: #fef2f2;
  border: 1px solid #ef4444;
  border-radius: 12px;
  text-align: center;
}

.result-error .result-icon { background-color: #ef4444; margin: 0 auto 1rem; }
.result-error .result-title { color: #991b1b; }
.result-error .result-message { color: #b91c1c; }

/* Info Actions */
.result-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-verify-another, .btn-contact-support {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-verify-another {
  background: white;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-contact-support {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
}

.btn-verify-another:hover { background: #eff6ff; }
.btn-contact-support:hover { background: var(--color-secondary); }

/* ===== FORM INPUTS ===== */
.form-group { margin-bottom: 1.5rem; text-align: left; }

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.input-with-icon { position: relative; }

.input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--color-gray-500);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 12px 12px 12px 40px; /* Space for icon */
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.1);
}

.clear-input-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 24px; height: 24px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280;
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-submit:hover { transform: translateY(-2px); background-color: var(--color-secondary); }

.form-info {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-gray-600);
  background: #f9fafb;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== HOW VERIFICATION WORKS ===== */
.verification-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
  height: 100%; /* Equal Height */
}

.step-card:hover { transform: translateY(-5px); border-color: var(--color-primary); }

.step-icon {
  width: 70px; height: 70px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}

.step1 { background: #14b8a6; }
.step2 { background: #10b981; }
.step3 { background: #3b82f6; }

.step-number {
  position: absolute; top: -10px; right: -10px;
  width: 30px; height: 30px;
  background: var(--color-primary); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ===== WHY VERIFY SECTION (Corrected Alignment) ===== */
.why-verify-section {
  padding: 4rem 0;
  background-color: white;
}

.why-verify-header {
  text-align: center;
  margin-bottom: 3rem;
}

.why-verify-icon {
  margin: 0 auto 1rem;
  color: var(--color-primary);
}

.why-verify-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-dark);
  font-family: var(--font-heading);
}

.why-verify-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.verify-feature {
  display: flex;
  /* ALIGNMENT FIX: Aligns to TOP to solve floating icon issue */
  align-items: flex-start; 
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: #f8fafc;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  height: 100%; /* Ensures equal height boxes */
}

.verify-feature:hover {
  background-color: white;
  border-color: #10b981;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Icon Styling */
.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
  margin-top: 0; 
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

.feature-content { 
  flex: 1; 
  /* ALIGNMENT FIX: Push text down slightly to center with top of icon */
  padding-top: 4px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.feature-description {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.5;
  margin: 0;
}

/* ===== SECURITY NOTE ===== */
.security-note-section {
  padding: 3rem 0;
  background-color: #f9fafb;
}

.security-note-card {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center; /* Centered vertically */
  gap: 1.5rem;
  padding: 2rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 16px;
  text-align: left;
}

.security-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  background-color: #f59e0b;
  color: white;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.security-content { flex: 1; }

.security-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.security-description {
  font-size: 0.95rem;
  color: #78350f;
  line-height: 1.6;
  margin: 0;
}

.security-description a {
  color: #92400e;
  text-decoration: underline;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .verification-steps, .why-verify-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .form-container { padding: 1.5rem; }
  .page-title { font-size: 2.5rem; }
  .result-actions { flex-direction: column; }
  
  .security-note-card { 
    flex-direction: column; 
    text-align: center; 
    align-items: center; 
  }
  .security-icon { margin: 0 auto; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}