/* =====================================================
   CEK RESI ONLINE — Page Styles
   ===================================================== */

/* ─── Hero ─────────────────────────────────────────── */
.cr-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0b2138 0%, #123152 55%, #1b4569 100%);
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* bg grid pattern */
.cr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M59 0v60' stroke='%23ffffff' stroke-opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* floating amber glow */
.cr-hero::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,163,38,.10), transparent 65%);
  pointer-events: none;
}

.cr-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* breadcrumb */
.cr-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.cr-breadcrumb a { color: rgba(255,255,255,.7); transition: color .2s; }
.cr-breadcrumb a:hover { color: #e0a326; }

/* eyebrow badge */
.cr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 20px;
  background: rgba(224,163,38,.13);
  border: 1px solid rgba(224,163,38,.35);
  color: #e0a326;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.cr-hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 18px;
}
.cr-hero h1 em {
  font-style: normal;
  color: #e0a326;
}

.cr-hero p.cr-lead {
  font-size: 17px;
  color: #b8cfe2;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 36px;
}

/* ─── Search form ───────────────────────────────────── */
.cr-form-outer { position: relative; }

.cr-form-wrap {
  display: flex;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.cr-form-wrap:focus-within {
  border-color: #e0a326;
  box-shadow: 0 0 0 4px rgba(224,163,38,.14);
  background: rgba(255,255,255,.10);
}

.cr-search-icon {
  display: flex;
  align-items: center;
  padding: 0 0 0 18px;
  color: rgba(255,255,255,.45);
  flex-shrink: 0;
}

.cr-input {
  flex: 1;
  background: none;
  border: 0;
  padding: 18px 16px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.cr-input::placeholder { color: rgba(255,255,255,.40); }

.cr-btn {
  background: #e0a326;
  border: 0;
  padding: 0 28px;
  color: #0b2138;
  font-weight: 800;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: 0 12px 12px 0;
}
.cr-btn:hover:not(:disabled) { background: #c68a12; }
.cr-btn:active { transform: scale(.97); }
.cr-btn:disabled { opacity: .55; cursor: not-allowed; }

/* form error */
.cr-form-error {
  margin-top: 10px;
  font-size: 13.5px;
  color: #fca5a5;
  display: none;
  align-items: center;
  gap: 6px;
}
.cr-form-error.show { display: flex; }

/* ─── Courier chips ─────────────────────────────────── */
.cr-couriers-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 22px 0 10px;
}
.cr-couriers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cr-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  transition: all .2s;
}
.cr-badge:hover { background: rgba(224,163,38,.15); border-color: rgba(224,163,38,.3); color: #e0a326; }

/* ─── Hero SVG visual ───────────────────────────────── */
.cr-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Stats row in hero ─────────────────────────────── */
.cr-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.cr-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #e0a326;
  line-height: 1;
  letter-spacing: -.5px;
}
.cr-stat span {
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* ─── Loading state ─────────────────────────────────── */
.cr-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 20px;
}
.cr-loading.show { display: flex; }

.cr-spinner {
  width: 52px; height: 52px;
  border: 4px solid rgba(27,69,105,.2);
  border-top-color: #e0a326;
  border-radius: 50%;
  animation: crSpin .85s linear infinite;
}
@keyframes crSpin { to { transform: rotate(360deg); } }

.cr-loading p {
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
  animation: crDots 1.5s ease-in-out infinite;
}
@keyframes crDots {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* ─── Error / Empty state ───────────────────────────── */
.cr-error-box {
  display: none;
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 32px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #fecaca;
  text-align: center;
}
.cr-error-box.show { display: block; }
.cr-error-box .err-icon { font-size: 48px; margin-bottom: 14px; }
.cr-error-box h3 { color: #dc2626; font-size: 18px; margin-bottom: 8px; }
.cr-error-box p  { color: var(--slate); font-size: 14.5px; }

/* ─── Results wrapper ───────────────────────────────── */
.cr-result-section {
  display: none;
  padding: 64px 0 80px;
  background: var(--paper);
}
.cr-result-section.show { display: block; }

/* section title */
.cr-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #e0a326;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cr-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ─── Info cards grid ───────────────────────────────── */
.cr-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.cr-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid #e0a326;
  transition: box-shadow .2s, transform .2s;
}
.cr-info-card:hover { box-shadow: 0 8px 24px rgba(11,33,56,.10); transform: translateY(-2px); }

.cr-info-card .ic-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cr-info-card .ic-value {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-900);
  word-break: break-word;
  line-height: 1.4;
}
.cr-info-card .ic-value.delivered { color: #16a34a; }
.cr-info-card .ic-value.on-transit { color: #d97706; }
.cr-info-card .ic-value.processing { color: #2563eb; }

/* ─── Sender / Recipient ────────────────────────────── */
.cr-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.cr-party {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cr-party-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--steel));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cr-party-icon svg { width: 22px; height: 22px; }
.cr-party-body .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.cr-party-body .value {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.5;
}

/* ─── Tracking timeline ─────────────────────────────── */
.cr-timeline-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 12px;
  border: 1px solid var(--line);
}

.cr-timeline { position: relative; }

.cr-timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}

/* vertical line */
.cr-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #e0a326, rgba(224,163,38,.15));
}

.cr-tl-dot {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #e0a326;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(224,163,38,.25);
  display: grid;
  place-items: center;
  margin-top: 1px;
  z-index: 1;
  position: relative;
}
.cr-tl-dot svg { width: 14px; height: 14px; }

/* first item = current status */
.cr-timeline-item:first-child .cr-tl-dot {
  background: var(--navy-900);
  box-shadow: 0 0 0 4px rgba(11,33,56,.15);
}

/* other items = dimmer */
.cr-timeline-item:not(:first-child) .cr-tl-dot {
  background: #c68a12;
  width: 28px; height: 28px;
  margin-top: 3px;
}

.cr-tl-body { flex: 1; }
.cr-tl-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cr-tl-date span { color: #e0a326; font-weight: 700; }
.cr-tl-desc {
  font-size: 14.5px;
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.5;
}
.cr-timeline-item:first-child .cr-tl-desc { font-size: 15px; color: var(--navy-900); }
.cr-timeline-item:not(:first-child) .cr-tl-desc { color: var(--slate); font-weight: 500; }

/* empty timeline */
.cr-timeline-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--slate);
  font-size: 14px;
}

/* ─── SPX Redirect Link ──────────────────────────────── */
.cr-spx-link {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 24px;
  background: #ee4d2d;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .15s;
}
.cr-spx-link:hover {
  background: #d4421f;
  transform: translateY(-1px);
  color: #fff;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .cr-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .cr-hero h1 { font-size: 38px; }
  .cr-lead { margin: 0 auto 36px; }
  .cr-breadcrumb, .cr-couriers, .cr-stats { justify-content: center; }
  .cr-hero-visual { display: none; }
  .cr-info-grid { grid-template-columns: repeat(2, 1fr); }
  .cr-form-error { text-align: left; }
}

@media (max-width: 640px) {
  .cr-hero { padding: 80px 0 60px; min-height: auto; }
  .cr-hero h1 { font-size: 30px; letter-spacing: -1px; }
  .cr-btn { padding: 0 18px; font-size: 14px; }
  .cr-info-grid { grid-template-columns: 1fr 1fr; }
  .cr-parties { grid-template-columns: 1fr; }
  .cr-stats { gap: 20px; flex-wrap: wrap; }
  .cr-timeline-wrap { padding: 20px 16px 8px; }
  .cr-info-card { padding: 18px 14px 16px; }
}

@media (max-width: 480px) {
  .cr-btn-text { display: none; }
  .cr-btn { padding: 0 18px; min-width: 54px; }
  .cr-hero { padding: 70px 0 50px; }
  .cr-hero h1 { font-size: 26px; }
  .cr-hero p.cr-lead { font-size: 15.5px; }
  .cr-input { padding: 16px 12px; font-size: 15px; }
  .cr-stat strong { font-size: 22px; }
  .cr-stat { text-align: center; }
  .cr-info-card .ic-value { font-size: 14px; }
  .cr-timeline-wrap { padding: 16px 12px 6px; }
  .cr-tl-desc { font-size: 13.5px; }
  .cr-tl-date { font-size: 11.5px; }
  .cr-timeline-item { gap: 14px; }
  .cr-party { padding: 16px 14px; gap: 12px; }
  .cr-party-icon { width: 38px; height: 38px; border-radius: 8px; }
  .cr-result-section { padding: 44px 0 60px; }
}
