/* Global Insurance - Claim Tracker styles.
   Colors below are a default dark-green palette (your live site could not be inspected).
   Change the variables in :root to match your site's exact greens and font. */
:root {
  --green-900: #0f3d26;
  --green-700: #166534;
  --green-600: #15803d;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink: #1b2a22;
  --muted: #5b6b62;
  --line: #e2e8e4;
  --bg: #f5f7f6;
  --white: #fff;
  --warn: #92400e; --warn-bg: #fef3c7;
  --bad: #991b1b; --bad-bg: #fee2e2;
  --info: #14532d; --info-bg: #e7f3ec;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--green-900); color: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; flex-wrap: wrap; gap: 8px; }
.brand { color: var(--white); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.site-header nav a { color: #d1e7da; text-decoration: none; margin-left: 20px; padding: 4px 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--white); border-bottom: 2px solid var(--white); }

.hero { text-align: center; padding: 40px 0 20px; }
.hero h1 { margin: 0 0 8px; color: var(--green-900); font-size: 2rem; }
.hero p { margin: 0; color: var(--muted); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-row { display: flex; gap: 12px; }
input[type=text] { flex: 1; min-width: 0; padding: 12px 14px; font-size: 1rem; border: 1px solid #b8c4bc; border-radius: 6px; font-family: inherit; }
input[type=text]:focus, .btn:focus-visible { outline: 3px solid #86c9a0; outline-offset: 1px; border-color: var(--green-600); }
.btn { background: var(--green-700); color: var(--white); border: 0; border-radius: 6px; padding: 12px 22px; font-size: 1rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--green-900); }
.btn-outline { background: var(--white); color: var(--green-700); border: 1px solid var(--green-700); margin-top: 28px; }
.btn-outline:hover { background: var(--green-50); }
.error { margin: 14px 0 0; padding: 12px 14px; background: var(--bad-bg); color: var(--bad); border-radius: 6px; }

.loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--green-700); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.result:focus { outline: none; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.eyebrow { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.result h2 { margin: 2px 0 0; font-size: 1.6rem; color: var(--green-900); overflow-wrap: anywhere; }
.badge { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.badge.is-info { background: var(--info-bg); color: var(--info); }
.badge.is-good { background: var(--green-100); color: var(--green-700); }
.badge.is-warn { background: var(--warn-bg); color: var(--warn); }
.badge.is-bad { background: var(--bad-bg); color: var(--bad); }

.progress { margin-top: 24px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .95rem; }
.bar { height: 12px; background: #e5ebe7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--green-600); border-radius: 999px; transition: width .4s ease; }

.amount { margin-top: 24px; padding: 18px 20px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 8px; }
.amount-value { margin: 4px 0 0; font-size: 2.2rem; font-weight: 700; color: var(--green-900); overflow-wrap: anywhere; }

.result h3 { margin: 32px 0 12px; font-size: 1.1rem; color: var(--green-900); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.detail dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.detail dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.summary { margin: 0; white-space: pre-line; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; }
.tl-item { position: relative; padding: 0 0 22px 28px; border-left: 2px solid var(--line); margin-left: 6px; }
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl-dot { position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--green-600); }
.tl-item.is-current .tl-dot { background: var(--green-600); }
.tl-body p { margin: 0; }
.tl-status { font-weight: 600; }
.tl-date { color: var(--muted); font-size: .9rem; }
.tl-note { margin-top: 2px; font-size: .95rem; overflow-wrap: anywhere; }

.site-footer { padding: 24px 0 40px; text-align: center; color: var(--muted); font-size: .9rem; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .form-row { flex-direction: column; }
  .btn { width: 100%; }
  .details { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .amount-value { font-size: 1.8rem; }
  .site-header nav a { margin: 0 16px 0 0; }
}
