/* Web Design Cost Calculator - Frontend Styles */
#wdcc-wrapper {
  --accent: var(--wdcc-accent, #e94560);
  --brand:  var(--wdcc-brand,  #1a1a2e);
  --light:  #f8f9ff;
  --card:   #ffffff;
  --text:   #1a1a2e;
  --muted:  #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --rsm:    10px;
  font-family:Roboto, sans-serif;
  color: var(--text);
}

/* HERO */
.wdcc-hero {
  background: linear-gradient(135deg, var(--brand) 0%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.wdcc-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--light);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.wdcc-hero-badge {
  display: inline-block;
  background: rgba(233,69,96,0.2);
  border: 1px solid rgba(233,69,96,0.4);
  color: #ff0069;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.wdcc-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  color: #fff;
}
.wdcc-hero-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* LAYOUT */
.wdcc-layout {
  background: var(--light);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* PROGRESS */
.wdcc-progress {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  flex-wrap: wrap;
  gap: 4px;
}
.wdcc-step-item {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.wdcc-step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  background: var(--border); color: var(--muted);
  transition: all 0.3s; flex-shrink: 0;
}
.wdcc-step-circle.active { background: var(--accent); color: #fff; }
.wdcc-step-circle.done   { background: #10b981; color: #fff; }
.wdcc-step-label {
  margin-left: 8px; font-size: 0.75rem; font-weight: 500;
  color: var(--muted); white-space: nowrap;
}
.wdcc-step-label.active { color: var(--text); font-weight: 600; }
.wdcc-connector {
  flex: 1; min-width: 16px; height: 2px;
  background: var(--border); margin: 0 6px;
  border-radius: 2px; position: relative; overflow: hidden;
}
.wdcc-connector::after {
  content: ''; position: absolute;
  left: 0; top: 0; height: 100%;
  background: var(--accent); width: 0%; transition: width 0.5s;
}
.wdcc-connector.filled::after { width: 100%; }

/* PANELS */
.wdcc-panel { display: none; }
.wdcc-panel.active { display: block; }

.wdcc-section-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.wdcc-section-desc  { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.6; }

/* OPTION CARDS */
.wdcc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px; margin-bottom: 1.5rem;
}
.wdcc-option-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--rsm);
  padding: 1rem 0.8rem;
  cursor: pointer; text-align: center;
  position: relative; transition: all 0.2s;
}
.wdcc-option-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.wdcc-option-card.selected { border-color: var(--accent); background: #fff5f7; }
.wdcc-check {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px;
  background: var(--accent); border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}
.wdcc-option-card.selected .wdcc-check { display: flex; }
.wdcc-check svg { width: 9px; height: 9px; stroke: #fff; fill: none; stroke-width: 3; }
.wdcc-opt-icon  { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.wdcc-opt-name  { font-size: 0.78rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 3px; }
.wdcc-opt-price { font-size: 0.72rem; color: var(--accent); font-weight: 600; }
.wdcc-opt-desc  { font-size: 0.67rem; color: var(--muted); margin-top: 3px; }

/* TOGGLE ITEMS */
.wdcc-toggle-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.2rem; }
.wdcc-toggle-item {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--rsm); padding: 0.85rem 1rem;
  cursor: pointer; display: flex; align-items: center;
  gap: 0.8rem; transition: all 0.2s;
}
.wdcc-toggle-item:hover  { border-color: var(--accent); }
.wdcc-toggle-item.selected { border-color: var(--accent); background: #fff5f7; }
.wdcc-toggle-check {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-radius: 5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.wdcc-toggle-item.selected .wdcc-toggle-check { background: var(--accent); border-color: var(--accent); }
.wdcc-toggle-check svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 3; display: none; }
.wdcc-toggle-item.selected .wdcc-toggle-check svg { display: block; }
.wdcc-toggle-info { flex: 1; }
.wdcc-toggle-name { font-size: 0.84rem; font-weight: 600; }
.wdcc-toggle-desc { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.wdcc-toggle-price { font-size: 0.82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* SLIDERS */
.wdcc-slider-group { margin-bottom: 1.3rem; }
.wdcc-slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.wdcc-slider-label { font-size: 0.85rem; font-weight: 500; }
.wdcc-slider-val   { font-size: 0.9rem; font-weight: 700; color: var(--accent); }
#wdcc-wrapper input[type=range] {
  -webkit-appearance: none; width: 100%; height: 5px;
  border-radius: 5px; background: var(--border); outline: none; cursor: pointer;
}
#wdcc-wrapper input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px;
  background: var(--accent); border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); cursor: pointer;
}

/* NAV */
.wdcc-nav { display: flex; gap: 10px; margin-top: 1.5rem; }
.wdcc-btn-prev {
  padding: 0.75rem 1.5rem; border: 2px solid var(--border);
  background: transparent; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  color: var(--muted); transition: all 0.2s;
}
.wdcc-btn-prev:hover { border-color: var(--text); color: var(--text); }
.wdcc-btn-next, .wdcc-btn-print {
  padding: 0.75rem 1.5rem; background: var(--accent); color: #fff;
  border: none; border-radius: 100px; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; flex: 1; transition: all 0.2s;
}
.wdcc-btn-next:hover, .wdcc-btn-print:hover { opacity: 0.88; transform: translateY(-1px); }

/* SIDEBAR */
.wdcc-cost-card, .wdcc-timeline-card, .wdcc-lead-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.wdcc-cost-card-title {
  font-size: 0.88rem; font-weight: 700; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 8px;
}
.wdcc-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.wdcc-cost-line {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 0.78rem; padding: 5px 0; border-bottom: 1px solid var(--border); gap: 8px;
}
.wdcc-cost-line:last-child { border-bottom: none; }
.wdcc-cost-line-name { color: var(--muted); flex: 1; }
.wdcc-cost-line-val  { font-weight: 600; white-space: nowrap; }
.wdcc-cost-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 0.8rem; margin-top: 0.5rem; border-top: 2px solid var(--border); }
.wdcc-total-label   { font-size: 0.88rem; font-weight: 700; }
.wdcc-range-label   { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
.wdcc-total-val     { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.wdcc-total-val.blurred { filter: blur(6px); user-select: none; }

.wdcc-tl-title  { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.wdcc-tl-weeks  { font-size: 1.5rem; font-weight: 800; }
.wdcc-tl-weeks span { font-size: 0.85rem; font-weight: 400; color: var(--muted); margin-left: 5px; }

.wdcc-lead-form { background: var(--brand) !important; border: none !important; }
.wdcc-lead-form h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.wdcc-lead-form p  { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-bottom: 0.8rem; line-height: 1.5; }
.wdcc-lead-input {
  width: 100%; padding: 0.65rem 0.9rem!important;
  background: rgb(255 255 255 / 50%)!important; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; color: #333!important; font-size: 0.82rem; margin-bottom: 7px!important;
  outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.wdcc-lead-input::placeholder { color: rgba(255,255,255,0.35); }
.wdcc-lead-input:focus { border-color: rgba(255,255,255,0.4); }
.wdcc-btn-submit {
  width: 100%; padding: 0.8rem; background: var(--accent); color: #fff;
  border: none; border-radius: 100px; font-size: 0.88rem; font-weight: 700;
  cursor: pointer; margin-top: 4px; transition: all 0.2s;
}
.wdcc-btn-submit:hover { opacity: 0.88; }
.wdcc-lead-msg { font-size: 0.75rem; text-align: center; margin-top: 8px; color: rgba(255,255,255,0.7); }
.wdcc-lead-msg.success { color: #86efac; }
.wdcc-lead-msg.error   { color: #fca5a5; }

.wdcc-empty { text-align: center; color: var(--muted); font-size: 0.78rem; padding: 0.8rem 0; font-style: italic; }

/* SUMMARY */
.wdcc-summary-card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.wdcc-summary-hero { text-align: center; padding: 1.5rem 0 1.2rem; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; }
.wdcc-sum-eyebrow  { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.wdcc-sum-total    { font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.wdcc-sum-range    { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.wdcc-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.2rem; }
.wdcc-sum-item     { background: var(--light); border-radius: var(--rsm); padding: 0.85rem; border: 1px solid var(--border); }
.wdcc-sum-item-label { font-size: 0.68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px; }
.wdcc-sum-item-val   { font-size: 0.88rem; font-weight: 600; }
.wdcc-sum-breakdown-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.6rem; }
.wdcc-alert-info { background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--rsm); padding: 0.85rem 1rem; font-size: 0.8rem; color: #15803d; margin-top: 1.2rem; }

/* RESPONSIVE */
@media (max-width: 860px) {
  .wdcc-layout { grid-template-columns: 1fr; }
  .wdcc-options-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 520px) {
  .wdcc-step-label { display: none; }
  .wdcc-hero { padding: 2rem 1rem 3.5rem; }
}

@media print {
  .wdcc-hero, .wdcc-progress, .wdcc-nav, .wdcc-lead-form, .wdcc-timeline-card { display: none !important; }
  .wdcc-layout { grid-template-columns: 1fr; }
  .wdcc-panel { display: block !important; }
  #wdcc-step1,#wdcc-step2,#wdcc-step3,#wdcc-step4 { display: none !important; }
}
