/* RoofScour Schedule Generator v2 — schedule.css */

.rsg-wrap {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(26,31,46,0.12);
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(26,31,46,0.08);
}

/* ── Header ── */
.rsg-header {
  background: #1a1f2e;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rsg-header-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,131,42,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rsg-header-text { flex: 1; min-width: 160px; }
.rsg-header-title {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: #f5f0e8;
  font-weight: 400;
}
.rsg-header-sub {
  font-size: 12px;
  color: rgba(245,240,232,0.4);
  margin-top: 2px;
}
.rsg-progress-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.rsg-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: rgba(245,240,232,0.1);
  color: rgba(245,240,232,0.35);
  transition: all 0.2s;
  flex-shrink: 0;
}
.rsg-pill.active    { background: #c8832a; color: #fff; }
.rsg-pill.completed { background: #1e7a6e; color: #fff; }
.rsg-pill-line { width: 16px; height: 1px; background: rgba(245,240,232,0.15); flex-shrink: 0; }

/* ── Questions ── */
.rsg-questions { padding: 32px 28px 8px; }
.rsg-step { display: none; }
.rsg-step.active { display: block; }

.rsg-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8832a;
  margin-bottom: 10px;
}
.rsg-step-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: clamp(18px, 2.5vw, 24px) !important;
  color: #1a1f2e !important;
  font-weight: 400 !important;
  margin: 0 0 8px !important;
  line-height: 1.3 !important;
}
.rsg-step-sub {
  font-size: 13px;
  color: #4a5268;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ── Options ── */
.rsg-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.rsg-options-2col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rsg-options-3col { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.rsg-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  background: #f5f0e8;
  border: 1.5px solid rgba(26,31,46,0.1);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  width: 100%;
}
.rsg-option:hover {
  border-color: rgba(200,131,42,0.4);
  background: #fdf3e3;
  transform: translateY(-1px);
}
.rsg-option.selected {
  border-color: #c8832a;
  background: #fdf3e3;
  box-shadow: 0 0 0 3px rgba(200,131,42,0.12);
}
.rsg-opt-icon {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5268;
  transition: all 0.15s;
  flex-shrink: 0;
}
.rsg-option.selected .rsg-opt-icon { background: #c8832a; color: #ffffff; }
.rsg-opt-name { font-size: 13px; font-weight: 600; color: #1a1f2e; display: block; }
.rsg-opt-desc { font-size: 11px; color: #4a5268; line-height: 1.4; display: block; }

/* ── Nav ── */
.rsg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 24px;
  gap: 10px;
}
.rsg-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.rsg-nav-hint { font-size: 12px; color: #888780; font-style: italic; }
.rsg-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: transparent;
  color: #4a5268;
  border: 1px solid rgba(26,31,46,0.15);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.rsg-btn-back:hover { color: #1a1f2e; border-color: rgba(26,31,46,0.3); }
.rsg-btn-next {
  padding: 10px 22px;
  background: #c8832a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.rsg-btn-next:hover    { background: #e09840; }
.rsg-btn-next:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Results ── */
.rsg-results { background: #ffffff; }

.rsg-summary-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  background: #1a1f2e;
  flex-wrap: wrap;
  border-top: 1px solid rgba(245,240,232,0.08);
}
.rsg-summary-item {
  font-size: 12px;
  color: rgba(245,240,232,0.55);
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
}
.rsg-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 5px 12px;
  background: transparent;
  color: rgba(245,240,232,0.45);
  border: 1px solid rgba(245,240,232,0.15);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.rsg-edit-btn:hover { color: #f5f0e8; border-color: rgba(245,240,232,0.3); }

/* Key numbers */
.rsg-key-numbers {
  display: flex;
  align-items: stretch;
  padding: 24px 28px;
  gap: 0;
  border-bottom: 1px solid rgba(26,31,46,0.08);
  flex-wrap: wrap;
}
.rsg-kn-item {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 12px;
}
.rsg-kn-divider {
  width: 1px;
  background: rgba(26,31,46,0.08);
  margin: 4px 0;
  flex-shrink: 0;
}
.rsg-kn-num {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 4px;
}
.rsg-kn-roof    { color: #c8832a; }
.rsg-kn-gutter  { color: #1e7a6e; }
.rsg-kn-inspect { color: #4a5268; }
.rsg-kn-treat   { color: #854F0B; }
.rsg-kn-label { font-size: 12px; font-weight: 600; color: #1a1f2e; margin-bottom: 2px; }
.rsg-kn-sub   { font-size: 11px; color: #888780; }

/* Calendar */
.rsg-calendar-wrap {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(26,31,46,0.08);
}
.rsg-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.rsg-calendar-title { font-size: 13px; font-weight: 600; color: #1a1f2e; }
.rsg-calendar-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.rsg-legend-item {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}
.rsg-legend-roof    { background: #fdf3e3; color: #854F0B; }
.rsg-legend-gutter  { background: #e4f5f0; color: #0F6E56; }
.rsg-legend-inspect { background: #f5f0e8; color: #4a5268; }
.rsg-legend-treat   { background: #FAEEDA; color: #854F0B; border: 1px dashed #c8832a; }

.rsg-calendar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.rsg-month {
  background: #fafaf8;
  border-radius: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(26,31,46,0.07);
  min-height: 76px;
}
.rsg-month-current { border-color: #c8832a; background: #fdf9f5; }
.rsg-month-empty   { opacity: 0.5; }
.rsg-month-name {
  font-size: 11px;
  font-weight: 700;
  color: #1a1f2e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
}
.rsg-month-current .rsg-month-name { color: #c8832a; }
.rsg-month-tasks { display: flex; flex-direction: column; gap: 4px; }
.rsg-task {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rsg-task-roof    { background: #fdf3e3; color: #854F0B; }
.rsg-task-gutter  { background: #e4f5f0; color: #0F6E56; }
.rsg-task-inspect { background: #f5f0e8; color: #4a5268; }
.rsg-task-treat   { background: #FAEEDA; color: #854F0B; border: 1px dashed #c8832a; }
.rsg-month-idle   { font-size: 11px; color: #888780; }

/* Tips */
.rsg-tips {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(26,31,46,0.08);
}
.rsg-tips-title { font-size: 13px; font-weight: 600; color: #1a1f2e; margin-bottom: 14px; }
.rsg-tips-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rsg-tip-card {
  background: #f5f0e8;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(26,31,46,0.07);
}
.rsg-tip-season {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8832a;
  margin-bottom: 6px;
}
.rsg-tip-card p { font-size: 12px; color: #4a5268; line-height: 1.6; margin: 0; }

/* Actions */
.rsg-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 28px; }
.rsg-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  background: #c8832a;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s;
  white-space: nowrap;
}
.rsg-btn-primary:hover { background: #e09840; }
.rsg-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  background: transparent;
  color: #4a5268;
  border: 1px solid rgba(26,31,46,0.15);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.rsg-btn-secondary:hover { color: #1a1f2e; border-color: rgba(26,31,46,0.3); }

/* CTA */
.rsg-cta { background: #1a1f2e; padding: 20px 28px; }
.rsg-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rsg-cta-text { display: flex; flex-direction: column; gap: 3px; }
.rsg-cta-text strong { font-size: 14px; font-weight: 600; color: #f5f0e8; }
.rsg-cta-text span   { font-size: 12px; color: rgba(245,240,232,0.4); }

/* ── Print ── */
@media print {
  .rsg-header, .rsg-questions, .rsg-nav,
  .rsg-summary-bar, .rsg-actions, .rsg-cta,
  .rsg-edit-btn { display: none !important; }
  .rsg-wrap  { box-shadow: none; border: 1px solid #ddd; }
  .rsg-calendar { grid-template-columns: repeat(4, 1fr); }
}

/* ── Responsive ── */
@media (max-width: 580px) {
  .rsg-header        { padding: 14px 16px; }
  .rsg-questions     { padding: 22px 16px 8px; }
  .rsg-nav           { padding: 12px 16px 20px; }
  .rsg-calendar-wrap,
  .rsg-key-numbers,
  .rsg-tips,
  .rsg-actions,
  .rsg-cta           { padding-left: 16px; padding-right: 16px; }
  .rsg-calendar      { grid-template-columns: repeat(3, 1fr); }
  .rsg-options-2col,
  .rsg-options-3col,
  .rsg-options-grid  { grid-template-columns: 1fr 1fr; }
  .rsg-cta-inner     { flex-direction: column; align-items: flex-start; }
  .rsg-cta .rsg-btn-primary { width: 100%; justify-content: center; }
  .rsg-progress-pills { display: none; }
  .rsg-kn-divider    { display: none; }
  .rsg-key-numbers   { gap: 8px; }
  .rsg-kn-item       { min-width: 80px; }
}
