/* ============================================
   RoboThings PCB Design Service - Frontend CSS
   Premium SaaS Design System
   ============================================ */

/* All variables scoped to #rtpcb-app so site theme cannot override them */
#rtpcb-app {
  --rtpcbds-orange: #f97316;
  --rtpcbds-orange-dark: #ea6c0a;
  --rtpcbds-orange-light: #fff7ed;
  --rtpcbds-green: #25d366;
  --rtpcbds-green-dark: #1da851;
  --rtpcbds-amber: #f59e0b;
  --rtpcbds-red: #ef4444;
  --rtpcbds-gray-50: #f9fafb;
  --rtpcbds-gray-100: #f3f4f6;
  --rtpcbds-gray-200: #e5e7eb;
  --rtpcbds-gray-400: #9ca3af;
  --rtpcbds-gray-600: #6b7280;
  --rtpcbds-gray-700: #374151;
  --rtpcbds-gray-800: #1f2937;
  --rtpcbds-gray-900: #111827;
  --rtpcbds-white: #ffffff;
  --rtpcbds-radius: 12px;
  --rtpcbds-radius-sm: 8px;
  --rtpcbds-radius-lg: 16px;
  --rtpcbds-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --rtpcbds-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --rtpcbds-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  --rtpcbds-transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  #rtpcb-app {
    --rtpcbds-gray-50: #111827;
    --rtpcbds-gray-100: #1f2937;
    --rtpcbds-gray-200: #374151;
    --rtpcbds-gray-400: #6b7280;
    --rtpcbds-gray-600: #d1d5db;
    --rtpcbds-gray-800: #f9fafb;
    --rtpcbds-gray-900: #ffffff;
    --rtpcbds-white: #1f2937;
    --rtpcbds-orange-light: #431407;
  }
}

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

.rtpcb-app {
  font-family: var(--rtpcbds-font);
  color: var(--rtpcbds-gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.rtpcb-hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f0f9ff 100%);
  padding: 72px 24px 80px;
  overflow: hidden;
  position: relative;
}
.rtpcb-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 0%, rgba(249,115,22,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.rtpcb-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* PCB Animation */
.rtpcb-pcb-animation {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rtpcb-pcb-board {
  width: 280px;
  height: 300px;
  background: linear-gradient(145deg, #1a3a1a, #0d2b0d);
  border-radius: var(--rtpcbds-radius-lg);
  position: relative;
  box-shadow: 0 20px 60px rgba(0,50,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  animation: rtpcb-float 4s ease-in-out infinite;
}
@keyframes rtpcb-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}
.rtpcb-pcb-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(0,200,0,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,0,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.rtpcb-chip {
  position: absolute;
  background: linear-gradient(135deg, #222, #333);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}
.rtpcb-chip-esp32 {
  width: 90px; height: 60px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  animation: rtpcb-pulse 2s ease-in-out infinite;
}
.rtpcb-chip-esp32 span {
  color: #4ade80; font-size: 11px; font-weight: 700; font-family: monospace;
}
@keyframes rtpcb-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(74,222,128,0.3); }
  50% { box-shadow: 0 0 20px rgba(74,222,128,0.6); }
}
.rtpcb-chip-small {
  width: 30px; height: 24px;
  background: linear-gradient(135deg, #1a1a2e, #2a2a4e);
}
.chip-1 { top: 20%; left: 15%; }
.chip-2 { bottom: 25%; right: 15%; }
.chip-3 { top: 20%; right: 20%; }
.rtpcb-trace {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, #4ade80 0%, transparent 100%);
  border-radius: 1px;
}
.trace-1 { width: 60px; top: 35%; left: 20%; animation: rtpcb-trace-anim 2s linear infinite; }
.trace-2 { width: 45px; bottom: 35%; right: 20%; transform: rotate(90deg); animation: rtpcb-trace-anim 2.5s linear infinite; }
.trace-3 { width: 80px; top: 65%; left: 10%; animation: rtpcb-trace-anim 3s linear infinite; }
@keyframes rtpcb-trace-anim {
  0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; }
}
.rtpcb-via {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fbbf24, #d97706);
  box-shadow: 0 0 6px rgba(251,191,36,0.5);
}
.via-1 { top: 30%; left: 35%; }
.via-2 { top: 60%; left: 65%; }
.via-3 { bottom: 20%; left: 40%; }
.via-4 { top: 25%; right: 30%; }
.rtpcb-connector {
  position: absolute;
  background: #555;
  border-radius: 2px;
}
.conn-1 { width: 40px; height: 10px; bottom: 15%; left: 20%; }
.conn-2 { width: 10px; height: 40px; top: 15%; right: 10%; }
.rtpcb-led {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: rtpcb-blink 1.5s ease-in-out infinite;
}
.led-1 { background: #4ade80; top: 15%; left: 50%; animation-delay: 0s; }
.led-2 { background: #f87171; top: 15%; left: 58%; animation-delay: 0.5s; }
.led-3 { background: #60a5fa; top: 15%; left: 66%; animation-delay: 1s; }
@keyframes rtpcb-blink {
  0%, 100% { opacity: 0.3; box-shadow: none; }
  50% { opacity: 1; box-shadow: 0 0 8px currentColor; }
}

/* Floating Cards */
.rtpcb-float-card {
  position: absolute;
  background: var(--rtpcbds-white);
  border-radius: var(--rtpcbds-radius);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--rtpcbds-shadow);
  border: 1px solid var(--rtpcbds-gray-200);
  white-space: nowrap;
}
.rtpcb-float-card .fc-icon { font-size: 16px; }
.fc-1 { top: 10%; right: 0; animation: rtpcb-float2 3s ease-in-out infinite; }
.fc-2 { bottom: 15%; right: -20px; animation: rtpcb-float2 3.5s ease-in-out infinite 0.5s; }
.fc-3 { bottom: 35%; left: -10px; animation: rtpcb-float2 4s ease-in-out infinite 1s; }
@keyframes rtpcb-float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero Content */
.rtpcb-hero-right { padding: 0 0 0 16px; }
.rtpcb-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rtpcbds-orange-light);
  color: var(--rtpcbds-orange);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 20px;
}
.rtpcb-hero-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  color: var(--rtpcbds-gray-900);
}
.rtpcb-hero-gradient {
  background: linear-gradient(135deg, var(--rtpcbds-orange), #c2410c);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rtpcb-hero-sub {
  font-size: 17px; color: var(--rtpcbds-gray-600); line-height: 1.6;
  margin: 0 0 24px; max-width: 460px;
}
.rtpcb-trust-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.rtpcb-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--rtpcbds-gray-50);
  border: 1px solid var(--rtpcbds-gray-200);
  border-radius: 20px; padding: 5px 14px;
  font-size: 13px; font-weight: 500;
}
.rtpcb-badge span { color: var(--rtpcbds-orange); font-weight: 700; }
.rtpcb-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; align-items: center; }

/* CTA Buttons */
.rtpcb-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rtpcbds-orange);
  color: white; font-size: 16px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--rtpcbds-radius);
  border: none; cursor: pointer; text-decoration: none;
  transition: all var(--rtpcbds-transition);
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}
.rtpcb-cta-primary:hover {
  background: var(--rtpcbds-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249,115,22,0.4);
}
.rtpcb-cta-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rtpcbds-green);
  color: white; font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: var(--rtpcbds-radius);
  border: none; cursor: pointer; text-decoration: none;
  transition: all var(--rtpcbds-transition);
}
.rtpcb-cta-whatsapp:hover { background: var(--rtpcbds-green-dark); transform: translateY(-1px); color: white; }
.rtpcb-hero-stats { display: flex; align-items: center; gap: 20px; }
.rtpcb-hero-stat { text-align: center; }
.rtpcb-hero-stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--rtpcbds-gray-900); }
.rtpcb-hero-stat span { font-size: 12px; color: var(--rtpcbds-gray-600); }
.rtpcb-hero-stat-divider { width: 1px; height: 36px; background: var(--rtpcbds-gray-200); }

/* ===== CAPS STRIP ===== */
.rtpcb-caps-strip {
  background: var(--rtpcbds-orange);
  padding: 14px 24px;
  overflow: hidden;
}
.rtpcb-caps-inner {
  display: flex; gap: 40px; align-items: center;
  animation: rtpcb-scroll-text 20s linear infinite;
  white-space: nowrap;
}
.rtpcb-cap-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 14px; font-weight: 500;
}
.rtpcb-cap-item span { color: rgba(255,255,255,0.5); font-size: 8px; }
@keyframes rtpcb-scroll-text {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== WIZARD SECTION ===== */
.rtpcb-wizard-section {
  padding: 80px 24px;
  background: var(--rtpcbds-gray-50);
}
.rtpcb-wizard-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--rtpcbds-white);
  border-radius: var(--rtpcbds-radius-lg);
  box-shadow: var(--rtpcbds-shadow-lg);
  overflow: hidden;
}
.rtpcb-wizard-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--rtpcbds-gray-200);
  background: linear-gradient(135deg, #f8faff, #fff);
}
.rtpcb-wizard-title-wrap h2 {
  font-size: 22px; font-weight: 700; margin: 0 0 4px;
}
.rtpcb-wizard-title-wrap p {
  font-size: 14px; color: var(--rtpcbds-gray-600); margin: 0 0 20px;
}

/* Progress Bar */
.rtpcb-progress-wrap { }
.rtpcb-progress-steps {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.rtpcb-progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex: 1;
}
.rtpcb-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--rtpcbds-gray-200);
  color: var(--rtpcbds-gray-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transition: all var(--rtpcbds-transition);
  position: relative; z-index: 1;
}
.rtpcb-progress-step.active .rtpcb-step-dot,
.rtpcb-progress-step.done .rtpcb-step-dot {
  background: var(--rtpcbds-orange); color: white;
}
.rtpcb-progress-step.done .rtpcb-step-dot::after { content: '✓'; }
.rtpcb-step-label {
  font-size: 11px; font-weight: 500; color: var(--rtpcbds-gray-600);
  transition: color var(--rtpcbds-transition);
}
.rtpcb-progress-step.active .rtpcb-step-label { color: var(--rtpcbds-orange); }
.rtpcb-progress-bar {
  height: 4px; background: var(--rtpcbds-gray-200); border-radius: 2px; overflow: hidden;
}
.rtpcb-progress-fill {
  height: 100%; background: var(--rtpcbds-orange); border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Wizard Steps */
.rtpcb-wizard-body { padding: 32px; min-height: 420px; }
.rtpcb-step { display: none; animation: rtpcb-fade-in 0.3s ease; }
.rtpcb-step.active { display: block; }
@keyframes rtpcb-fade-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.rtpcb-step-title {
  font-size: 22px; font-weight: 700; margin: 0 0 6px; color: var(--rtpcbds-gray-900);
}
.rtpcb-step-sub { font-size: 15px; color: var(--rtpcbds-gray-600); margin: 0 0 24px; }

/* Service Cards */
.rtpcb-service-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.rtpcb-service-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px 16px; border-radius: var(--rtpcbds-radius);
  border: 2px solid var(--rtpcbds-gray-200);
  background: var(--rtpcbds-white);
  cursor: pointer; text-align: left;
  transition: all var(--rtpcbds-transition);
  position: relative;
}
.rtpcb-service-card:hover {
  border-color: var(--rtpcbds-orange);
  box-shadow: 0 4px 16px rgba(249,115,22,0.15);
  transform: translateY(-2px);
}
.rtpcb-service-card.selected {
  border-color: var(--rtpcbds-orange);
  background: var(--rtpcbds-orange-light);
}
.rtpcb-service-icon { font-size: 28px; margin-bottom: 4px; }
.rtpcb-service-card strong { font-size: 14px; font-weight: 700; color: var(--rtpcbds-gray-900); }
.rtpcb-service-desc { font-size: 12px; color: var(--rtpcbds-gray-600); line-height: 1.4; }
.rtpcb-service-check {
  position: absolute; top: 10px; right: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--rtpcbds-orange); color: white;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--rtpcbds-transition);
}
.rtpcb-service-card.selected .rtpcb-service-check { opacity: 1; }

/* Price Estimator */
.rtpcb-price-estimator {
  margin-top: 20px;
  background: linear-gradient(135deg, #fff8e1, #fffde7);
  border: 1px solid #f59e0b;
  border-radius: var(--rtpcbds-radius);
  padding: 16px 20px;
  text-align: center;
  animation: rtpcb-fade-in 0.3s ease;
}
.rtpcb-estimator-label { font-size: 13px; color: #92400e; font-weight: 600; }
.rtpcb-estimator-price { font-size: 28px; font-weight: 800; color: #d97706; margin: 4px 0; }
.rtpcb-estimator-note { font-size: 12px; color: #a16207; }

/* Step 2 - Textarea */
.rtpcb-description-box { position: relative; }
.rtpcb-textarea {
  width: 100%; padding: 16px;
  border: 2px solid var(--rtpcbds-gray-200);
  border-radius: var(--rtpcbds-radius);
  font-size: 15px; font-family: var(--rtpcbds-font);
  resize: vertical; line-height: 1.6;
  transition: border-color var(--rtpcbds-transition);
  background: var(--rtpcbds-white); color: var(--rtpcbds-gray-900);
}
.rtpcb-textarea:focus { outline: none; border-color: var(--rtpcbds-orange); }
.rtpcb-textarea-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; flex-wrap: wrap; gap: 8px;
}
.rtpcb-char-count { font-size: 12px; color: var(--rtpcbds-gray-400); }
.rtpcb-ai-hint {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--rtpcbds-gray-600);
  background: var(--rtpcbds-gray-50); border-radius: 20px; padding: 4px 12px;
}
.rtpcb-step2-examples { margin-top: 20px; }
.rtpcb-example-title { font-size: 13px; color: var(--rtpcbds-gray-600); margin-bottom: 10px; }
.rtpcb-example-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rtpcb-example-chip {
  background: var(--rtpcbds-gray-50); border: 1px solid var(--rtpcbds-gray-200);
  border-radius: 20px; padding: 6px 14px;
  font-size: 13px; color: var(--rtpcbds-gray-600); cursor: pointer;
  transition: all var(--rtpcbds-transition);
}
.rtpcb-example-chip:hover { background: var(--rtpcbds-orange-light); color: var(--rtpcbds-orange); border-color: var(--rtpcbds-orange); }

/* Step 3 - Upload */
.rtpcb-upload-zone {
  border: 2px dashed var(--rtpcbds-gray-200);
  border-radius: var(--rtpcbds-radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--rtpcbds-transition);
  background: var(--rtpcbds-gray-50);
}
.rtpcb-upload-zone.drag-over { border-color: var(--rtpcbds-orange); background: var(--rtpcbds-orange-light); }
.rtpcb-upload-icon { font-size: 40px; margin-bottom: 12px; }
.rtpcb-upload-title { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.rtpcb-upload-sub { font-size: 14px; color: var(--rtpcbds-gray-600); margin: 0 0 12px; }
.rtpcb-upload-types {
  background: var(--rtpcbds-gray-100); border-radius: 20px;
  padding: 4px 16px; font-size: 12px; color: var(--rtpcbds-gray-600);
  display: inline-block; margin-bottom: 16px;
}
.rtpcb-upload-btn {
  background: var(--rtpcbds-orange); color: white;
  padding: 10px 24px; border-radius: var(--rtpcbds-radius-sm);
  border: none; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: all var(--rtpcbds-transition);
}
.rtpcb-upload-btn:hover { background: var(--rtpcbds-orange-dark); }
.rtpcb-file-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rtpcb-file-preview {
  display: flex; align-items: center; gap: 10px;
  background: var(--rtpcbds-gray-50); border: 1px solid var(--rtpcbds-gray-200);
  border-radius: var(--rtpcbds-radius-sm); padding: 10px 14px;
  font-size: 13px; max-width: 240px;
  animation: rtpcb-fade-in 0.3s ease;
}
.rtpcb-file-preview-icon { font-size: 18px; flex-shrink: 0; }
.rtpcb-file-preview-info { min-width: 0; }
.rtpcb-file-preview-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.rtpcb-file-preview-size { font-size: 11px; color: var(--rtpcbds-gray-400); }
.rtpcb-file-preview-remove {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--rtpcbds-gray-200); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--rtpcbds-gray-600); flex-shrink: 0;
  transition: all var(--rtpcbds-transition); margin-left: auto;
}
.rtpcb-file-preview-remove:hover { background: var(--rtpcbds-red); color: white; }
.rtpcb-file-preview.uploading { opacity: 0.6; }
.rtpcb-upload-note { font-size: 12px; color: var(--rtpcbds-gray-400); margin-top: 12px; text-align: center; }

/* Step 4 - Specs */
.rtpcb-specs-section { display: flex; flex-direction: column; gap: 24px; }
.rtpcb-spec-group { }
.rtpcb-spec-label { font-size: 14px; font-weight: 600; color: var(--rtpcbds-gray-800); margin-bottom: 10px; }
.rtpcb-spec-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.rtpcb-spec-card {
  padding: 10px 18px; border-radius: var(--rtpcbds-radius-sm);
  border: 2px solid var(--rtpcbds-gray-200);
  background: var(--rtpcbds-white); cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--rtpcbds-gray-800);
  transition: all var(--rtpcbds-transition);
}
.rtpcb-spec-card:hover { border-color: var(--rtpcbds-orange); color: var(--rtpcbds-orange); }
.rtpcb-spec-card.selected {
  border-color: var(--rtpcbds-orange); background: var(--rtpcbds-orange); color: white;
}
.rtpcb-timeline-cards { gap: 12px; }
.rtpcb-timeline-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 14px 18px; flex: 1; min-width: 120px;
}
.rtpcb-timeline-icon { font-size: 20px; }
.rtpcb-timeline-card strong { font-size: 15px; font-weight: 700; }
.rtpcb-timeline-card span { font-size: 12px; color: var(--rtpcbds-gray-600); }
.rtpcb-timeline-card.selected span { color: rgba(255,255,255,0.75); }
.rtpcb-timeline-price { font-size: 11px; background: rgba(0,0,0,0.07); border-radius: 10px; padding: 2px 8px; }
.rtpcb-timeline-card.selected .rtpcb-timeline-price { background: rgba(255,255,255,0.2); }

/* Step 5 - Contact */
.rtpcb-contact-form { display: flex; flex-direction: column; gap: 16px; }
.rtpcb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rtpcb-form-field { display: flex; flex-direction: column; gap: 6px; }
.rtpcb-form-field label { font-size: 13px; font-weight: 600; color: var(--rtpcbds-gray-800); }
.rtpcb-req { color: var(--rtpcbds-red); }
.rtpcb-optional-label { font-size: 11px; color: var(--rtpcbds-gray-400); font-weight: 400; }
.rtpcb-form-field input {
  padding: 12px 14px;
  border: 2px solid var(--rtpcbds-gray-200); border-radius: var(--rtpcbds-radius-sm);
  font-size: 15px; font-family: var(--rtpcbds-font);
  transition: border-color var(--rtpcbds-transition);
  background: var(--rtpcbds-white); color: var(--rtpcbds-gray-900);
}
.rtpcb-form-field input:focus { outline: none; border-color: var(--rtpcbds-orange); }
.rtpcb-form-field input.error { border-color: var(--rtpcbds-red); }
.rtpcb-whatsapp-check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; color: var(--rtpcbds-gray-700);
  background: var(--rtpcbds-gray-50); padding: 12px 16px; border-radius: var(--rtpcbds-radius-sm);
}
.rtpcb-whatsapp-check input { display: none; }
.rtpcb-check-custom {
  width: 20px; height: 20px; border-radius: 4px;
  border: 2px solid #d1d5db; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--rtpcbds-transition);
}
.rtpcb-whatsapp-check input:checked + .rtpcb-check-custom {
  background: var(--rtpcbds-green); border-color: var(--rtpcbds-green);
}
.rtpcb-whatsapp-check input:checked + .rtpcb-check-custom::after { content: '✓'; color: white; font-size: 12px; }
.rtpcb-form-error {
  background: #fef2f2; border: 1px solid #fca5a5;
  border-radius: var(--rtpcbds-radius-sm); padding: 12px;
  color: var(--rtpcbds-red); font-size: 14px;
}
.rtpcb-submit-btn {
  background: linear-gradient(135deg, var(--rtpcbds-orange), var(--rtpcbds-orange-dark));
  color: white; font-size: 16px; font-weight: 700;
  padding: 16px 32px; border-radius: var(--rtpcbds-radius);
  border: none; cursor: pointer; width: 100%;
  transition: all var(--rtpcbds-transition);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}
.rtpcb-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(249,115,22,0.4); }
.rtpcb-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.rtpcb-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  animation: rtpcb-spin 0.7s linear infinite;
}
@keyframes rtpcb-spin { to { transform: rotate(360deg); } }
.rtpcb-form-note { font-size: 12px; color: var(--rtpcbds-gray-400); text-align: center; }

/* Success State */
.rtpcb-success-wrap { text-align: center; padding: 24px 0; }
.rtpcb-success-icon { font-size: 64px; margin-bottom: 16px; }
.rtpcb-success-wrap h3 { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.rtpcb-success-wrap p { font-size: 16px; color: var(--rtpcbds-gray-600); margin: 0 0 24px; }
.rtpcb-token-display {
  display: inline-block;
  background: var(--rtpcbds-orange-light); border-radius: var(--rtpcbds-radius);
  padding: 20px 32px; margin-bottom: 20px;
}
.rtpcb-token-label { font-size: 12px; color: var(--rtpcbds-gray-600); margin-bottom: 6px; }
.rtpcb-token-value { font-size: 32px; font-weight: 800; color: var(--rtpcbds-orange); letter-spacing: 3px; margin-bottom: 10px; }
.rtpcb-copy-btn {
  background: var(--rtpcbds-orange); color: white; border: none;
  padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.rtpcb-price-result {
  background: #fff8e1; border-radius: var(--rtpcbds-radius-sm); padding: 16px;
  margin: 16px auto; max-width: 320px;
}
.rtpcb-price-result div { font-size: 12px; color: #a16207; }
.rtpcb-price-result strong { font-size: 24px; font-weight: 800; color: #d97706; display: block; margin: 4px 0; }
.rtpcb-price-result span { font-size: 12px; color: #92400e; }

/* Wizard Nav */
.rtpcb-wizard-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--rtpcbds-gray-200);
}
.rtpcb-nav-back {
  background: none; border: 2px solid var(--rtpcbds-gray-200);
  color: var(--rtpcbds-gray-600); padding: 11px 22px; border-radius: var(--rtpcbds-radius-sm);
  cursor: pointer; font-size: 15px; font-weight: 600;
  transition: all var(--rtpcbds-transition);
}
.rtpcb-nav-back:hover { border-color: var(--rtpcbds-gray-400); color: var(--rtpcbds-gray-800); }
.rtpcb-nav-next {
  background: var(--rtpcbds-orange); color: white;
  padding: 12px 28px; border-radius: var(--rtpcbds-radius-sm);
  border: none; cursor: pointer; font-size: 15px; font-weight: 700;
  transition: all var(--rtpcbds-transition); margin-left: auto;
}
.rtpcb-nav-next:hover { background: var(--rtpcbds-orange-dark); }
.rtpcb-optional-tag {
  background: var(--rtpcbds-gray-100); color: var(--rtpcbds-gray-400);
  font-size: 12px; padding: 2px 10px; border-radius: 20px; font-weight: 400;
  vertical-align: middle; margin-left: 8px;
}

/* ===== SECTIONS ===== */
.rtpcb-section { padding: 80px 24px; }
.rtpcb-section-inner { max-width: 1100px; margin: 0 auto; }
.rtpcb-section-eyebrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--rtpcbds-orange); margin-bottom: 10px;
}
.rtpcb-section-title {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; margin: 0 0 40px;
  letter-spacing: -0.3px; color: var(--rtpcbds-gray-900);
}

/* Testimonials */
.rtpcb-testimonials { background: var(--rtpcbds-white); }
.rtpcb-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rtpcb-testimonial-card {
  background: var(--rtpcbds-gray-50); border-radius: var(--rtpcbds-radius);
  padding: 24px; border: 1px solid var(--rtpcbds-gray-200);
}
.rtpcb-testimonial-stars { font-size: 14px; margin-bottom: 12px; }
.rtpcb-testimonial-text { font-size: 15px; line-height: 1.6; color: var(--rtpcbds-gray-800); margin: 0 0 16px; }
.rtpcb-testimonial-author { display: flex; align-items: center; gap: 12px; }
.rtpcb-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--rtpcbds-orange); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.rtpcb-testimonial-author strong { font-size: 14px; font-weight: 700; display: block; }
.rtpcb-testimonial-author span { font-size: 12px; color: var(--rtpcbds-gray-600); }

/* Capabilities */
.rtpcb-capabilities { background: var(--rtpcbds-gray-50); }
.rtpcb-capabilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rtpcb-capability-card {
  background: var(--rtpcbds-white); border-radius: var(--rtpcbds-radius);
  padding: 24px; border: 1px solid var(--rtpcbds-gray-200);
  transition: all var(--rtpcbds-transition);
}
.rtpcb-capability-card:hover { box-shadow: var(--rtpcbds-shadow); transform: translateY(-2px); }
.rtpcb-capability-icon { font-size: 32px; margin-bottom: 12px; }
.rtpcb-capability-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.rtpcb-capability-card p { font-size: 14px; color: var(--rtpcbds-gray-600); line-height: 1.6; margin: 0; }

/* Gallery */
.rtpcb-gallery { background: var(--rtpcbds-white); }
.rtpcb-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rtpcb-gallery-card {
  border-radius: var(--rtpcbds-radius);
  padding: 28px 20px; text-align: center;
  transition: all var(--rtpcbds-transition);
}
.rtpcb-gallery-card:hover { transform: translateY(-3px); box-shadow: var(--rtpcbds-shadow); }
.rtpcb-gallery-pcb-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.rtpcb-gallery-card h4 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.rtpcb-gallery-card span { font-size: 12px; }

/* FAQ */
.rtpcb-faq { background: var(--rtpcbds-gray-50); }
.rtpcb-faq-inner { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.rtpcb-faq-list { display: flex; flex-direction: column; gap: 2px; }
.rtpcb-faq-item {
  background: var(--rtpcbds-white); border-radius: var(--rtpcbds-radius-sm);
  overflow: hidden; border: 1px solid var(--rtpcbds-gray-200);
}
.rtpcb-faq-question {
  width: 100%; padding: 18px 20px; text-align: left;
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--rtpcbds-gray-900);
  display: flex; justify-content: space-between; align-items: center;
  transition: all var(--rtpcbds-transition);
}
.rtpcb-faq-question:hover { color: var(--rtpcbds-orange); }
.rtpcb-faq-arrow { transition: transform var(--rtpcbds-transition); font-size: 18px; }
.rtpcb-faq-item.open .rtpcb-faq-arrow { transform: rotate(180deg); }
.rtpcb-faq-answer {
  padding: 0 20px;
  font-size: 14px; color: var(--rtpcbds-gray-600); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.rtpcb-faq-item.open .rtpcb-faq-answer { max-height: 200px; padding: 0 20px 18px; }

/* Bottom CTA */
.rtpcb-cta-section {
  background: linear-gradient(135deg, var(--rtpcbds-orange), var(--rtpcbds-orange-dark));
  padding: 80px 24px; text-align: center;
}
.rtpcb-cta-inner { max-width: 600px; margin: 0 auto; }
.rtpcb-cta-inner h2 { font-size: 32px; font-weight: 800; color: white; margin: 0 0 12px; }
.rtpcb-cta-inner p { font-size: 17px; color: rgba(255,255,255,0.8); margin: 0 0 28px; }
.rtpcb-cta-inner .rtpcb-cta-primary { background: white; color: var(--rtpcbds-orange); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.rtpcb-cta-inner .rtpcb-cta-primary:hover { background: var(--rtpcbds-gray-50); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* ===== STICKY CTA ===== */
.rtpcb-sticky-cta {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 900; display: none;
  animation: rtpcb-slide-up 0.4s ease;
}
.rtpcb-sticky-cta.visible { display: block; }
@keyframes rtpcb-slide-up {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.rtpcb-sticky-btn {
  background: var(--rtpcbds-orange); color: white;
  padding: 14px 28px; border-radius: 30px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
  transition: all var(--rtpcbds-transition);
  white-space: nowrap;
}
.rtpcb-sticky-btn:hover { background: var(--rtpcbds-orange-dark); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(249,115,22,0.5); }

/* ===== WHATSAPP FAB ===== */
/* WhatsApp FAB removed */

/* Track Widget */
.rtpcb-track-widget {
  position: fixed; bottom: 24px; left: 24px;
  z-index: 900;
}
.rtpcb-track-toggle {
  background: var(--rtpcbds-white); border: 1px solid var(--rtpcbds-gray-200);
  padding: 10px 16px; border-radius: 30px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--rtpcbds-gray-800);
  box-shadow: var(--rtpcbds-shadow);
  transition: all var(--rtpcbds-transition);
}
.rtpcb-track-toggle:hover { border-color: var(--rtpcbds-orange); color: var(--rtpcbds-orange); }
.rtpcb-track-form {
  position: absolute; bottom: 48px; left: 0;
  background: var(--rtpcbds-white); border: 1px solid var(--rtpcbds-gray-200);
  border-radius: var(--rtpcbds-radius); padding: 16px;
  box-shadow: var(--rtpcbds-shadow-lg); width: 280px;
  display: none;
}
.rtpcb-track-form.open { display: block; animation: rtpcb-fade-in 0.2s ease; }
.rtpcb-track-form input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rtpcbds-gray-200);
  border-radius: var(--rtpcbds-radius-sm); font-size: 14px; margin-bottom: 8px;
  background: var(--rtpcbds-white); color: var(--rtpcbds-gray-900);
}
.rtpcb-track-form button {
  width: 100%; background: var(--rtpcbds-orange); color: white;
  padding: 10px; border: none; border-radius: var(--rtpcbds-radius-sm); cursor: pointer; font-weight: 600;
}
#rtpcb-track-result { margin-top: 12px; font-size: 13px; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hero */
  .rtpcb-hero-inner { grid-template-columns: 1fr; }
  .rtpcb-hero-left { display: none; }
  .rtpcb-hero { padding: 40px 16px 52px; }
  .rtpcb-hero-right { padding: 0; }
  .rtpcb-hero h1 { font-size: clamp(26px, 7vw, 40px); }

  /* Wizard container */
  .rtpcb-wizard-container { margin: 0; border-radius: 12px; }
  .rtpcb-wizard-body { padding: 16px; min-height: auto; }
  .rtpcb-wizard-header { padding: 16px; }

  /* Progress bar: hide labels, shrink dots on mobile to prevent overlap */
  .rtpcb-progress-steps { gap: 0; }
  .rtpcb-progress-step { flex: 1; min-width: 0; }
  .rtpcb-step-dot { width: 26px; height: 26px; font-size: 11px; }
  .rtpcb-step-label { display: none; }

  /* Layout */
  .rtpcb-form-row { grid-template-columns: 1fr; }
  .rtpcb-testimonials-grid { grid-template-columns: 1fr; }
  .rtpcb-capabilities-grid { grid-template-columns: 1fr 1fr; }
  .rtpcb-gallery-grid { grid-template-columns: 1fr 1fr; }
  .rtpcb-faq-inner { grid-template-columns: 1fr; }
  .rtpcb-service-cards { grid-template-columns: 1fr 1fr; }
  .rtpcb-timeline-cards { flex-direction: column; }
  .rtpcb-track-widget { display: none; }

  /* Spec cards wrap properly on mobile */
  .rtpcb-spec-cards { display: flex; flex-wrap: wrap; gap: 6px; }
  .rtpcb-spec-card { font-size: 12px; padding: 6px 10px; }

  /* Service cards on mobile */
  .rtpcb-service-card { padding: 12px; }
  .rtpcb-service-card strong { font-size: 13px; }

  /* Section padding */
  .rtpcb-section { padding: 48px 0; }
  .rtpcb-section-inner { padding: 0 16px; }

  /* Success screen */
  .rtpcb-success-wrap { padding: 16px 0; }
  .rtpcb-next-steps { padding: 12px; }
  .rtpcb-next-step-row { padding: 10px 0; gap: 12px; }
  .rtpcb-next-step-icon { font-size: 22px; min-width: 32px; }
  .rtpcb-token-value { font-size: 20px; letter-spacing: 2px; }

  /* Sticky CTA */
  .rtpcb-sticky-cta { padding: 10px 16px; }
}

@media (max-width: 480px) {
  .rtpcb-service-cards { grid-template-columns: 1fr; }
  .rtpcb-capabilities-grid { grid-template-columns: 1fr; }
  .rtpcb-gallery-grid { grid-template-columns: 1fr; }
  .rtpcb-hero-ctas { flex-direction: column; align-items: stretch; }
  .rtpcb-hero-stats { gap: 12px; }
  .rtpcb-wizard-body { padding: 12px; }
  .rtpcb-wizard-header { padding: 12px; }
  .rtpcb-spec-card { font-size: 11px; padding: 5px 9px; }
  .rtpcb-next-step-row { gap: 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Success screen: What happens next ────────────────────────────────────── */
.rtpcb-token-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0 0;
}
.rtpcb-price-label {
  font-size: 13px;
  font-weight: 600;
  color: #a16207;
  margin-bottom: 4px;
}
.rtpcb-next-steps {
  background: #f8faff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  text-align: left;
}
.rtpcb-next-steps-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
}
.rtpcb-next-step-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}
.rtpcb-next-step-row:last-child { border-bottom: none; }
.rtpcb-next-step-icon {
  font-size: 24px;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.rtpcb-next-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rtpcb-next-step-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  display: block;
}
.rtpcb-next-step-text span {
  font-size: 13px;
  color: #4b5563;
  display: block;
  line-height: 1.4;
}

/* WhatsApp button on success screen */
.rtpcb-success-wa-btn {
  display: inline-block;
  background: #25d366;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none !important;
  margin-top: 16px;
  transition: background 0.2s;
}
.rtpcb-success-wa-btn:hover { background: #1ebe5d; }

/* ── Contrast fixes for mobile readability ────────────────────────────────── */
/* Step sub-text — was too light */
.rtpcb-step-sub { color: #4b5563 !important; }
/* Service card description */
.rtpcb-service-card span { color: #4b5563; }
/* Hero badge text */
.rtpcb-badge { color: #431407; }
/* Capability card text */
.rtpcb-cap-card p { color: #374151; }
/* Gallery card text */
.rtpcb-gallery-card p { color: #374151; }
/* FAQ answer text */
.rtpcb-faq-answer { color: #374151; }
/* Section eyebrow */
.rtpcb-section-eyebrow { color: #f97316; font-weight: 600; }

/* ── Dropdown / spec-card overflow fix for mobile ─────────────────────────── */
/* Ensure wizard does not overflow viewport on small screens */
.rtpcb-wizard-wrap {
  position: relative;
  overflow: visible;
}
/* Spec cards that wrap on mobile */
@media (max-width: 480px) {
  .rtpcb-spec-cards {
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
  }
  .rtpcb-service-cards {
    max-height: none;
    overflow: visible;
  }
}
