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

:root {
  --green-primary: #009041;
  --green-dark: #007A33;
  --green-light: #e8f5ee;
  --green-accent: #48A756;
  --text-primary: #1C1C1C;
  --text-secondary: #626666;
  --text-muted: #A1A1A1;
  --bg-white: #FFFFFF;
  --bg-gray: #F5F6F6;
  --bg-light: #EFEFEF;
  --border-color: #D8D9D9;
  --error-red: #E53935;
  --error-bg: #FAE7E7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, a, [onclick] { touch-action: manipulation; }
body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text-primary);
  background: var(--bg-gray);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Header --- */
.header {
  background: var(--bg-white);
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.header-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.header-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--green-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
}

/* --- Step Indicator --- */
/* step-indicator removed - using profile-progress-bar instead */

/* --- Main Content --- */
.screen { display: none; }
.screen.active { display: block; }

.content-wrapper {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px 120px;
}

/* --- Typography --- */
.screen-header {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.screen-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-label .required {
  display: inline-block;
  background: var(--error-red);
  color: white;
  font-size:14px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 500;
  vertical-align: middle;
}
.form-select, .form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  background: var(--bg-white);
  color: var(--text-primary);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23626666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(0,144,65,0.1);
}
.form-error {
  font-size:14px;
  color: var(--error-red);
  margin-top: 6px;
  display: none;
}

/* --- CTA Buttons --- */
.cta-primary {
  display: block;
  width: 100%;
  padding: 18px 16px;
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, transform 0.05s;
  box-shadow: var(--shadow-md);
  -webkit-tap-highlight-color: rgba(0,144,65,0.2);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.cta-primary:hover {
  background: var(--green-dark);
}
.cta-primary:active {
  transform: scale(0.97);
  background: var(--green-dark);
}
.cta-primary:disabled {
  background: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}
.cta-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--green-primary);
  border: 1.5px solid var(--green-primary);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  margin-top: 12px;
  transition: background 0.2s;
}
.cta-secondary:hover {
  background: var(--green-light);
}
.cta-link {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-size:14px;
  margin-top: 16px;
  text-decoration: underline;
  cursor: pointer;
}

/* --- Trust Badges --- */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size:14px;
  color: var(--text-secondary);
}
.trust-badge .badge-icon {
  font-size: 14px;
}

/* --- Helper Text --- */
.helper-chips {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.helper-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size:14px;
  font-weight: 500;
}

/* --- Fixed Bottom CTA --- */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 90;
}
.bottom-cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

/* ===== SCREEN 1: Basic Info ===== */
.quick-info-note {
  text-align: center;
  margin-bottom: 24px;
}

/* ===== SCREEN 3: Price Display (Motorway-inspired) ===== */
.price-page { background: var(--bg-gray); min-height: 100vh; padding-bottom: 40px; }
.price-hero {
  background: var(--green-primary);
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-hero-car-tag {
  background: white;
  color: var(--text-primary);
  font-size:14px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  border: 2px solid #ccc;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.price-hero-car-info { color: white; flex: 1; min-width: 0; }
.price-hero-car-name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-hero-car-specs { font-size:14px; opacity: 0.85; }
.price-hero-car-specs span { margin-right: 4px; }
.price-hero .change-link { color: white; font-size:14px; text-decoration: underline; cursor: pointer; flex-shrink: 0; }

.price-heading {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  padding: 20px 16px 16px;
  line-height: 1.4;
}

.price-columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Why choose - compact horizontal cards for mobile */
.price-why-card {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid #C8E6C9;
}
.price-why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.price-why-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #C8E6C9;
}
.price-why-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.price-why-icon {
  width: 24px; height: 24px; min-width: 24px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size:14px; margin-top: 2px;
}
.price-why-item h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.price-why-item p { font-size:14px; color: var(--text-secondary); line-height: 1.5; }

/* Price card */
.price-right-col { max-width: 100%; }

.price-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  border: 2px solid var(--green-primary);
  box-shadow: var(--shadow-md);
}
.price-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.price-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}
.price-value .yen {
  font-size: 22px;
  font-weight: 700;
}
.price-how-link {
  font-size:14px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: underline;
  margin-bottom: 16px;
}
.price-cta-btn {
  display: block;
  width: 100%;
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 24px;
}
.price-cta-btn:hover { background: var(--green-dark); }
.price-cta-btn .arrow { margin-left: 8px; }

.price-steps-title {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.price-steps {
  border-top: 1px solid var(--border-color);
}
.price-step-item {
  padding: 10px 0;
  font-size:14px;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.price-step-item:last-child { border-bottom: none; }

.price-trust-row {
  text-align: center;
  padding: 14px 0 4px;
  font-size:14px;
  color: var(--green-dark);
  font-weight: 600;
}

.price-range {
  font-size:14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.price-back-link {
  text-align: center;
  padding: 16px;
}
.price-back-link a {
  font-size:14px;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

#screen3 .content-wrapper { max-width: none; padding: 0; }
#screen3 .bottom-cta { display: none; }

/* Hide bottom-cta on screens that don't need it */
#screen1 .bottom-cta,
#screen2 .bottom-cta,
#screen3 .bottom-cta,
#screen4 .bottom-cta,
#screen5 .bottom-cta,
#screen11 .bottom-cta { display: none !important; }

/* Ensure bottom-cta only shows when its parent screen is active */
.screen:not(.active) .bottom-cta { display: none !important; }

/* ===== SCREEN 3: Detail Input ===== */
.detail-group {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}
.detail-group.answered {
  border-color: var(--green-primary);
  background: #FAFFF7;
}
.detail-group-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.detail-group.answered .detail-group-title::after {
  content: '✓';
  font-size:14px;
  font-weight: 700;
  color: #fff;
  background: var(--green-primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}
.detail-group.answered .badge-required {
  display: none;
}
.badge-required {
  display: inline-block;
  font-size:14px;
  font-weight: 700;
  color: #fff;
  background: #E53935;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}
.badge-optional {
  display: inline-block;
  font-size:14px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-light);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}
.radio-options, .checkbox-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-option, .checkbox-option {
  flex: 1;
  min-width: 100px;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-white);
}
.radio-option:hover, .checkbox-option:hover {
  border-color: var(--green-primary);
  background: var(--green-light);
}
.radio-option.selected, .checkbox-option.selected {
  border-color: var(--green-primary);
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}

/* ===== SCREEN 5: Contact ===== */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-white);
  color: var(--text-primary);
  font-family: inherit;
  transition: background 0.2s;
}
.social-btn:hover {
  background: var(--bg-gray);
}
.social-btn .social-icon {
  font-size: 18px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size:14px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ===== SCREEN 6: Photo Intro ===== */
.prep-checklist {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}
.prep-checklist-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prep-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-gray);
  font-size: 14px;
  color: var(--text-secondary);
}
.prep-item:last-child {
  border-bottom: none;
}
.prep-icon {
  width: 28px;
  height: 28px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.intro-explain {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size:14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ===== SCREEN 7: Photo Upload ===== */
.photo-progress {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  text-align: center;
}
.photo-progress-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.photo-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}
.photo-progress-fill {
  height: 100%;
  background: var(--green-primary);
  border-radius: 4px;
  transition: width 0.3s;
}
.photo-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size:14px;
  font-weight: 600;
}
.section-badge.required {
  background: var(--error-red);
  color: white;
}
.section-badge.optional {
  background: var(--bg-light);
  color: var(--text-secondary);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.photo-card {
  background: var(--bg-white);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.photo-card:hover {
  border-color: var(--green-primary);
  background: var(--green-light);
}
.photo-card.uploaded {
  border-style: solid;
  border-color: var(--green-primary);
  background: var(--green-light);
}
.photo-card .card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size:14px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}
.photo-card .card-badge.req {
  background: var(--error-red);
  color: white;
}
.photo-card .card-badge.opt {
  background: var(--text-muted);
  color: white;
}
.photo-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.photo-card .card-icon svg {
  width: 28px;
  height: 28px;
  opacity: 0.5;
}
.photo-card .card-label {
  font-size:14px;
  font-weight: 600;
  color: var(--text-primary);
}
.photo-card .card-hint {
  font-size:14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.photo-card.uploaded .card-icon {
  background: var(--green-primary);
}
.photo-card.uploaded .card-icon svg {
  opacity: 1;
}
.photo-card.uploaded .check-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size:14px;
}

.photo-helper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size:14px;
  color: var(--text-secondary);
}

/* ===== Photo Upload Cards (New) ===== */
.photo-upload-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.3s;
  position: relative;
  opacity: 0.7;
}
.photo-upload-card.next-to-shoot {
  border-color: var(--green-primary);
  border-left: 4px solid var(--green-primary);
  box-shadow: 0 2px 12px rgba(0,144,65,0.12);
  opacity: 1;
}
.photo-upload-card.uploaded {
  background: var(--green-light);
  border-color: var(--green-primary);
  border-style: solid;
  opacity: 1;
}
.photo-upload-card-sample {
  width: 90px;
  min-width: 90px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}
.photo-upload-card-sample svg {
  width: 70px;
  height: 54px;
}
.photo-upload-card.uploaded .photo-upload-card-sample {
  background: #e0e0e0;
}
.photo-upload-card.uploaded .photo-upload-card-sample svg {
  display: none;
}
.photo-upload-card.uploaded .photo-upload-card-sample .photo-ok-label {
  display: none;
}
.photo-upload-card.uploaded .photo-upload-card-sample .photo-thumbnail-img {
  display: block;
}
.photo-thumbnail-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.photo-upload-card.uploaded .photo-upload-card-sample::after {
  content: '✓';
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  background: var(--green-primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.photo-ok-label {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-size:14px;
  color: #999;
  background: rgba(255,255,255,0.85);
  padding: 1px 4px;
}
.photo-upload-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.photo-upload-card-number {
  font-size:14px;
  font-weight: 600;
  color: var(--text-muted);
}
.photo-upload-card.next-to-shoot .photo-upload-card-number {
  color: var(--green-primary);
}
.photo-upload-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.photo-upload-card-desc {
  font-size:14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.photo-upload-btn {
  margin-top: 6px;
  padding: 8px 14px;
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size:14px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  font-family: inherit;
}
.photo-upload-card.uploaded .photo-upload-btn {
  background: #fff;
  color: var(--green-primary);
  border: 1.5px solid var(--green-primary);
}
.photo-help-link {
  font-size:14px;
  color: var(--green-primary);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 2px;
}

/* ===== Step Card UI for Screen 10 ===== */
.step-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.step-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size:14px;
  font-weight: 600;
  background: #f5f5f5;
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.step-chip.uploaded {
  background: #E8F5E9;
  color: var(--green-dark);
  border-color: #A5D6A7;
}
.step-chip.active {
  background: #fff;
  color: var(--green-primary);
  border-color: var(--green-primary);
  box-shadow: 0 1px 3px rgba(0,144,65,0.15);
}
.step-chip.next-target {
  background: #FFF8E1;
  color: #F57C00;
  border-color: #FFB74D;
  animation: chipPulse 2s ease-in-out infinite;
}
@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,183,77,0.3); }
  50% { box-shadow: 0 0 0 4px rgba(255,183,77,0.15); }
}
.step-chip .chip-check {
  font-size:14px;
}
.step-section-divider {
  font-size:14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 0 2px;
  width: 100%;
}
.step-active-card {
  background: #fff;
  border-radius: 14px;
  border: 2px solid var(--green-primary);
  padding: 18px 16px;
  box-shadow: 0 3px 12px rgba(0,144,65,0.1);
  animation: stepCardIn 0.3s ease;
}
@keyframes stepCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes celebBounce {
  0% { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  50% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes confettiFall {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(10deg); }
}
.step-active-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  text-align: center;
}
.step-active-card-subtitle {
  font-size:14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 12px;
}
.step-active-card-img {
  width: 100%;
  background: #f5f5f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.step-active-card-img img {
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.step-active-card-img svg { width: 100%; height: auto; }
.step-active-card-img .ok-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.92);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.step-active-card-img .ok-example-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.step-active-card.uploaded .step-active-card-img {
  background: #E8F5E9;
}
.step-shoot-btn {
  display: block;
  width: 100%;
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.1s, transform 0.05s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,144,65,0.2);
}
.step-shoot-btn:active { transform: scale(0.97); background: var(--green-dark); }
.step-retake-btn {
  display: block;
  width: 100%;
  background: #fff;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
  border-radius: 100px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.step-sample-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size:14px;
  color: var(--green-primary);
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Photo Grid Layout ===== */
.photo-grid-section {
  margin-bottom: 28px;
}
.photo-grid-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}
.photo-grid-section-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.photo-grid-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.photo-grid-section-emoji {
  font-size: 20px;
}
.photo-grid-section-progress {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}
.photo-grid-section-checkmark {
  font-size: 18px;
  color: var(--green-primary);
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.photo-grid-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.photo-grid-card:active {
  transform: scale(0.98);
}
.photo-grid-card.uploaded {
  border-color: var(--green-primary);
  background: #FAFFF7;
}
.photo-grid-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-grid-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}
.photo-grid-card-img svg {
  width: 100%;
  height: 100%;
}
.photo-grid-card-img .ok-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #fff;
  color: var(--green-dark);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  z-index: 2;
}
.photo-grid-card-img .ok-example-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green-primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  z-index: 2;
}
.photo-grid-card-img .checkmark-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--green-primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  z-index: 3;
}
.photo-grid-card-content {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 6px;
}
.photo-grid-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}
.photo-grid-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.photo-grid-card-btn:active {
  background: var(--green-dark);
}
.photo-grid-card.uploaded .photo-grid-card-btn {
  background: #fff;
  color: var(--green-primary);
  border: 1.5px solid var(--green-primary);
  gap: 4px;
}

/* Photo Detail Modal */
.photo-detail-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.photo-detail-modal.active {
  display: flex;
}
.photo-detail-modal-content {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 16px;
  animation: slideUp 0.3s ease;
  position: relative;
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.photo-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-detail-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.photo-detail-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  display: block;
}
.photo-detail-image .ok-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #fff;
  color: var(--green-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  z-index: 2;
  white-space: nowrap;
  max-width: 80%;
  text-align: center;
}
.photo-detail-image .ok-example-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  z-index: 2;
  white-space: nowrap;
}
.photo-detail-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.photo-detail-tips {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.photo-detail-tips-title {
  font-size: 14px;
  font-weight: 700;
  color: #F57C00;
  margin-bottom: 4px;
}
.photo-detail-tips-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-line;
}
.photo-detail-action {
  display: flex;
  gap: 8px;
}
.photo-detail-action-btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s;
}
.photo-detail-action-btn.primary {
  background: var(--green-primary);
  color: #fff;
}
.photo-detail-action-btn.primary:active {
  background: var(--green-dark);
}
.photo-detail-action-btn.secondary {
  background: #fff;
  color: var(--green-primary);
  border: 1.5px solid var(--green-primary);
}

/* ===== Damage Photo Thumbnails ===== */
.dmg-thumb-item {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}
.dmg-thumb-item .dmg-thumb-del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size:14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

/* ===== Inline Damage Areas (in grid) ===== */
.damage-area {
  margin: 4px 0 20px;
  border: 1.5px dashed #FFB74D;
  border-radius: 12px;
  background: #FFFBF5;
  overflow: hidden;
}
.damage-area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}
.damage-area-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.damage-area-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.damage-area-badge {
  font-size: 14px;
  font-weight: 600;
  color: #F57C00;
  background: #FFF3E0;
  padding: 2px 8px;
  border-radius: 100px;
}
.damage-area-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.damage-area-count {
  font-size: 14px;
  color: var(--text-muted);
}
.damage-area-toggle {
  font-size: 16px;
  font-weight: 700;
  color: #F57C00;
  transition: transform 0.2s;
}
.damage-area-toggle.open {
  transform: rotate(45deg);
}
.damage-area-body {
  padding: 0 14px 14px;
}
.damage-area-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}
.damage-area-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.damage-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 2px solid #FFB74D;
}
.damage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.damage-thumb-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E53935;
  color: #fff;
  font-size: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: 700;
}
.damage-area-add-btn {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed #FFB74D;
  border-radius: 8px;
  background: #fff;
  color: #F57C00;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.damage-area-add-btn:active {
  background: #FFF3E0;
}

/* ===== SCREEN 6: Profile Links Page ===== */
/* --- Stepper (circles + lines) --- */
.profile-progress-bar {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 12px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}
.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.stepper-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:14px;
  font-weight: 700;
  border: 2px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-muted);
  transition: all 0.3s;
  flex-shrink: 0;
}
.stepper-step.active .stepper-circle {
  border-color: var(--green-primary);
  background: var(--green-primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 144, 65, 0.15);
}
.stepper-step.completed .stepper-circle {
  border-color: var(--green-primary);
  background: var(--green-primary);
  color: #fff;
}
.stepper-label {
  font-size:11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}
.stepper-step.active .stepper-label {
  color: var(--green-primary);
}
.stepper-step.completed .stepper-label {
  color: var(--green-primary);
}
.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border-color);
  min-width: 12px;
  max-width: 40px;
  margin: 0 -1px;
  margin-bottom: 14px;
  transition: background 0.3s;
}
.stepper-line.completed {
  background: var(--green-primary);
}
.stepper-status {
  text-align: center;
  font-size:14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.profile-links-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.profile-link-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-link-card:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-md);
  background: var(--green-light);
}

.profile-link-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.profile-link-icon.completed {
  background: var(--green-primary);
  color: white;
}

.profile-link-icon.incomplete {
  background: var(--bg-light);
  color: var(--text-primary);
}

.profile-link-content {
  flex: 1;
}

.profile-link-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-link-desc {
  font-size:14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.profile-link-pending {
  font-size:14px;
  color: #E65100;
  font-weight: 600;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-link-pending::before {
  content: '⚠';
  font-size:14px;
}
.profile-link-done {
  font-size:14px;
  color: var(--green-primary);
  font-weight: 600;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.profile-link-done::before {
  content: '✓';
  font-size:14px;
}
.unanswered-tag {
  display: inline-block;
  font-size:14px;
  color: #E65100;
  background: #fff;
  border: 1px solid #FFB74D;
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 500;
}

.profile-link-arrow {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg-light);
  color: var(--text-secondary);
}

.profile-link-card:hover .profile-link-arrow {
  background: var(--green-primary);
  color: white;
}

/* ===== SCREEN 10: Complete ===== */
.complete-icon {
  text-align: center;
  margin-bottom: 20px;
}
.complete-icon .circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green-light);
  border: 3px solid var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 36px;
}
.complete-message {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.complete-note {
  background: var(--bg-gray);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size:14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 400px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screen-header {
    font-size: 20px;
  }
  .price-value {
    font-size: 30px;
  }
}

/* --- Car illustration placeholder --- */
.car-illust {
  width: 80px;
  height: 50px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-illust svg {
  width: 100%;
  height: 100%;
}

/* ===== LP Hero Section (Screen 1) ===== */
.lp-hero {
  background: linear-gradient(135deg, var(--green-primary) 0%, #00B350 50%, #00C95D 100%);
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.lp-hero-inner {
  display: flex;
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 24px;
  gap: 24px;
  align-items: center;
  width: 100%;
}
.lp-hero-left {
  flex: 1;
  color: white;
}
.lp-hero-left h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.lp-hero-left h1 .accent {
  color: #FFE566;
}
.lp-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.lp-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  padding: 6px 14px;
  font-size:14px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}
.lp-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}
.lp-stat {
  color: rgba(255,255,255,0.9);
  font-size:14px;
}
.lp-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: white;
}
.lp-note {
  font-size:14px;
  color: rgba(255,255,255,0.6);
}
/* Form Card */
.lp-form-card {
  width: 320px;
  flex-shrink: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 20px;
}
.lp-form-title {
  text-align: center;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.lp-form-subtitle {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--green-primary);
  margin-bottom: 4px;
}
.lp-form-desc {
  text-align: center;
  font-size:14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.lp-form-desc .free {
  color: var(--error-red);
  font-weight: 700;
}
.lp-form-group {
  margin-bottom: 14px;
}
.lp-form-group label {
  display: block;
  font-size:14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.lp-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: white;
  appearance: auto;
  transition: border-color 0.2s;
}
.lp-form-group select:focus {
  border-color: var(--green-primary);
  outline: none;
}
.lp-form-cta {
  width: 100%;
  padding: 14px;
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lp-form-cta:hover {
  background: var(--green-dark);
}
.lp-form-cta .btn-badge {
  background: white;
  color: var(--green-primary);
  font-size:14px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}
/* Mobile responsive for LP Hero */
@media (max-width: 768px) {
  .lp-hero-inner {
    flex-direction: column;
    padding: 24px 16px 20px;
    gap: 20px;
  }
  .lp-hero-left h1 {
    font-size: 22px;
    text-align: center;
  }
  .lp-badges {
    justify-content: center;
  }
  .lp-stats {
    justify-content: center;
  }
  .lp-form-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .lp-note {
    text-align: center;
  }
}

/* ===== Mileage Input Screen (Screen 2) ===== */
.mileage-page {
  background: linear-gradient(135deg, var(--green-primary) 0%, #00B350 50%, #00C95D 100%);
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.mileage-inner {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.mileage-car-info {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px 32px;
  width: 100%;
  max-width: 480px;
}
.mileage-car-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.mileage-change-link {
  font-size: 13px;
  color: var(--green-primary);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
}
.mileage-change-link:hover {
  text-decoration: underline;
}
.mileage-car-tag {
  display: inline-block;
  background: var(--bg-gray);
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.mileage-car-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}
.mileage-car-specs {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mileage-car-specs .spec-dot {
  color: var(--text-muted);
}
.mileage-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mileage-label .help-icon {
  width: 20px;
  height: 20px;
  background: var(--bg-gray);
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size:14px;
  color: var(--text-secondary);
  cursor: help;
}
.mileage-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.mileage-input-wrap {
  flex: 1;
  position: relative;
}
.mileage-input-wrap input {
  width: 100%;
  padding: 14px 40px 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 22px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-primary);
  text-align: center;
  transition: border-color 0.2s;
  letter-spacing: 1px;
}
.mileage-input-wrap input:focus {
  border-color: var(--green-primary);
  outline: none;
}
.mileage-input-wrap input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 16px;
}
.mileage-input-wrap .unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.mileage-input-wrap .check-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-primary);
  font-size: 18px;
  display: none;
}
.mileage-input-wrap.valid .check-icon {
  display: block;
}
.mileage-input-wrap.valid .unit {
  display: none;
}
.mileage-confirm-btn {
  padding: 14px 28px;
  background: var(--green-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mileage-confirm-btn:hover {
  background: var(--green-dark);
}
.mileage-confirm-btn .arrow {
  font-size: 18px;
}
.mileage-helper {
  margin-top: 14px;
  font-size:14px;
  color: var(--text-muted);
  text-align: center;
}
.mileage-trust {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mileage-trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size:14px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.mileage-trust-item .icon {
  font-size: 14px;
}
@media (max-width: 768px) {
  .mileage-car-info {
    padding: 20px;
  }
  .mileage-car-name {
    font-size: 18px;
  }
  .mileage-input-wrap input {
    font-size: 18px;
    padding: 12px 36px 12px 12px;
  }
  .mileage-input-row {
    flex-direction: column;
  }
  .mileage-confirm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Photo section headers */
.photo-section-header {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.photo-section-header-title {
  font-weight: 700;
  font-size: 16px;
  color: #1B5E20;
}
.photo-section-header-subtitle {
  font-size:14px;
  color: #2E7D32;
  margin-top: 2px;
}

.photo-section-header.interior {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
}
.photo-section-header.interior .photo-section-header-title {
  color: #0D47A1;
}
.photo-section-header.interior .photo-section-header-subtitle {
  color: #1565C0;
}

.photo-section-header.docs {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
}
.photo-section-header.docs .photo-section-header-title {
  color: #E65100;
}
.photo-section-header.docs .photo-section-header-subtitle {
  color: #EF6C00;
}

/* Photo progress display */
.photo-progress-large {
  text-align: center;
  margin-bottom: 8px;
}
.photo-progress-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.photo-progress-bar-slim {
  height: 5px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0;
}
.photo-progress-bar-slim-fill {
  height: 100%;
  background: var(--green-primary);
  transition: width 0.3s ease;
}
.photo-progress-helper {
  font-size:14px;
  color: var(--text-muted);
}

/* Optional photo counter (legacy) */
.optional-photo-count {
  font-size:14px;
  font-weight: 600;
  color: var(--green-primary);
  margin-top: 4px;
}

/* Optional photo groups */
.optional-photo-group {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
}
.optional-photo-group .opt-thumbnail-area {
  background: #FAFAFA;
  border-radius: 8px;
  padding: 10px;
}
.optional-photo-group .opt-thumbnail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opt-thumb-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  flex-shrink: 0;
}
.opt-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.opt-thumb-delete {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size:14px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  font-weight: 700;
}
.opt-thumb-delete:hover {
  background: #E53935;
}

/* Optional photo preview modal */
#optPhotoPreviewModal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#optPhotoPreviewModal.show {
  display: flex;
}
#optPhotoPreviewModal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
#optPhotoPreviewModal .preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Achievement boxes */
.achievement-box {
  animation: fadeInUp 0.5s;
}

/* ===== SCREEN 1: LP2 FULL PAGE ===== */
#screen1 {
  font-family: 'Inter', sans-serif;
}

#screen1 .lp-section {
  width: 100%;
}

/* Header */
#screen1 .lp-header {
  background: transparent;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: static;
  height: 80px;
}

#screen1 .lp-header-logo {
  height: 32px;
  width: auto;
}

#screen1 .lp-header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  color: #3D3D3D;
}

#screen1 .lp-header-nav a {
  cursor: pointer;
  text-decoration: none;
  color: #3D3D3D;
  transition: color 0.2s;
}

#screen1 .lp-header-nav a:hover {
  color: #389656;
}

#screen1 .lp-tab-group {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

#screen1 .lp-tab {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #DDD;
  background: white;
  color: #3D3D3D;
  transition: all 0.2s;
}

#screen1 .lp-tab.active {
  background: #389656;
  color: white;
  border-color: #389656;
}

/* First View */
#screen1 .lp-fv {
  background: linear-gradient(to right top, #359354, #77C28B);
  padding: 0;
  overflow: hidden;
}

#screen1 .lp-fv-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 91.67%;
  padding-top: 32px;
}

#screen1 .lp-fv-image {
  width: 60%;
  flex: none;
  position: relative;
}

#screen1 .lp-fv-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}



/* ===== LP Unified Step Modal Tabs ===== */
.lp-step-tabs {
  display: flex;
  align-items: stretch;
  background: #F0F0F0;
  flex-shrink: 0;
  position: relative;
  min-height: 52px;
}
.lp-step-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  font-size: 12px;
  color: #999;
  cursor: default;
  position: relative;
  background: #F0F0F0;
  transition: background 0.15s, color 0.15s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  margin-left: -1px;
}
.lp-step-tab:first-child {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  margin-left: 0;
}
.lp-step-tab.active {
  background: #389656;
  color: white;
  font-weight: 700;
  cursor: default;
  z-index: 1;
}
.lp-step-tab.done {
  background: #E8E8E8;
  color: #555;
  cursor: pointer;
}
.lp-step-tab.done:hover {
  background: #DDD;
}
.lp-step-tab.future {
  background: #F0F0F0;
  color: #BBB;
}
.lp-step-label {
  font-size: 11px;
  line-height: 1.2;
}
.lp-step-value {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-step-tabs .lp-modal-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding: 0;
}
@media (max-width: 1024px) {
  .lp-step-tab { padding: 8px 4px; }
  .lp-step-label { font-size: 10px; }
  .lp-step-value { font-size: 11px; }
}


/* LP Color selection in modal */
.lp-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 20px 24px;
}
.lp-color-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  border: 2px solid #EEE;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: white;
  gap: 6px;
}
.lp-color-card:hover {
  border-color: #389656;
  background: #F0FAF3;
}
.lp-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp-color-swatch-other {
  background: conic-gradient(#E53935, #FB8C00, #FDD835, #43A047, #1E88E5, #9C27B0, #E53935);
}
.lp-color-name {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 1024px) {
  .lp-color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== LP Modal Field Buttons (MOTA-style) ===== */
#screen1 .lp-field-btn {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1.5px solid #DDD;
  border-radius: 6px;
  font-size: 14px;
  color: #3D3D3D;
  background: white;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s;
  text-align: left;
  min-height: 44px;
  display: flex;
  align-items: center;
}
#screen1 .lp-field-btn:hover { border-color: #389656; }
#screen1 .lp-field-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: #F9F9F9;
}
#screen1 .lp-field-btn.selected {
  border-color: #389656;
  color: #1a1a1a;
  font-weight: 600;
}
#screen1 .lp-field-btn .lp-field-placeholder {
  color: #999;
  font-weight: 400;
}
#screen1 .lp-field-btn .lp-field-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #999;
}
.lp-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: white;
  background: #E74C3C;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}
.lp-badge-ok {
  background: #389656;
}

/* LP Modals */
.lp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lp-modal-overlay.active {
  display: flex;
}
.lp-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.lp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #EEE;
  flex-shrink: 0;
}
.lp-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}
.lp-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.lp-modal-close:hover { color: #333; }
.lp-modal-search {
  padding: 12px 24px;
  border-bottom: 1px solid #EEE;
  flex-shrink: 0;
}
.lp-modal-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #DDD;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.lp-modal-search input:focus { border-color: #389656; }
.lp-modal-body {
  overflow-y: auto;
  padding: 0;
  flex: 1;
}

/* Maker Grid (MOTA-style logo cards) */
.lp-maker-section {
  padding: 16px 24px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lp-maker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 24px 16px;
}
.lp-maker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  border: 1.5px solid #EEE;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: white;
  min-height: 48px;
}
.lp-maker-card:hover {
  border-color: #389656;
  background: #F0FAF3;
}
.lp-maker-card .lp-maker-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
  line-height: 1.3;
}

/* Generic list items */
.lp-modal-item {
  padding: 14px 24px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #F5F5F5;
  transition: background 0.12s;
}
.lp-modal-item:hover { background: #F0FAF3; }
.lp-modal-item:last-child { border-bottom: none; }
.lp-modal-item.highlight {
  background: #FFF8E1;
  font-weight: 600;
}
.lp-modal-group-label {
  padding: 10px 24px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  background: #FAFAFA;
  border-bottom: 1px solid #EEE;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Year grid */
.lp-year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px 24px;
}
.lp-year-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 1.5px solid #EEE;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.15s;
}
.lp-year-card:hover {
  border-color: #389656;
  background: #F0FAF3;
}

@media (max-width: 1024px) {
  .lp-maker-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lp-year-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

#screen1 .lp-fv-form-card {
  width: 368px;
  flex: none;
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: none;
  border: 1px solid #E2E8F0;
  margin: auto 0;
}

#screen1 .lp-fv-form-card .form-group {
  margin-bottom: 16px;
}

#screen1 .lp-fv-form-card label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #3D3D3D;
  margin-bottom: 8px;
}

#screen1 .lp-fv-form-card select {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #DDD;
  border-radius: 6px;
  font-size: 14px;
  color: #3D3D3D;
  background: white;
  font-family: inherit;
}

#screen1 .lp-fv-form-card select:focus {
  outline: none;
  border-color: #389656;
}

#screen1 .lp-fv-cta {
  width: 100%;
  padding: 12px 16px;
  background: #389656;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  font-family: inherit;
}

#screen1 .lp-fv-cta:hover {
  background: #2d7a48;
}

/* Results/Sales ticker */
#screen1 .lp-results {
  background: transparent;
  padding: 56px 20px;
}

#screen1 .lp-results-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#screen1 .lp-results-title {
  font-size: 30px;
  font-weight: 700;
  color: #2D8349;
  margin-bottom: 24px;
  text-align: center;
}

#screen1 .lp-results-ticker {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px;
  scroll-behavior: smooth;
}

#screen1 .lp-results-ticker::-webkit-scrollbar {
  height: 6px;
}

#screen1 .lp-results-ticker::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#screen1 .lp-results-ticker::-webkit-scrollbar-thumb {
  background: #389656;
  border-radius: 3px;
}

#screen1 .lp-result-card {
  flex: 0 0 22.22%;
  min-width: 200px;
  flex-shrink: 0;
  margin-right: 16px;
}

#screen1 .lp-result-img-wrap {
  position: relative;
  margin-bottom: 16px;
}

#screen1 .lp-result-img-wrap img.lp-result-photo {
  width: 100%;
  border-radius: 8px;
  display: block;
  aspect-ratio: 2/1;
  object-fit: cover;
  background: #EEE;
}

#screen1 .lp-result-img-wrap img.lp-result-sold-tag {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
}

#screen1 .lp-result-car-name {
  font-size: 16px;
  font-weight: 700;
  color: #1A1919;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen1 .lp-result-specs {
  font-size: 14px;
  color: #1A1919;
  margin-bottom: 4px;
}

#screen1 .lp-result-price {
  font-size: 16px;
  color: #389656;
  margin-bottom: 2px;
}

#screen1 .lp-result-price span {
  font-size: 24px;
  font-weight: 700;
}

#screen1 .lp-result-sold {
  font-size: 12px;
  color: #656767;
}

/* CTA Banner */
#screen1 .lp-cta-banner {
  background: linear-gradient(to right top, #359354, #77C28B);
  padding: 32px 20px;
  text-align: center;
}

#screen1 .lp-cta-banner-inner {
  max-width: 600px;
  margin: 0 auto;
}

#screen1 .lp-cta-banner h2 {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

#screen1 .lp-cta-banner-btn {
  display: inline-block;
  padding: 14px 32px;
  background: white;
  color: #389656;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s;
}

#screen1 .lp-cta-banner-btn:hover {
  transform: scale(1.05);
}

/* Comparison Table Section */
#screen1 .lp-comparison {
  background: #EDF6EE;
  padding: 56px 20px;
}

#screen1 .lp-comparison-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#screen1 .lp-comparison-title {
  font-size: 30px;
  font-weight: 700;
  color: #2D8349;
  margin-bottom: 24px;
  text-align: center;
}

#screen1 .lp-comparison-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#screen1 .lp-comparison-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Staff Section */
#screen1 .lp-staff {
  background: white;
  padding: 56px 20px;
}

#screen1 .lp-staff-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#screen1 .lp-staff-title {
  font-size: 30px;
  font-weight: 700;
  color: #40A260;
  margin-bottom: 24px;
  text-align: center;
}

#screen1 .lp-staff-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#screen1 .lp-staff-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Safe Trade Features */
#screen1 .lp-safe {
  background: white;
  padding: 56px 20px;
}

#screen1 .lp-safe-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#screen1 .lp-safe-title {
  font-size: 30px;
  font-weight: 700;
  color: #2D8349;
  margin-bottom: 28px;
  text-align: center;
}

#screen1 .lp-safe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

#screen1 .lp-safe-card {
  background: #EDF6EE;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  border: 1px solid #D0E8D7;
}

#screen1 .lp-safe-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

#screen1 .lp-safe-icon img {
  width: 100%;
  height: 100%;
}

#screen1 .lp-safe-label {
  font-size: 16px;
  font-weight: 700;
  color: #3D3D3D;
  margin-bottom: 12px;
}

#screen1 .lp-safe-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Flow Section */
#screen1 .lp-flow {
  background: #EDF6EE;
  padding: 56px 20px;
}

#screen1 .lp-flow-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#screen1 .lp-flow-title {
  font-size: 30px;
  font-weight: 700;
  color: #007A33;
  margin-bottom: 28px;
  text-align: center;
}

#screen1 .lp-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

#screen1 .lp-flow-step {
  text-align: center;
}

#screen1 .lp-flow-image {
  width: 100%;
  background: transparent;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

#screen1 .lp-flow-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

#screen1 .lp-flow-label {
  font-size: 16px;
  font-weight: 700;
  color: #3D3D3D;
}

/* Clients Section */
#screen1 .lp-clients {
  background: transparent;
  padding: 56px 20px;
}

#screen1 .lp-clients-inner {
  max-width: 1200px;
  margin: 0 auto;
}

#screen1 .lp-clients-title {
  font-size: 30px;
  font-weight: 700;
  color: #2D8349;
  margin-bottom: 24px;
  text-align: center;
}

#screen1 .lp-clients-ticker {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

#screen1 .lp-client-badge {
  padding: 12px 20px;
  background: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #3D3D3D;
  border: 1px solid #D0E8D7;
  white-space: nowrap;
}

/* Interview Section */
#screen1 .lp-interview {
  background: #EDF6EE;
  padding: 56px 20px;
}

#screen1 .lp-interview-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 91.67%;
}

#screen1 .lp-interview-title {
  font-size: 30px;
  font-weight: 700;
  color: #2D8349;
  margin-bottom: 28px;
  text-align: center;
}

#screen1 .lp-interview-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#screen1 .lp-interview-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

#screen1 .lp-interview-image {
  width: 288px;
  flex-shrink: 0;
  background: #DDD;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

#screen1 .lp-interview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
}

#screen1 .lp-interview-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#screen1 .lp-interview-car {
  font-size: 18px;
  font-weight: 700;
  color: #3D3D3D;
  margin-bottom: 2px;
}

#screen1 .lp-interview-specs {
  font-size: 14px;
  font-weight: 500;
  color: #656767;
  margin-bottom: 8px;
}

#screen1 .lp-interview-quote {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 8px;
}

#screen1 .lp-interview-quote-bar {
  width: 3px;
  flex-shrink: 0;
  background: #389656;
  border-radius: 2px;
}

#screen1 .lp-interview-quote-text {
  font-size: 16px;
  font-weight: 700;
  color: #389656;
  line-height: 1.5;
}

#screen1 .lp-interview-comment {
  font-size: 14px;
  font-weight: 500;
  color: #3D3D3D;
  line-height: 1.6;
  margin-bottom: 12px;
}

#screen1 .lp-interview-divider {
  width: 100%;
  height: 1px;
  background: #E5E5E5;
  margin: 12px 0;
}

#screen1 .lp-interview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#screen1 .lp-interview-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3D3D3D;
  font-weight: 500;
}

#screen1 .lp-interview-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #C8E6C9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #389656;
}

#screen1 .lp-interview-link {
  font-size: 14px;
  font-weight: 700;
  color: #389656;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* FAQ Section */
#screen1 .lp-faq {
  background: transparent;
  padding: 56px 20px;
}

#screen1 .lp-faq-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 91.67%;
}

#screen1 .lp-faq-title {
  font-size: 30px;
  font-weight: 700;
  color: #007A33;
  margin-bottom: 28px;
  text-align: center;
}

#screen1 .lp-faq-item {
  margin-bottom: 12px;
  border: none;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

#screen1 .lp-faq-question {
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #3D3D3D;
  font-size: 15px;
  background: white;
  user-select: none;
}

#screen1 .lp-faq-question:hover {
  background: #f0f0f0;
}

#screen1 .lp-faq-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #389656;
  font-weight: bold;
  transition: transform 0.2s;
}

#screen1 .lp-faq-item.open .lp-faq-toggle {
  transform: rotate(180deg);
}

#screen1 .lp-faq-answer {
  display: none;
  padding: 20px;
  background: white;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

#screen1 .lp-faq-item.open .lp-faq-answer {
  display: block;
}

/* Footer */
#screen1 .lp-footer {
  background: #2d2d2d;
  color: white;
  padding: 40px 20px 20px;
  text-align: center;
  font-size: 12px;
}

#screen1 .lp-footer-logo {
  height: 28px;
  width: auto;
  margin: 0 auto 20px;
  display: block;
}

#screen1 .lp-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

#screen1 .lp-footer-links a {
  color: #aaa;
  text-decoration: none;
  cursor: pointer;
}

#screen1 .lp-footer-links a:hover {
  color: white;
}

#screen1 .lp-footer-copyright {
  color: #666;
}

/* Responsive */
/* --- Screen1 LP responsive (SP: ≤1024px) --- */
@media (max-width: 1024px) {
  /* Header */
  #screen1 .lp-header {
    padding: 12px 16px;
    height: auto;
  }
  #screen1 .lp-header-nav {
    display: none;
  }
  #screen1 .lp-tab-group {
    position: absolute;
    right: 16px;
    top: 12px;
  }
  #screen1 .lp-tab {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* First View */
  #screen1 .lp-fv {
    padding: 0;
  }
  #screen1 .lp-fv-inner {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }
  #screen1 .lp-fv-image {
    width: 100%;
    flex: none;
  }
  #screen1 .lp-fv-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }
  #screen1 .lp-fv-form-card {
    flex: none;
    width: calc(100% - 32px);
    max-width: 400px;
    margin: -20px auto 0;
    position: relative;
    z-index: 2;
    border-radius: 12px;
    padding: 16px;
  }
  #screen1 .lp-fv-cta {
    font-size: 14px;
    padding: 12px;
  }

  /* Section titles */
  #screen1 .lp-results-title,
  #screen1 .lp-comparison-title,
  #screen1 .lp-staff-title,
  #screen1 .lp-safe-title,
  #screen1 .lp-flow-title,
  #screen1 .lp-clients-title,
  #screen1 .lp-interview-title,
  #screen1 .lp-faq-title {
    font-size: 22px;
  }

  /* Section padding */
  #screen1 .lp-section {
    padding: 32px 16px;
  }

  /* Comparison / Staff - switch to SP image */
  #screen1 .lp-comparison-image img[alt="比較表"],
  #screen1 .lp-staff-image img[alt="スタッフ"] {
    max-width: 100%;
  }

  /* Safe trade grid: 2 columns on tablet, 1 on phone */
  #screen1 .lp-safe-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  #screen1 .lp-safe-card {
    padding: 16px;
  }

  /* Result cards SP */
  #screen1 .lp-result-card {
    flex: 0 0 44.7%;
    min-width: 160px;
  }
  #screen1 .lp-result-car-name {
    font-size: 14px;
  }
  #screen1 .lp-result-specs {
    font-size: 12px;
  }
  #screen1 .lp-result-price span {
    font-size: 20px;
  }
  #screen1 .lp-result-img-wrap img.lp-result-sold-tag {
    width: 48px;
    height: 48px;
  }

  /* Flow: vertical stack */
  #screen1 .lp-flow-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #screen1 .lp-flow-image {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Interview: vertical cards on SP */
  #screen1 .lp-interview-card {
    flex-direction: column;
  }
  #screen1 .lp-interview-image {
    width: 100%;
    height: 200px;
  }
  #screen1 .lp-interview-image img {
    border-radius: 16px 16px 0 0;
  }
  #screen1 .lp-interview-footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  /* CTA banner */
  #screen1 .lp-cta-banner h2 {
    font-size: 16px;
  }
  #screen1 .lp-cta-banner-btn {
    padding: 14px 32px;
    font-size: 16px;
  }

  /* Clients ticker */
  #screen1 .lp-clients-ticker {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* FAQ */
  #screen1 .lp-faq-question {
    font-size: 14px;
    padding: 14px 40px 14px 14px;
  }
  #screen1 .lp-faq-answer {
    padding: 0 14px;
    font-size: 13px;
  }
  #screen1 .lp-faq-item.open .lp-faq-answer {
    padding: 12px 14px 16px;
  }

  /* Footer */
  #screen1 .lp-footer {
    padding: 24px 16px;
  }
  #screen1 .lp-footer-links {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  #screen1 .lp-safe-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #screen1 .lp-safe-icon {
    width: 40px;
    height: 40px;
  }
  #screen1 .lp-safe-label {
    font-size: 13px;
  }
  #screen1 .lp-safe-desc {
    font-size: 12px;
  }
  #screen1 .lp-result-card {
    min-width: 150px;
    flex: 0 0 44.7%;
  }
}

/* ===== Screen 1b: グレード＆カラー選択 ===== */
.grade-color-page {
  min-height: 100vh;
  background: #F8FAF8;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}
.grade-color-inner {
  max-width: 520px;
  width: 100%;
}
.gc-car-info {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}
.gc-car-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.gc-car-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.gc-car-year {
  font-size: 14px;
  color: var(--text-secondary);
}
.gc-section {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.gc-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gc-required {
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: #E53935;
  padding: 2px 6px;
  border-radius: 3px;
}
.gc-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #A1A1A1;
  font-size: 11px;
  color: #A1A1A1;
  cursor: help;
}
.gc-select-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gc-select-wrap:hover {
  border-color: var(--green-primary);
}
.gc-select-wrap.selected {
  border-color: var(--green-primary);
  background: #F0FFF4;
}
.gc-select-value {
  font-size: 15px;
  color: #999;
}
.gc-select-wrap.selected .gc-select-value {
  color: var(--text-primary);
  font-weight: 600;
}
/* gc-drive styles removed: drive type now included in grade name */
.gc-color-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -4px 0 12px;
}
.gc-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.gc-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background 0.15s;
}
.gc-color-item:hover {
  background: #F5F5F5;
}
.gc-color-item.selected {
  background: #E8F5E9;
  box-shadow: 0 0 0 2px var(--green-primary);
  border-radius: 10px;
}
.gc-color-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gc-color-other {
  background: conic-gradient(#E53935, #FB8C00, #FDD835, #43A047, #1E88E5, #9C27B0, #E53935);
  opacity: 0.5;
}
.gc-color-item span {
  font-size: 11px;
  color: #666;
  text-align: center;
  line-height: 1.2;
}
.gc-color-item.selected span {
  color: var(--green-dark);
  font-weight: 700;
}
.gc-confirm-btn {
  width: 100%;
  padding: 18px;
  margin-top: 8px;
  border: none;
  border-radius: 100px;
  background: var(--green-primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: opacity 0.2s;
}
.gc-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.gc-trust {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.gc-trust-item {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
/* グレードモーダル */
.gc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gc-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #EEE;
}
.gc-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.gc-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.gc-modal-body {
  overflow-y: auto;
  padding: 8px 0;
}
.gc-grade-option {
  padding: 16px 24px;
  font-size: 15px;
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid #F5F5F5;
  transition: background 0.15s;
}
.gc-grade-option:hover {
  background: #F5F5F5;
}
.gc-grade-option:last-child {
  border-bottom: none;
}
.gc-grade-option.unknown {
  color: var(--text-secondary);
  font-style: italic;
}
/* SP対応 */
@media (max-width: 480px) {
  .gc-color-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .gc-color-circle {
    width: 38px;
    height: 38px;
  }
  .gc-color-item span {
    font-size: 10px;
  }
}

/* AI査定スピナーアニメーション */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
#aiResultArea { animation: fadeInUp 0.6s ease-out; }
.ai-badge { font-weight:600; letter-spacing:0.3px; }
.ai-badge-fallback { background:#FFF3E0; color:#E65100; }
.ai-badge-live { background:#E8F5E9; color:#2E7D32; }
@keyframes spin { to { transform:rotate(360deg); } }


/* ===== Screens block (was inline in body) ===== */
  /* Vehicle Info Step Styles (matching detail-ui-compare Mode B) */
  #screen8 .vi-progress-area {
    padding: 16px; padding-bottom: 0;
  }
  #screen8 .vi-progress-text { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
  #screen8 .vi-progress-track { height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; }
  #screen8 .vi-progress-fill { height: 100%; background: var(--green-primary); border-radius: 3px; transition: width 0.4s ease; }
  #screen8 .vi-progress-helper { font-size:14px; color: var(--text-muted); margin-top: 6px; }

  /* Card-based form UI (dots) */
  #screen8 .vi-dots {
    display: flex; align-items: center; gap: 4px;
    padding: 16px; padding-bottom: 0; flex-wrap: wrap;
  }
  #screen8 .vi-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #e0e0e0; transition: all 0.3s;
  }
  #screen8 .vi-dot.done { background: var(--green-primary); }
  #screen8 .vi-dot.current { background: var(--green-primary); width: 24px; border-radius: 5px; }
  #screen8 .vi-dot.sub { width: 7px; height: 7px; border: 1.5px solid var(--green-primary); background: #fff; }
  #screen8 .vi-dot.sub.done { background: var(--green-primary); }
  #screen8 .vi-dot.sub.current { background: var(--green-primary); width: 18px; border-radius: 4px; }

  #screen8 .vi-card-area { padding: 16px; min-height: 400px; }

  #screen8 .vi-card {
    background: #fff; border: 2px solid var(--green-primary);
    border-radius: 16px; padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0,144,65,0.1);
    animation: viCardIn 0.35s ease;
  }
  #screen8 .vi-card.sub-card { border-color: #81C784; background: #FAFFF7; }
  @keyframes viCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  #screen8 .vi-card-step {
    font-size:14px; font-weight: 700; color: var(--green-primary);
    margin-bottom: 8px; letter-spacing: 0.5px;
  }
  #screen8 .vi-card-question {
    font-size: 18px; font-weight: 700; color: var(--text-primary);
    line-height: 1.5; margin-bottom: 20px;
  }
  #screen8 .vi-card .radio-options { flex-direction: column; }
  #screen8 .vi-card .radio-option {
    min-width: 100%; text-align: left; padding: 16px 20px;
    font-size: 16px; border-radius: 12px;
  }
  #screen8 .vi-card .checkbox-options {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  #screen8 .vi-card .checkbox-option {
    min-width: unset; padding: 14px 12px; font-size: 14px; border-radius: 12px;
  }
  #screen8 .vi-parent-badge {
    display: inline-block; background: var(--green-light);
    color: var(--green-dark); font-size:14px; font-weight: 600;
    padding: 4px 10px; border-radius: 100px; margin-bottom: 12px;
  }
  #screen8 .vi-nav-row { display: flex; gap: 10px; margin-top: 24px; }
  #screen8 .vi-nav-btn {
    flex: 1; padding: 16px; border-radius: 100px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    font-family: inherit; touch-action: manipulation; transition: all 0.15s;
  }
  #screen8 .vi-nav-btn:active { transform: scale(0.97); }
  #screen8 .vi-prev-btn { background: #fff; color: var(--text-secondary); border: 1.5px solid var(--border-color); }
  #screen8 .vi-next-btn { background: var(--green-primary); color: #fff; border: none; }
  #screen8 .vi-next-btn:disabled { background: #ccc; cursor: default; }
  #screen8 .vi-next-btn:not(:disabled):active { background: var(--green-dark); }
  #screen8 .vi-skip-btn {
    display: block; width: 100%; margin-top: 12px;
    background: none; border: none; color: var(--text-muted);
    font-size:14px; cursor: pointer; padding: 8px;
    font-family: inherit; touch-action: manipulation;
  }
  #screen8 .vi-note { font-size:14px; color: var(--text-muted); margin-top: 8px; }

  /* Guide card */
  #screen8 .vi-guide-card {
    background: #FFF8E1; border: 2px solid #FFE082;
    border-radius: 16px; padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(255,193,7,0.15);
    text-align: center; animation: viCardIn 0.35s ease;
  }
  #screen8 .vi-guide-icon { font-size: 48px; margin-bottom: 16px; }
  #screen8 .vi-guide-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; line-height: 1.4; }
  #screen8 .vi-guide-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; white-space: pre-line; margin-bottom: 24px; }

  /* Reassurance card */
  #screen8 .vi-reassurance-card {
    background: #E8F5E9; border: 2px solid #A5D6A7;
    border-radius: 16px; padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0,144,65,0.1);
    text-align: center; animation: viCardIn 0.35s ease;
  }
  #screen8 .vi-reassurance-icon { font-size: 48px; margin-bottom: 12px; }
  #screen8 .vi-reassurance-title { font-size: 18px; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; line-height: 1.4; }
  #screen8 .vi-reassurance-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; white-space: pre-line; margin-bottom: 24px; }
  /* --- Summary screen (motorway style) --- */
  #screen8 .vi-summary-wrap {
    animation: viCardIn 0.35s ease;
  }
  #screen8 .vi-summary-progress {
    text-align: center; padding: 20px 0 16px; border-bottom: 1px solid var(--border-color); margin-bottom: 4px;
  }
  #screen8 .vi-summary-progress-bar {
    width: 100%; height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; margin-bottom: 8px;
  }
  #screen8 .vi-summary-progress-fill {
    height: 100%; background: var(--green-primary); border-radius: 3px; transition: width 0.4s ease;
  }
  #screen8 .vi-summary-progress-text {
    font-size: 14px; color: var(--text-secondary); font-weight: 500;
  }
  #screen8 .vi-summary-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 14px 4px; border-bottom: 1px solid #f0f0f0;
    cursor: pointer; transition: background 0.15s; border-radius: 4px;
  }
  #screen8 .vi-summary-item:hover { background: #f8faf8; }
  #screen8 .vi-summary-item:last-child { border-bottom: none; }
  #screen8 .vi-summary-item.sub-item { padding-left: 28px; }
  #screen8 .vi-summary-label {
    font-size: 14px; color: var(--text-secondary); flex-shrink: 0; min-width: 80px; line-height: 1.5;
  }
  #screen8 .vi-summary-value {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    display: flex; align-items: center; gap: 8px; text-align: right; line-height: 1.5;
  }
  #screen8 .vi-summary-edit-icon {
    width: 28px; height: 28px; border-radius: 50%; background: var(--bg-gray);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  #screen8 .vi-summary-edit-icon svg {
    width: 14px; height: 14px; stroke: var(--text-secondary);
  }
  #screen8 .vi-summary-note {
    font-size: 13px; color: var(--text-muted); text-align: center;
    padding: 16px 0 8px; line-height: 1.6;
  }

/* ===== Phase 4.1: 写真アップロード/送信用 UI 補強 ===== */
@keyframes katix-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
