* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: #1e293b;
  background-color: #eaf3fb;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

:root {
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-blue-primary: #2f7fe0;
  --color-blue-dark: #1a3a63;
  --color-blue-light: #eaf3fb;
  --color-blue-soft: #cfe3f7;
  --color-teal: #35b0c7;
  --color-white: #ffffff;
  --color-text-muted: #5b6b82;
  --color-border: #d7e6f5;
  --color-warning: #e0862f;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

.site-header {
  background: linear-gradient(180deg, #f3f9fd 0%, #dcedfa 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-frame {
  width: 90px;
  height: 50px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-blue-dark);
}

.badge-recruitment {
  background: var(--color-blue-primary);
  color: var(--color-white);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
}

.hero-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.icon-badge {
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(47, 127, 224, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.icon-badge-large {
  width: 68px;
  height: 68px;
  background: linear-gradient(160deg, #2f7fe0, #1a3a63);
  border-radius: 999px;
  padding: 14px;
}

.icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-blue-primary);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-blue-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.cards-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(26, 58, 99, 0.08);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.card-header-icon-blue {
  background: linear-gradient(160deg, #4a90e2, #2f7fe0);
}

.card-header-icon-teal {
  background: linear-gradient(160deg, #5cc8dd, #35b0c7);
}

.card-header-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-blue-dark);
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-blue-dark);
  margin-bottom: 8px;
}

.nrp-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: #f8fbfe;
  color: #1e293b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nrp-input::placeholder {
  color: #9fb3c8;
}

.nrp-input:focus {
  outline: none;
  border-color: var(--color-blue-primary);
  box-shadow: 0 0 0 3px rgba(47, 127, 224, 0.15);
}

.nrp-input.input-invalid {
  border-color: #e0503a;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  margin-bottom: 24px;
}

.form-error {
  font-size: 0.85rem;
  color: #e0503a;
  margin-top: -16px;
  margin-bottom: 20px;
}

.btn-check {
  width: 100%;
  padding: 15px;
  background: var(--color-blue-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-check:hover {
  background: #2569bd;
}

.btn-check:active {
  transform: scale(0.98);
}

.btn-check:disabled {
  background: #a9c6e8;
  cursor: not-allowed;
}

.result-box {
  background: #f4f9fd;
  border-radius: var(--radius-md);
  min-height: 260px;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-state {
  width: 100%;
  text-align: center;
}

.result-empty-icon {
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(47, 127, 224, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin: 0 auto 20px;
}

.result-empty-icon-warning {
  box-shadow: 0 6px 16px rgba(224, 134, 47, 0.18);
}

.result-empty-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-blue-dark);
  margin-bottom: 10px;
}

.result-empty-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}

/* loading bar */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-blue-soft);
  border-top-color: var(--color-blue-primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

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

.result-loading-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.result-outcome {
  width: 100%;
  text-align: left;
}

.outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.outcome-badge-success {
  background: #dcfce7;
  color: #16a34a;
}

.outcome-badge-fail {
  background: #fce7ec;
  color: #e11d48;
}

.outcome-badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.outcome-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e11d48;
  display: inline-block;
}

/* judul & deskripsi */
.outcome-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 16px 0 12px;
  line-height: 1.25;
}

.outcome-heading-center {
  text-align: center;
}

.outcome-description {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

.outcome-description-center {
  text-align: center;
}

/* lolos */
.outcome-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outcome-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f1f1f9;
  border-radius: 16px;
  padding: 16px;
}

.outcome-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.outcome-step-icon-success {
  background: #dcfce7;
  color: #16a34a;
}

.outcome-step-icon svg {
  width: 20px;
  height: 20px;
}

.outcome-step-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.outcome-step-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.outcome-closing-note {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin-top: 20px;
}

/* tidak lolos */
.outcome-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.outcome-topbar-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #4f46e5;
  text-transform: uppercase;
}

.outcome-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.outcome-icon-circle-fail {
  background: #fce7ec;
  color: #e11d48;
}

.outcome-icon-circle svg {
  width: 30px;
  height: 30px;
}

.outcome-icon-circle-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.outcome-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 20px 0;
}

.outcome-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.outcome-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.outcome-info-row dt {
  color: #64748b;
}

.outcome-info-row dd {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

/* footer */
.site-footer {
  background: #dcedfa;
  border-top: 1px solid var(--color-border);
  padding: 24px;
  margin-top: 17px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-contact a {
  color: var(--color-blue-primary);
  text-decoration: none;
  font-weight: 600;
}

/* tidak datang */
.outcome-badge-absen {
  background: #ffede0;
  color: #d9682b;
}

.outcome-badge-dot-absen {
  background: #d9682b;
}

.outcome-icon-circle-absen {
  background: #ffede0;
  color: #d9682b;
}

.outcome-icon-circle-absen .outcome-icon-circle-img {
  width: 36px;
  height: 36px;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* responsive */
@media (max-width: 900px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .badge-recruitment {
    align-self: flex-start;
  }

  .hero-section {
    padding: 40px 16px 32px;
  }

  .hero-icons-row {
    gap: 10px;
  }

  .icon-badge {
    width: 40px;
    height: 40px;
  }

  .icon-badge-large {
    width: 56px;
    height: 56px;
  }

  .cards-section {
    padding: 0 16px 48px;
  }

  .card {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
