/* TakeBackMyPhone — Brand colors: Navy #1B2F5E, Gold #F5A800 */
:root {
  --navy: #1B2F5E;
  --gold: #F5A800;
  --navy-light: #243d7a;
  --text: #1a1a2e;
  --muted: #6b7280;
  --bg: #f8f9fa;
  --white: #ffffff;
  --danger: #dc2626;
  --border: #e5e7eb;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
.navbar {
  background: var(--navy);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-take, .brand-my { color: var(--white); }
.brand-back, .brand-phone { color: var(--gold); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.btn-nav {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
}
.btn-nav:hover { background: #e0970a; }

/* Flash messages */
.flash-container { max-width: 700px; margin: 1rem auto; padding: 0 1rem; }
.flash {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.2rem; margin-bottom: 2rem; color: rgba(255,255,255,0.9); }
.hero-fine { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.75rem; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #e0970a; text-decoration: none; }
.btn-full { width: 100%; text-align: center; }
.btn-danger {
  display: inline-block;
  background: var(--danger);
  color: var(--white);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}
.btn-danger:hover { background: #b91c1c; }

/* Features */
.features { max-width: 1100px; margin: 4rem auto; padding: 0 1.5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--navy); }

/* Forms */
.form-page {
  max-width: 560px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.form-page h2 { font-size: 1.6rem; color: var(--navy); margin-bottom: 0.4rem; }
.form-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.hint { font-weight: 400; color: var(--muted); }
.form-group input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.form-group input:focus { outline: none; border-color: var(--navy); }
.privacy-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  color: #1e40af;
  margin-bottom: 1.1rem;
}
.form-link { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
.cf-turnstile { margin-bottom: 1rem; }

/* Dashboard */
.dashboard { max-width: 900px; margin: 2.5rem auto; padding: 0 1.5rem; }
.welcome-banner {
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: #166534;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.dash-header { margin-bottom: 2rem; }
.dash-header h2 { font-size: 1.8rem; color: var(--navy); }
.dash-sub { color: var(--muted); margin-top: 0.3rem; }
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.status-active { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-pending_payment { background: #fef3c7; color: #92400e; }

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.dash-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1.1rem; }
.dash-card-danger { border-color: #fca5a5; }

.progress-summary { font-size: 1.3rem; margin-bottom: 0.6rem; }
.progress-num { font-weight: 700; color: var(--navy); }
.progress-bar-wrap { background: #e5e7eb; border-radius: 999px; height: 12px; margin-bottom: 1.25rem; overflow: hidden; }
.progress-bar { background: var(--gold); height: 100%; border-radius: 999px; transition: width 0.3s; }

.results-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.results-table th { text-align: left; padding: 0.5rem 0.75rem; background: #f3f4f6; color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.results-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.site-status { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.site-removed { background: #dcfce7; color: #166534; }
.site-pending { background: #fef3c7; color: #92400e; }
.site-found { background: #fee2e2; color: #991b1b; }

.detail-list { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; }
.detail-list dt { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.detail-list dd { font-size: 0.95rem; }
.muted { color: var(--muted); }

/* Footer */
.footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 4rem; }
.footer a { color: var(--muted); }

/* Error page */
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-size: 4rem; color: var(--navy); }
.error-page p { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; }
