/* ═══════════════════════════════════════════
   Sewak Security Plan Builder — V2 Styles
   Premium customer-facing design
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #dbeafe;
  --primary-glow: rgba(59, 130, 246, 0.15);

  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f8fafc;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 24px rgba(59, 130, 246, 0.2);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { line-height: 1.3; color: var(--text); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover { color: var(--primary); }

.btn-block { width: 100%; }
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius); }
.btn-back { margin-bottom: 1.5rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.required { color: var(--danger); }

/* ── Header ── */
.app-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
}

.header-logo img { max-height: 64px; width: auto; display: block; }

/* ── Stepper ── */
.stepper {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 0.75rem;
  position: relative;
}

.stepper-track {
  position: absolute;
  top: 15px; /* Half of the 32px dot height */
  left: 16px; /* Half of the 32px dot width */
  right: 16px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  z-index: 1;
}

.stepper-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 1px;
  transition: width var(--transition-slow);
  width: 0%;
}

.stepper-steps {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  z-index: 2;
}

.step.active .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.step.completed .step-dot {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step.active .step-label { color: var(--primary); }
.step.completed .step-label { color: var(--success); }

/* ── Main ── */
.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  min-height: calc(100vh - 120px);
}

/* ── Screens ── */
.screen {
  animation: screenIn 0.4s ease-out;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.screen-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ═══ Screen 1: Monitoring Type ═══ */
.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.monitoring-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.monitoring-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity var(--transition);
}

.monitoring-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--primary-glow);
  transform: translateY(-4px);
}

.monitoring-card:hover::before { opacity: 1; }

.monitoring-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.monitoring-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
}

.monitoring-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.monitoring-features {
  list-style: none;
  text-align: left;
  width: 100%;
  margin: 0.5rem 0;
}

.monitoring-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.monitoring-features li.feature-disabled {
  text-decoration: line-through;
  opacity: 0.5;
}

.monitoring-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
}

.monitoring-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ═══ Screen 2: Packages ═══ */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.package-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity var(--transition);
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.3);
}

.package-card:hover::after { opacity: 1; }

.package-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.package-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  min-height: 4.5rem;
  line-height: 1.4;
}

.package-price-display {
  margin-bottom: 1.25rem;
}

.package-price-yearly {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.package-price-mtm {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.package-image-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  min-height: 80px;
}

.pkg-img-wrap {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pkg-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.package-features-list {
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.package-features-list h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.package-features-list ul {
  list-style: none;
}

.package-features-list li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.package-features-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

.package-select-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.package-select-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- CUSTOMIZER SCREEN --- */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.customize-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.config-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.config-section-header {
  margin-bottom: 1rem;
}

.config-section-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-tabs {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
}

.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  transition: all var(--transition);
}

.item-row:hover { border-color: var(--border); }

.item-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 2px;
}

.item-details { flex-grow: 1; min-width: 0; }
.item-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.item-name {
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
}

.tooltip-container:hover, .tooltip-container:focus-within {
  color: var(--primary);
}

.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 0;
  background-color: var(--bg-card);
  color: var(--text-primary);
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  width: 220px;
  z-index: 100;
  font-size: 0.75rem;
  font-weight: 400;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  white-space: normal;
  line-height: 1.4;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 10px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--border) transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content,
.tooltip-container:focus .tooltip-content,
.tooltip-container:active .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.qty-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.qty-display {
  width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── Summary Panel ── */
.summary-panel { position: sticky; top: 120px; }

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.summary-monitoring-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.plan-name-input {
  width: 100%;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  border-bottom: 1px dashed var(--border);
  padding: 0.25rem 0;
  margin-bottom: 1.25rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}

.plan-name-input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.term-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.term-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.term-btn.active {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.term-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--success);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.collage-container {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

#collage-canvas { width: 100%; height: 100%; }

.canvas-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-summary {
  margin-bottom: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.price-hero {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.price-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  color: var(--text-secondary);
}

/* ═══ Screen 4: Review ═══ */
.review-layout { max-width: 1000px; margin: 0 auto; }

.review-header {
  text-align: center;
  margin-bottom: 2rem;
}

.review-header h1 { font-size: 1.75rem; }

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.review-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.review-collage {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
}

.review-collage img {
  width: 100%;
  object-fit: contain;
  aspect-ratio: 3/2;
}

.review-list {
  list-style: none;
}

.review-list li {
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-list li:last-child { border-bottom: none; }

.review-card-pricing {
  display: flex;
  flex-direction: column;
}

.review-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

.review-price-hero {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 1rem 0;
}

.review-price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.04em;
}

.review-price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.review-price-details {
  margin-bottom: 1.5rem;
}

.review-price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.review-price-row:last-child { border-bottom: none; }

.review-features {
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.review-features h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.review-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.review-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
}

.review-features li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}

/* ═══ Screen 5: Submit ═══ */
.submit-layout { max-width: 1000px; margin: 0 auto; }

.submit-header {
  text-align: center;
  margin-bottom: 2rem;
}

.submit-header h1 { font-size: 1.75rem; }

.submit-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.submit-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group { flex: 1; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Submit Summary */
.submit-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 120px;
}

.submit-summary-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.submit-summary-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.submit-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.submit-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.submit-price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.submit-price span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.submit-list {
  list-style: none;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.submit-list li {
  font-size: 0.8rem;
  padding: 0.3rem 0;
  color: var(--text-secondary);
}

.submit-extras {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.submit-extras strong { color: var(--text); }

/* ═══ Confirmation ═══ */
.confirmation-layout {
  text-align: center;
  max-width: 500px;
  margin: 4rem auto;
  animation: screenIn 0.5s ease-out;
}

.confirmation-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--success-light);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.confirmation-layout h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.confirmation-layout .subtitle {
  margin-bottom: 2rem;
}

.confirmation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ═══ PDF Template Styles ═══ */
:root { --pdf-blue: #3874bc; --pdf-blue-dark: #27548a; --pdf-blue-light: #d8e5f5; }

.pdf-page {
  width: 794px;
  min-height: 1123px;
  background: white;
  padding: 40px 48px 36px;
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
}

.pdf-page > * {
  flex-shrink: 0;
}

.pdf-page-2 { margin-top: 0; }

/* Header */
.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--pdf-blue);
  margin-bottom: 16px;
}
.pdf-logo { height: 52px; width: auto; object-fit: contain; }
.pdf-header-right { 
  display: flex; 
  flex-direction: column; 
  align-items: flex-end; 
}
.pdf-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--pdf-blue);
  letter-spacing: 2px;
  line-height: 1.1;
}
.pdf-subtitle-badge {
  display: block;
  margin-top: 4px;
  color: var(--pdf-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Customer Bar */
.pdf-customer-bar {
  display: flex;
  background: #f0f5fc;
  border: 1px solid var(--pdf-blue-light);
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.pdf-cust-col { display: flex; flex-direction: column; flex: 1; }
.pdf-cust-center { text-align: center; align-items: center; }
.pdf-cust-right { text-align: right; align-items: flex-end; }
.pdf-cust-label { font-size: 8px; font-weight: 700; color: var(--pdf-blue); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.pdf-cust-val { font-size: 11px; font-weight: 600; color: #1a1a1a; }

/* Plan Hero */
.pdf-plan-hero { margin-bottom: 12px; }
.pdf-plan-hero h2 { font-size: 22px; font-weight: 800; color: #1a1a1a; letter-spacing: -0.5px; }

/* Collage */
.pdf-collage-section { margin-bottom: 14px; background: transparent; border-radius: 8px; overflow: hidden; text-align: center; }
.pdf-collage-section img { max-width: 100%; max-height: 220px; object-fit: contain; }

/* Section Headings */
.pdf-section-head {
  font-size: 9px; font-weight: 800; color: var(--pdf-blue);
  text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 2px solid var(--pdf-blue-light);
  padding-bottom: 4px; margin-bottom: 8px;
}

/* Two Column */
.pdf-two-col { display: flex; gap: 20px; margin-bottom: 14px; }
.pdf-col-left { flex: 1.1; }
.pdf-col-right { flex: 1; }

/* Equipment List */
.pdf-equip-list { list-style: none; padding: 0; margin: 0; }
.pdf-equip-list li {
  font-size: 10px; padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.pdf-equip-list li:last-child { border-bottom: none; }

/* Pricing Card */
.pdf-pricing-card {
  background: linear-gradient(135deg, var(--pdf-blue) 0%, var(--pdf-blue-dark) 100%);
  border-radius: 10px; padding: 14px 16px; color: white;
}
.pdf-price-hero { display: flex; align-items: baseline; gap: 3px; margin-bottom: 10px; }
.pdf-price-amount { font-size: 28px; font-weight: 900; letter-spacing: -1px; }
.pdf-price-period { font-size: 12px; opacity: 0.8; }
.pdf-price-rows { background: rgba(255,255,255,0.12); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.pdf-price-row { display: flex; justify-content: space-between; font-size: 9.5px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.pdf-price-row:last-child { border-bottom: none; }
.pdf-price-row span { opacity: 0.85; }
.pdf-price-row strong { font-weight: 700; }
.pdf-cancellation-note { font-size: 8px; opacity: 0.7; text-align: center; }

/* Included Features */
.pdf-included-section { margin-bottom: 14px; }
.pdf-features-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.pdf-features-grid li { font-size: 9.5px; color: #333; padding: 3px 0; }
.pdf-features-grid li::before { content: '✓ '; color: var(--pdf-blue); font-weight: 700; }

/* How It Works */
.pdf-how-it-works { margin-bottom: 14px; }
.pdf-steps-row { display: flex; align-items: center; gap: 0; }
.pdf-step { flex: 1; text-align: center; background: transparent; border: 1px solid var(--pdf-blue-light); border-radius: 8px; padding: 12px 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.pdf-step-img { height: 110px; max-width: 100%; object-fit: contain; margin-bottom: 12px; }
.pdf-step-icon { 
  font-size: 14px; font-weight: 800; margin: 0 auto 4px; 
  color: var(--pdf-blue); 
  display: block; text-align: center;
}
.pdf-step-title { font-size: 9.5px; font-weight: 800; color: var(--pdf-blue); margin-bottom: 4px; }
.pdf-step-desc { font-size: 8px; color: #555; line-height: 1.4; }
.pdf-step-arrow { font-size: 20px; color: var(--pdf-blue); padding: 0 8px; flex-shrink: 0; }

/* Notes */
.pdf-notes-section { margin-bottom: 12px; }
.pdf-notes-section p { font-size: 9.5px; background: #fffbe6; border-left: 3px solid #f59e0b; padding: 8px 10px; border-radius: 0 4px 4px 0; white-space: pre-wrap; }

/* Footer */
.pdf-footer {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex; justify-content: space-between;
  font-size: 8px; color: #888;
}

/* ── PAGE 2 STYLES ── */
.pdf-terms-intro {
  font-size: 9.5px; color: #555; line-height: 1.6;
  background: #f0f5fc; border-left: 3px solid var(--pdf-blue);
  padding: 10px 14px; border-radius: 0 6px 6px 0;
  margin-bottom: 18px;
}
.pdf-terms-grid { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pdf-term-item { display: flex; gap: 12px; align-items: flex-start; }
.pdf-term-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--pdf-blue); color: white;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pdf-term-body { flex: 1; }
.pdf-term-title { font-size: 10px; font-weight: 800; color: var(--pdf-blue-dark); margin-top: 8px; margin-bottom: 2px; }
.pdf-term-text { font-size: 9px; color: #444; line-height: 1.4; margin-bottom: 4px; }
.pdf-terms-disclaimer {
  margin-top: 14px; font-size: 8px; color: #888;
  background: #f8f9fb; border: 1px dashed #ddd;
  padding: 8px 12px; border-radius: 4px; text-align: center; line-height: 1.5;
}


/* Mobile Sticky Bar Defaults */
.mobile-sticky-bar {
  display: none;
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .app-main { padding: 1.5rem 1rem; }
  .app-header { padding: 0.875rem 1rem; }
  .screen-header h1 { font-size: 1.5rem; }
  .monitoring-grid { grid-template-columns: minmax(0, 1fr); }
  .customize-layout { grid-template-columns: minmax(0, 1fr); }
  .summary-panel { position: static; }
  .review-grid { grid-template-columns: minmax(0, 1fr); }
  .submit-grid { grid-template-columns: minmax(0, 1fr); }
  .submit-summary-card { position: static; }
  .form-row { flex-direction: column; gap: 0; }
  .stepper { padding: 1rem 1rem 0.75rem; }
  .stepper-steps { gap: 0.25rem; }
  .step-label { font-size: 0.6rem; }
  .step-dot { width: 26px; height: 26px; font-size: 0.7rem; }
  .stepper-track { top: 12px; left: 13px; right: 13px; }
  .confirmation-actions { flex-direction: column; }
  
  /* Mobile Customizer Improvements */
  #screen-customize { padding-bottom: 90px; }
  .desktop-review-btn { display: none !important; }
  
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
  }
  .mobile-sticky-price {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  .mobile-sticky-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
  }
  .mobile-sticky-period {
    font-size: 0.85rem;
    color: var(--text-muted);
  }
}

@media (max-width: 480px) {
  .step-label { display: none; }
  .stepper-track { top: 12px; left: 13px; right: 13px; }
}
