/* ============================================================
   Employee Verification Page Styles - RR Consortium
   Matches site design: white bg, #f07b26 accent, clean forms
   ============================================================ */

/* --- Section --- */
.verify-section {
  background-color: #ffffff;
}

.verify-section .heading_container {
  margin-bottom: 10px;
}

.verify-section .heading_container h2 {
  text-transform: uppercase;
}

.verify-subtitle {
  color: #6d6d6d;
  font-size: 15px;
  margin-top: 10px;
  max-width: 500px;
}

/* --- Search Form --- */
.verify-form-container {
  max-width: 520px;
  margin: 35px auto 40px;
}

.verify-input-row {
  display: flex;
  align-items: stretch;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.15);
}

.verify-input-row input {
  flex: 1;
  border: none;
  height: 50px;
  padding-left: 15px;
  outline: none;
  color: #101010;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
}

.verify-input-row input::placeholder {
  color: #999;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
}

.verify-input-row button {
  padding: 0 28px;
  background-color: #f07b26;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
  text-transform: uppercase;
}

.verify-input-row button:hover {
  background-color: #bc570d;
}

.verify-input-row button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.verify-hint {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-top: 14px;
}

.verify-hint i {
  margin-right: 5px;
  color: #f07b26;
}

/* --- Loading State --- */
.verify-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 40px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #eee;
  border-top: 3px solid #f07b26;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.verify-loading p {
  color: #6d6d6d;
  font-size: 15px;
}

/* --- Error State --- */
.verify-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.verify-error > i {
  font-size: 2.5rem;
  color: #e74c3c;
}

.verify-error .error-message {
  color: #252525;
  font-size: 15px;
  line-height: 1.6;
}

.try-again-btn,
.verify-another-btn {
  display: inline-block;
  padding: 10px 35px;
  background-color: #f07b26;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  text-transform: uppercase;
}

.try-again-btn:hover,
.verify-another-btn:hover {
  background-color: #bc570d;
  color: #ffffff;
}

/* --- Result Card --- */
.verify-result {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.verify-result.animate-in {
  animation: slideUp 0.4s ease-out;
}

.result-status-bar {
  text-align: center;
  margin-bottom: 18px;
}

.status-badge {
  display: inline-block;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.status-verified {
  background-color: #e6f9ee;
  color: #27ae60;
  border: 1px solid #27ae60;
}

.status-expired {
  background-color: #fef5e7;
  color: #f39c12;
  border: 1px solid #f39c12;
}

.status-suspended {
  background-color: #fde8e8;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

/* ==============================================
   ID CARD - Physical Card Representation
   ============================================== */
.id-card {
  background: linear-gradient(160deg, #0f1b3d 0%, #162050 30%, #1a2660 60%, #0f1b3d 100%);
  overflow: hidden;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* Subtle grid pattern overlay */
.id-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0px;
  pointer-events: none;
  z-index: 0;
}

.id-card > * {
  position: relative;
  z-index: 1;
}

/* --- Card Top: Logo + Company Name --- */
.id-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 10px;
}

.id-card-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.id-card-company-name {
  color: #e8882d;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* --- Photo --- */
.id-card-photo-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
}

.id-card-photo {
  width: 110px;
  height: 130px;
  object-fit: cover;
  border: 3px solid #e8882d;
  background: #1a1a3a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* --- Name + Designation --- */
.id-card-identity {
  text-align: center;
  padding: 6px 20px 2px;
}

.id-card-identity h3 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.id-card-designation {
  color: #e8882d;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}

/* --- Divider --- */
.id-card-divider {
  height: 1px;
  margin: 10px 24px;
  background: linear-gradient(90deg, transparent, rgba(232,136,45,0.4), transparent);
}

/* --- Details List --- */
.id-card-details-list {
  padding: 0 22px 16px;
}

.id-detail-row {
  display: flex;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.id-detail-row:last-child {
  border-bottom: none;
}

.id-detail-row i {
  color: #e8882d;
  font-size: 0.78rem;
  width: 18px;
  text-align: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.id-detail-label {
  color: #e8882d;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  margin-right: 6px;
  min-width: 95px;
}

.id-detail-value {
  color: #d0d0e0;
  font-size: 0.82rem;
  font-weight: 500;
  word-break: break-word;
}

/* --- Verified Stamp --- */
.id-card-verified-stamp {
  text-align: center;
  margin-top: 16px;
}

.id-card-verified-stamp p {
  color: #999;
  font-size: 13px;
  margin: 0;
}

.id-card-verified-stamp i {
  color: #27ae60;
  margin-right: 5px;
}

.verify-another-btn {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 18px auto 0;
  text-align: center;
}

/* --- Rate Limit Warning --- */
.rate-limit-warning {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 25px 20px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background-color: #fef5e7;
  border-left: 4px solid #f39c12;
}

.rate-limit-warning > i {
  font-size: 1.8rem;
  color: #f39c12;
}

.rate-limit-warning p {
  color: #252525;
  margin: 0;
  font-size: 14px;
}

/* --- Animations --- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive: Tablets --- */
@media (max-width: 768px) {
  .verify-form-container {
    max-width: 100%;
    margin: 25px auto 30px;
  }

  .verify-result {
    max-width: 360px;
  }

  .id-card {
    max-width: 360px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 480px) {
  .verify-input-row {
    flex-direction: column;
  }

  .verify-input-row input {
    text-align: center;
  }

  .verify-input-row button {
    padding: 14px;
  }

  .verify-hint {
    font-size: 12px;
  }

  .verify-result {
    max-width: 100%;
  }

  .id-card {
    max-width: 100%;
  }

  .id-card-top {
    padding: 18px 16px 8px;
  }

  .id-card-logo {
    width: 38px;
    height: 38px;
  }

  .id-card-company-name {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }

  .id-card-photo {
    width: 90px;
    height: 108px;
    border-width: 2px;
  }

  .id-card-identity h3 {
    font-size: 1.1rem;
  }

  .id-card-designation {
    font-size: 0.78rem;
  }

  .id-card-details-list {
    padding: 0 16px 12px;
  }

  .id-detail-label {
    min-width: 80px;
    font-size: 0.68rem;
  }

  .id-detail-value {
    font-size: 0.75rem;
  }

  .status-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .verify-another-btn,
  .try-again-btn {
    padding: 10px 25px;
    font-size: 13px;
  }
}

/* --- Responsive: Very small screens --- */
@media (max-width: 340px) {
  .id-card-photo {
    width: 80px;
    height: 96px;
  }

  .id-card-identity h3 {
    font-size: 1rem;
  }

  .id-detail-label {
    min-width: 70px;
    font-size: 0.65rem;
  }

  .id-detail-value {
    font-size: 0.7rem;
  }

  .id-card-company-name {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }
}
