/* ========================================
   DEFECT FORM GUIDE — STYLESHEET
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@400;500;600&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: #0f1117;
  color: #e8eaf0;
  min-height: 100vh;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #111827 0%, #1a2035 60%, #0f1117 100%);
  border-bottom: 3px solid #f59e0b;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: #f59e0b;
  color: #0f1117;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: #f0f2f8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
}

.hero h1 .accent { color: #f59e0b; }

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: #9ca3af;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.2rem 3rem;
}

/* ---- LEGAL BANNER ---- */
.legal-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(245,158,11,0.10);
  border: 1.5px solid rgba(245,158,11,0.4);
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
}

.legal-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }

.legal-banner p {
  font-size: 1rem;
  color: #e8d9b0;
  line-height: 1.5;
}

/* ---- RULES GRID ---- */
.rules-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .rules-grid { flex-direction: row; flex-wrap: wrap; }
  .rules-grid .rule-card { flex: 1 1 calc(33% - 0.7rem); min-width: 200px; }
}

.rule-card {
  background: #181d2a;
  border: 1px solid #2a3048;
  border-radius: 8px;
  padding: 1.4rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.rule-card:hover { border-color: #f59e0b; }

.rule-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}

.rule-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f2f8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.rule-body p { font-size: 0.9rem; color: #9ca3af; }
.rule-body strong { color: #e8d9b0; }

/* ---- CHOOSE SECTION ---- */
.choose-section { margin-top: 1rem; }

.choose-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f0f2f8;
  margin-bottom: 0.4rem;
}

.choose-sub { color: #6b7280; font-size: 0.95rem; margin-bottom: 1.6rem; }

/* ---- BUTTON CARDS ---- */
.btn-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .btn-grid {
    flex-direction: row;
  }
  .btn-card { flex: 1; }
}

.btn-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.3rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative;
  overflow: hidden;
}

.btn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.btn-green  { background: #0d2018; border-color: #16a34a; }
.btn-green:hover  { border-color: #22c55e; box-shadow: 0 8px 30px rgba(34,197,94,0.2); }

.btn-amber  { background: #1f1608; border-color: #d97706; }
.btn-amber:hover  { border-color: #f59e0b; box-shadow: 0 8px 30px rgba(245,158,11,0.2); }

.btn-red    { background: #200d0d; border-color: #b91c1c; }
.btn-red:hover    { border-color: #ef4444; box-shadow: 0 8px 30px rgba(239,68,68,0.25); }

.btn-icon { font-size: 1.8rem; }

.btn-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f0f2f8;
}

.btn-green  .btn-label { color: #86efac; }
.btn-amber  .btn-label { color: #fcd34d; }
.btn-red    .btn-label { color: #fca5a5; }

.btn-desc { font-size: 0.87rem; color: #9ca3af; line-height: 1.4; }

.btn-arrow {
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: #4b5563;
  transition: color 0.2s, transform 0.2s;
}
.btn-card:hover .btn-arrow { color: #f59e0b; transform: translateX(4px); }

/* ---- FOOTER ---- */
.site-footer {
  background: #0a0d14;
  border-top: 1px solid #1f2535;
  text-align: center;
  padding: 1.4rem 1rem;
  font-size: 0.85rem;
  color: #4b5563;
}

/* ============================================
   INNER PAGES (no-defect, minor, serious)
   ============================================ */

.page-header {
  padding: 2rem 1.5rem 1.8rem;
  border-bottom: 3px solid var(--page-accent, #f59e0b);
  background: linear-gradient(135deg, #111827 0%, #1a2035 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.back-link:hover { color: #f59e0b; }

.page-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}

.tag-green  { background: #166534; color: #bbf7d0; }
.tag-amber  { background: #92400e; color: #fde68a; }
.tag-red    { background: #7f1d1d; color: #fecaca; }

.page-header h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: #f0f2f8;
}

.page-header h1 span { color: var(--page-accent, #f59e0b); }

.page-header p { font-size: 0.95rem; color: #6b7280; margin-top: 0.4rem; }

/* image placeholder box */
.form-image-box {
  background: #181d2a;
  border: 2px dashed #2a3048;
  border-radius: 8px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #4b5563;
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-image-box img {
  max-width: 100%;
  border-radius: 6px;
  display: block;
}

.img-placeholder-icon { font-size: 3rem; opacity: 0.35; }
.img-placeholder-text { font-size: 0.85rem; color: #4b5563; }

/* instruction card */
.instruction-card {
  background: #181d2a;
  border: 1.5px solid #2a3048;
  border-left: 4px solid var(--page-accent, #f59e0b);
  border-radius: 8px;
  padding: 1.6rem 1.4rem;
  margin-bottom: 1.5rem;
}

.instruction-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f0f2f8;
  margin-bottom: 1rem;
}

.instruction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.instruction-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: #c4cad8;
  line-height: 1.5;
}

.instruction-list li .bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.bullet-green  { background: #166534; color: #86efac; }
.bullet-amber  { background: #92400e; color: #fcd34d; }
.bullet-red    { background: #7f1d1d; color: #fca5a5; }

.instruction-list li strong { color: #f0f2f8; }

/* alert box */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.93rem;
  line-height: 1.55;
}

.alert-box .alert-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 1px; }
.alert-box p strong { display: block; margin-bottom: 0.2rem; }

.alert-green { background: rgba(22,163,74,0.12); border: 1.5px solid rgba(22,163,74,0.3); color: #86efac; }
.alert-amber { background: rgba(217,119,6,0.12); border: 1.5px solid rgba(217,119,6,0.3); color: #fcd34d; }
.alert-red   { background: rgba(185,28,28,0.15); border: 1.5px solid rgba(185,28,28,0.35); color: #fca5a5; }

/* ---- RESPONSIVE UTIL ---- */
@media (max-width: 480px) {
  .page-header { padding: 1.5rem 1rem 1.4rem; }
  .container { padding: 1.4rem 1rem 2.5rem; }
}
