* {
  box-sizing: border-box;
}

:root {
  --blue: #2e568a;
  --blue-dark: #1d3e68;
  --blue-light: #edf3fa;
  --gold: #e7b83f;
  --red: #e52327;
  --ink: #252525;
  --muted: #64748b;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f3f5f8;
  line-height: 1.6;
}

.header {
  background: var(--blue);
  color: var(--white);
  padding: 28px 20px;
  border-bottom: 5px solid var(--gold);
}

.header-inner {
  width: min(100%, 1050px);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  width: 105px;
  height: 105px;
  object-fit: contain;
  flex-shrink: 0;
  background: white;
  border-radius: 50%;
  padding: 4px;
}

.eyebrow {
  margin: 0 0 5px;
  color: #f6d77e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.subtitle {
  margin: 9px 0 0;
  color: #e6edf6;
}

.container {
  width: min(100% - 32px, 900px);
  margin: 34px auto 50px;
}

.intro {
  text-align: center;
  margin-bottom: 28px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  background: #fff2cc;
  color: #76570b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.intro h2 {
  color: var(--blue-dark);
  margin: 12px 0 5px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.intro p {
  margin: 0;
  color: var(--muted);
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 20px 22px;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue-dark);
  border-left: 6px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(24, 49, 79, 0.09);
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--blue-dark);
  background: var(--gold);
  font-weight: 800;
}

.step h3, .branch-section h3, .file-rules h3, .finish h3 {
  margin: 0 0 5px;
  font-size: 1.08rem;
}

.step p, .branch-card p, .finish p {
  margin: 0;
  color: #edf3fa;
}

.step-approved {
  background: var(--blue-dark);
  border-left-color: var(--red);
}

.arrow {
  text-align: center;
  color: #bd9228;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 3px 0;
}

.branch-section {
  padding: 22px;
  border: 2px solid #d5dfeb;
  background: var(--white);
  border-radius: 14px;
}

.branch-section > h3 {
  color: var(--blue-dark);
  text-align: center;
}

.branch-lead {
  text-align: center;
  margin: 0 0 18px;
  color: var(--muted);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.branch-card {
  padding: 16px;
  background: var(--blue);
  border-radius: 10px;
  color: var(--white);
  border-bottom: 4px solid var(--gold);
}

.branch-label {
  display: inline-block;
  margin-bottom: 9px;
  padding: 3px 9px;
  background: var(--gold);
  color: var(--blue-dark);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.branch-card h4 {
  margin: 0 0 7px;
  font-size: 0.98rem;
}

.branch-card p {
  font-size: 0.9rem;
}

.file-rules {
  padding: 22px;
  background: #fff;
  border: 1px solid #d8e0e9;
  border-radius: 14px;
}

.file-rules h3 {
  color: var(--blue-dark);
}

.file-rules > p {
  margin: 6px 0 14px;
  color: var(--muted);
}

.file-list {
  display: grid;
  gap: 9px;
}

.file-list div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 13px;
  background: var(--blue-light);
  border-radius: 8px;
}

.file-list span {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.file-list code {
  color: #29384b;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.file-rules .note {
  margin: 13px 0 0;
  font-size: 0.85rem;
}

.finish {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  color: white;
  background: #173c66;
  border: 2px solid var(--gold);
  border-radius: 12px;
}

.finish-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red);
  font-size: 1.5rem;
  font-weight: 800;
}

.important {
  margin-top: 24px;
  padding: 17px 20px;
  background: #fff8e7;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
}

.important strong {
  color: var(--blue-dark);
}

.important p {
  margin: 4px 0 0;
}

footer {
  padding: 20px;
  text-align: center;
  color: #e7edf5;
  background: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.7px;
}

footer p {
  margin: 0;
}

@media (max-width: 650px) {
  .header-inner {
    align-items: flex-start;
    gap: 14px;
  }

  .logo {
    width: 76px;
    height: 76px;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .step {
    padding: 16px;
    gap: 12px;
  }

  .step-number {
    width: 36px;
    height: 36px;
  }

  .branch-grid {
    grid-template-columns: 1fr;
  }

  .branch-section, .file-rules {
    padding: 16px;
  }
}

/* PENYEMPURNAAN TAMPILAN */

.step {
  min-width: 0;
}

.step > div {
  flex: 1;
  min-width: 0;
}

.step p {
  overflow-wrap: break-word;
}

/* TAMPILAN HP */
@media (max-width: 650px) {
  .step h3 {
    font-size: 1rem;
  }

  .step p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .finish p {
    font-size: 0.9rem;
  }

  .arrow {
    font-size: 1.8rem;
  }
}