/* ============================================================
   Halaman Cek Status Seleksi — Stylesheet
   Warna: Navy & Krem (institusional, bersih)
   ============================================================ */

/* ─── Status Page Layout ──────────────────────────────────── */
.status-page {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
  background: var(--navy-dk);
  color: var(--cream);
  padding: 2.5rem 0 2rem;
  text-align: center;
  border-bottom: 3px solid var(--cream-dk);
  position: relative;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 800;
  margin-bottom: .4rem;
  color: var(--cream);
}

.page-header p {
  font-size: .88rem;
  color: rgba(245, 239, 224, .7);
}

/* ─── Status Form Card ───────────────────────────────────── */
.status-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--gray-100);
}

.status-wrapper {
  width: 100%;
  max-width: 500px;
}

.status-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.status-card-header {
  background: var(--navy);
  padding: 1.25rem 1.75rem;
  border-bottom: 3px solid var(--cream-dk);
}

.status-card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
}

.status-card-header p {
  font-size: .78rem;
  color: rgba(245, 239, 224, .65);
}

.status-card-body {
  padding: 2rem 1.75rem;
  background: var(--white);
}

/* ─── Lock Notice & Countdown ────────────────────────────── */
.lock-notice {
  text-align: center;
  padding: 1rem .5rem 1.5rem;
}

.lock-icon {
  font-size: 2.2rem;
  margin-bottom: .5rem;
}

.lock-notice h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-dk);
  margin-bottom: .4rem;
}

.lock-notice p {
  font-size: .86rem;
  color: var(--gray-600);
  margin-bottom: 1.2rem;
}

.status-countdown {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.2rem;
}

.status-countdown .cd-item {
  background: var(--navy);
  color: var(--cream);
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  min-width: 60px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.status-countdown .cd-item span {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.1;
  color: var(--cream);
}

.status-countdown .cd-item label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(245, 239, 224, .75);
  display: block;
  margin-top: .2rem;
}

.lock-subhint {
  font-size: .8rem !important;
  color: var(--gray-600) !important;
  margin-bottom: 0 !important;
}

/* ─── Form Styles ────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy-dk);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-control {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(29, 52, 97, .1);
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-hint {
  font-size: .75rem;
  color: var(--gray-600);
  margin-top: .35rem;
}

.date-select-group {
  display: flex;
  gap: .5rem;
}

.date-select-group select.form-control {
  flex: 1;
  cursor: pointer;
  background-color: var(--white);
  appearance: auto;
  min-width: 0;
  padding-right: .4rem;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: .85rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background var(--ease);
}

.btn-submit:hover {
  background: var(--navy-lt);
}

.btn-submit:focus {
  outline: 2px solid var(--cream-dk);
  outline-offset: 2px;
}

.btn-submit:active {
  background: var(--navy-dk);
}

.btn-submit .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(245, 239, 224, .3);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .spinner {
  display: block;
}

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

/* ─── Result Panel ───────────────────────────────────────── */
.result-panel {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  display: none;
}

.result-panel.show {
  opacity: 1;
  transform: none;
  display: block;
}

/* Status types */
.result-diterima {
  border: 1px solid #2e7d52;
}

.result-tidak_diterima {
  border: 1px solid #b52b2b;
}

.result-cadangan {
  border: 1px solid #b07d00;
}

.result-error {
  border: 1px solid var(--gray-400);
}

.result-header {
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.result-diterima .result-header {
  background: #edf7f1;
}

.result-tidak_diterima .result-header {
  background: #fdf0f0;
}

.result-cadangan .result-header {
  background: #fdf8e8;
}

.result-error .result-header {
  background: var(--gray-100);
}

.result-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.result-diterima .result-icon {
  background: #2e7d52;
  color: #fff;
}

.result-tidak_diterima .result-icon {
  background: #b52b2b;
  color: #fff;
}

.result-cadangan .result-icon {
  background: #b07d00;
  color: #fff;
}

.result-error .result-icon {
  background: var(--gray-400);
  color: var(--white);
}

.result-header-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.result-diterima .result-header-text h3 {
  color: #1a5235;
}

.result-tidak_diterima .result-header-text h3 {
  color: #8b1a1a;
}

.result-cadangan .result-header-text h3 {
  color: #7a5700;
}

.result-error .result-header-text h3 {
  color: var(--gray-700);
}

.result-header-text p {
  font-size: .8rem;
  color: var(--gray-600);
}

.result-body {
  padding: 1rem 1.25rem;
  background: var(--white);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: .45rem 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 1rem;
}

.result-row:last-child {
  border-bottom: none;
}

.result-key {
  font-size: .76rem;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex-shrink: 0;
}

.result-val {
  font-size: .85rem;
  color: var(--navy-dk);
  font-weight: 600;
  text-align: right;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
}

.badge-diterima {
  background: #edf7f1;
  color: #1a5235;
  border: 1px solid #b6dfca;
}

.badge-tidak_diterima {
  background: #fdf0f0;
  color: #8b1a1a;
  border: 1px solid #e8b4b4;
}

.badge-cadangan {
  background: #fdf8e8;
  color: #7a5700;
  border: 1px solid #e8d4a0;
}

.result-note {
  margin: .75rem 1.25rem 1.25rem;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  line-height: 1.6;
}

.result-diterima .result-note {
  background: #edf7f1;
  color: #1a5235;
  border-left: 3px solid #2e7d52;
}

.result-tidak_diterima .result-note {
  background: #fdf0f0;
  color: #8b1a1a;
  border-left: 3px solid #b52b2b;
}

.result-cadangan .result-note {
  background: #fdf8e8;
  color: #7a5700;
  border-left: 3px solid #b07d00;
}

/* ─── Download Psikotes Action ────────────────────────────── */
.result-action {
  padding: 0 1.25rem 1.25rem;
}

.btn-download-psikotes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  padding: .8rem 1rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--ease), transform var(--ease);
  box-shadow: var(--shadow-sm);
}

.btn-download-psikotes:hover {
  background: var(--navy-lt);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-download-psikotes:active {
  transform: none;
}

/* ─── Info Notice ────────────────────────────────────────── */
.info-notice {
  background: var(--cream);
  border: 1px solid var(--cream-dk);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-top: 1.25rem;
  font-size: .82rem;
  color: var(--navy-dk);
  line-height: 1.6;
}

.info-notice strong {
  color: var(--navy);
}

/* ─── Dev Hint ───────────────────────────────────────────── */
.dev-hint {
  background: var(--cream-lt);
  border: 1px dashed var(--gray-400);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  margin-top: .9rem;
  font-size: .78rem;
  color: var(--gray-600);
}

.dev-hint strong {
  display: block;
  font-weight: 700;
  color: var(--navy-dk);
  margin-bottom: .35rem;
}

.dev-hint code {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  padding: .1em .35em;
  font-size: .76rem;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 560px) {
  .status-card-body {
    padding: 1.5rem 1.25rem;
  }

  .status-main {
    padding: 1.5rem 1rem;
  }

  .page-header {
    padding: 2rem 0 1.5rem;
  }
}
