/* ============================================================
   REMEDY SERVICES LLC — Public Site Styles
   Brand: Navy #1F3A6E | Green #2E6B2E
   ============================================================ */

:root {
  --navy:      #1F3A6E;
  --navy-dark: #152a52;
  --green:     #2E6B2E;
  --green-lt:  #3a8a3a;
  --white:     #FFFFFF;
  --gray-50:   #F8F9FA;
  --gray-100:  #F2F4F7;
  --gray-200:  #E9ECEF;
  --gray-300:  #D0D5DD;
  --gray-500:  #6B7280;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --red:       #B22222;
  --orange:    #CC6600;
  --font:      'Segoe UI', system-ui, sans-serif;
  --radius:    8px;
  --shadow:    0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

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

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--gray-100);
  min-height: 100vh;
}

/* ── PUBLIC HEADER ── */
.pub-header {
  background: var(--navy);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pub-brand { color: var(--white); text-decoration: none; }
.pub-brand .brand-name { font-size: 18px; font-weight: 800; }
.pub-brand .brand-tag  { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 1px; }

.pub-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  margin-left: 20px;
  transition: color 0.15s;
}
.pub-nav a:hover { color: var(--white); }

/* ── PROGRESS BAR ── */
.progress-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
}

.progress-steps {
  display: flex;
  max-width: 700px;
  margin: 0 auto;
}

.progress-step {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-300);
  border-bottom: 3px solid transparent;
  position: relative;
}

.progress-step.done    { color: var(--green);  border-bottom-color: var(--green); }
.progress-step.current { color: var(--navy);   border-bottom-color: var(--navy); font-weight: 700; }

.progress-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.progress-step.done    .step-num { background: var(--green); color: var(--white); }
.progress-step.current .step-num { background: var(--navy);  color: var(--white); }

/* ── PAGE CONTAINER ── */
.pub-container {
  max-width: 820px;
  margin: 32px auto;
  padding: 0 20px;
}

.pub-container.wide { max-width: 1100px; }

/* ── CARDS ── */
.pub-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}

.pub-card-header {
  background: var(--navy);
  color: var(--white);
  padding: 18px 24px;
}

.pub-card-header h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pub-card-header p  { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }

.pub-card-body { padding: 28px 24px; }
.pub-card-footer { padding: 16px 24px; background: var(--gray-50); border-top: 1px solid var(--gray-200); }

/* ── SERVICE SELECTION ── */
.service-category { margin-bottom: 28px; }

.category-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--green);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.service-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
}

.service-card:hover { border-color: var(--navy); box-shadow: 0 2px 8px rgba(31,58,110,0.10); }
.service-card.selected { border-color: var(--green); background: #F0FFF4; }

.service-card input[type="checkbox"] { margin-top: 2px; accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }

.service-info { flex: 1; }
.service-name  { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.service-price { font-size: 13px; color: var(--green); font-weight: 700; margin-top: 2px; }
.service-desc  { font-size: 12px; color: var(--gray-500); margin-top: 3px; }

/* ── FORMS ── */
.form-section { margin-bottom: 28px; }
.form-section-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); }

.form-grid   { display: grid; gap: 16px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-label.required::after { content: ' *'; color: var(--red); }

.form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-900);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--white);
  font-family: var(--font);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,58,110,0.12);
}

textarea.form-control { resize: vertical; min-height: 90px; }

/* ── QUOTE TABLE ── */
.quote-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.quote-table th { background: var(--navy); color: var(--white); padding: 10px 14px; text-align: left; font-size: 13px; }
.quote-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.quote-table tr:last-child td { border-bottom: none; }
.quote-table tr.alt td { background: var(--gray-50); }
.quote-table .total-row td { background: var(--navy); color: var(--white); font-weight: 700; font-size: 15px; }
.quote-table td.right { text-align: right; }

/* ── SIGNATURE AREA ── */
.sig-area {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--gray-50);
  padding: 20px;
  margin: 16px 0;
}

.sig-canvas {
  border: 1.5px solid var(--gray-300);
  border-radius: 5px;
  background: var(--white);
  display: block;
  width: 100%;
  height: 120px;
  cursor: crosshair;
  touch-action: none;
}

.sig-controls { display: flex; justify-content: flex-end; margin-top: 8px; }
.sig-clear { font-size: 12px; color: var(--red); cursor: pointer; background: none; border: none; padding: 4px 8px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font);
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { background: var(--green-lt); }
.btn-outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--gray-50); }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-danger { background: var(--red); color: var(--white); }

/* ── ALERTS ── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; border-left: 4px solid; }
.alert-success { background: #F0FDF4; border-color: var(--green); color: #166534; }
.alert-warning { background: #FFF7ED; border-color: var(--orange); color: #C2410C; }
.alert-danger  { background: #FEF2F2; border-color: var(--red);    color: #991B1B; }
.alert-info    { background: #EFF6FF; border-color: var(--navy);   color: #1D4ED8; }

/* ── NOTICE BOXES ── */
.notice-box {
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1.5px solid;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}

.notice-arb  { background: #FEF2F2; border-color: var(--red);    color: #991B1B; }
.notice-info { background: #EFF6FF; border-color: var(--navy);   color: #1D4ED8; }
.notice-ok   { background: #F0FFF4; border-color: var(--green);  color: #166534; }

/* ── STATUS DISPLAY ── */
.job-status-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.job-status-header {
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-number { font-size: 22px; font-weight: 800; }
.job-status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.pipeline-track {
  padding: 20px 24px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.stage-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gray-200);
  position: relative;
}

.stage-dot.done    { background: var(--green); }
.stage-dot.current { background: var(--navy); box-shadow: 0 0 0 3px rgba(31,58,110,0.2); }

/* ── CONFIRMATION ── */
.confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* ── FOOTER ── */
.pub-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  margin-top: 48px;
}

.pub-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-navy   { color: var(--navy); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--gray-500); }
.text-sm     { font-size: 13px; }
.text-bold   { font-weight: 700; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .progress-step .step-label { display: none; }
  .pub-container { padding: 0 12px; }
}
