/* ==========================================================
   LAGOS AVIATION ACADEMY - CERTIFICATE VERIFICATION PAGE
   Two-column split: illustration (left) + verification form (right)
   Values follow the LAA Figma spec for the Verification page.
   ========================================================== */

.verification-wrapper {
  /* Matches the shared hp-header height (18px nav padding x2 + 44px logo). */
  --verification-header-h: 80px;
  /* Figma "Primary/Solid 1" navy for the active submit button. */
  --verification-navy: #026084;
  --verification-navy-deep: #014a64;
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
}

/* ----- Two-column main section ----- */
.verification-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: calc(100vh - var(--verification-header-h));
}

/* ----- Left column: pale-blue illustration panel (Figma #F1FAFC) ----- */
/* The illustration is anchored to the bottom edge of the panel, matching
   the Figma layout (Frame 40097 fills down to the bottom of the column). */
.verification-left {
  background-color: #f1fafc;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 48px 48px 0;
  min-height: 520px;
}

.verification-illustration {
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

/* ----- Right column: white verification form panel ----- */
.verification-right {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
}

.verification-form-wrap {
  width: 100%;
  max-width: 463px;
}

/* ----- Heading + description (Figma: 8px gap, then 40px to the field) ----- */
.verification-wrapper .verification-heading {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.25px;
  color: #1f1f1f;
  margin: 0 0 8px;
}

.verification-description {
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.25px;
  color: #636363;
  margin: 0 0 40px;
}

/* ----- Input field (Figma: label 12px/600, input 44px, border #D9D9D9) ----- */
.verification-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #636363;
  margin-bottom: 8px;
}

.verification-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background-color: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #23282b;
  box-shadow: none;
  transition: border-color 0.2s;
}

.verification-input::placeholder {
  /* Figma placeholder: #636363 at 40% opacity. */
  color: rgba(99, 99, 99, 0.4);
  opacity: 1;
}

.verification-input:focus {
  outline: none;
  border-color: var(--verification-navy);
}

.verification-input.is-invalid {
  border-color: #c53030;
}

/* ----- Submit button (Figma: disabled #F9F9F9 / #636363@30%, active navy) ----- */
.verification-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  margin-top: 24px;
  padding: 0 20px;
  background-color: #f9f9f9;
  border: 1px solid transparent;
  border-radius: 8px;
  /* Figma disabled button text: #636363 at 30% opacity. */
  color: rgba(99, 99, 99, 0.3);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
  box-shadow: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.verification-btn.is-active {
  background-color: var(--verification-navy);
  border-color: var(--verification-navy);
  color: #ffffff;
  cursor: pointer;
}

.verification-btn.is-active:hover {
  background-color: var(--verification-navy-deep);
  border-color: var(--verification-navy-deep);
}

/* ----- Loading state (spinner replaces the label) ----- */
.verification-btn.is-loading {
  background-color: var(--verification-navy);
  border-color: var(--verification-navy);
  color: #ffffff;
  cursor: progress;
  pointer-events: none;
  position: relative;
}

.verification-btn.is-loading .btn-text {
  visibility: hidden;
}

.verification-btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: verificationSpin 0.6s linear infinite;
}

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

/* ----- Result panel ----- */
.verification-alert {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

.verification-alert-success {
  background-color: #e6f7e6;
  color: #276749;
  border: 1px solid #9ae6b4;
}

.verification-alert-danger {
  background-color: #fde8e8;
  color: #c53030;
  border: 1px solid #feb2b2;
}

.verification-alert-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.verification-alert-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(39, 103, 73, 0.12);
  color: #276749;
}

.verification-alert-danger .verification-alert-badge {
  background-color: rgba(197, 48, 48, 0.12);
  color: #c53030;
}

.verification-alert-message {
  font-size: 14px;
}

.verification-details {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.verification-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(39, 103, 73, 0.15);
  font-size: 14px;
}

.verification-detail-row dt {
  font-weight: 600;
  flex-shrink: 0;
}

.verification-detail-row dd {
  margin: 0;
  text-align: right;
  word-break: break-word;
}

/* ----- Field validation error ----- */
.verification-wrapper .field-error {
  color: #c53030;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  margin-top: 6px;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .verification-left {
    padding: 32px 32px 0;
  }

  .verification-right {
    padding: 40px 28px;
  }

  .verification-wrapper .verification-heading {
    font-size: 30px;
  }
}

@media (max-width: 760px) {
  .verification-main {
    grid-template-columns: 1fr;
  }

  .verification-left {
    min-height: 0;
    max-height: 340px;
    padding: 24px 24px 0;
  }

  .verification-illustration {
    max-height: 280px;
  }

  .verification-right {
    padding: 40px 24px;
  }

  .verification-wrapper .verification-heading {
    font-size: 26px;
  }
}
