/* ===========================================
   Valley Works 査定フォーム モダンリデザイン
   satei-modern.css
   =========================================== */

/* --- Reset & Base --- */
#container, #contents {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif !important;
  color: #333;
  line-height: 1.7;
}

#contents {
  max-width: 800px;
  margin: 0 auto !important;
  padding: 0 16px;
}

/* --- Breadcrumb --- */
#bread-crumb-list {
  padding: 12px 0 !important;
  margin: 0 !important;
  font-size: 13px;
  color: #888;
  list-style: none !important;
}
#bread-crumb-list ol {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
#bread-crumb-list li {
  padding: 0 !important;
  background: none !important;
}
#bread-crumb-list a {
  color: #888 !important;
  text-decoration: none !important;
}

/* --- Hero Section (h2 + intro) --- */
div#contents h2.text {
  background: none !important;
  border: none !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-align: center !important;
  padding: 24px 0 8px !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
}

/* --- Trust Badges --- */
.satei-trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}
.satei-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0f7f0;
  border: 1px solid #c8e6c9;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  white-space: nowrap;
}
.satei-trust-badge .badge-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.satei-trust-badge.highlight {
  background: #fff3e0;
  border-color: #ffe0b2;
  color: #e65100;
}

/* --- Intro text styling --- */
#contents > p {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
}

/* --- Top image --- */
#contents .img-responsive,
#contents img[alt="ロードバイク、自転車の査定依頼フォーム"] {
  border-radius: 12px;
  margin-bottom: 20px;
}

/* --- Steps Indicator --- */
.satei-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 24px 0 32px;
  padding: 0;
}
.satei-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 160px;
}
.satei-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
}
.satei-step.active .satei-step-num {
  background: #C0392B;
  color: #fff;
}
.satei-step.done .satei-step-num {
  background: #2e7d32;
  color: #fff;
}
.satei-step-label {
  font-size: 12px;
  color: #888;
  text-align: center;
  font-weight: 500;
}
.satei-step.active .satei-step-label {
  color: #C0392B;
  font-weight: 700;
}
.satei-step.done .satei-step-label {
  color: #2e7d32;
}
.satei-step-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 -8px;
  align-self: flex-start;
  margin-top: 18px;
}
.satei-step-line.done {
  background: #2e7d32;
}

/* --- Accordion Panels (Products) --- */
.panel-group {
  border: none !important;
  margin-bottom: 0 !important;
}
.panel.panel-default {
  border: 1px solid #e8e8e8 !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  overflow: hidden;
}
.panel-default .panel-heading {
  background: #fff !important;
  border-bottom: none !important;
  padding: 0 !important;
  border-radius: 12px !important;
}
div#contents .panel-default h4.panel-title,
div#contents h4.panel-title {
  background: none !important;
  background-color: transparent !important;
  color: #333 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  border: none !important;
}
.accordion-toggle {
  text-decoration: none !important;
  display: block;
}
.accordion-toggle .fa {
  color: #C0392B !important;
  font-size: 18px !important;
  transition: transform 0.3s;
}
.accordion-toggle.collapsed .fa {
  transform: rotate(180deg);
}

/* Panel body */
.panel-body {
  padding: 20px !important;
  background: #fafafa;
}
.panel-body .container {
  width: 100% !important;
  padding: 0 !important;
}

/* --- Tabs (Category selection) --- */
.nav-tabs {
  border-bottom: 2px solid #eee !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}
.nav-tabs > li {
  margin-bottom: -2px !important;
  float: none !important;
  flex: 1 !important;
  min-width: 0 !important;
}
.nav-tabs > li > a {
  text-align: center !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  color: #888 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 12px 6px !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
  background: transparent !important;
}
.nav-tabs > li > a:hover {
  background: #f5f5f5 !important;
  border-bottom-color: #ddd !important;
  color: #555 !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  background: transparent !important;
  background-color: transparent !important;
  color: #C0392B !important;
  border: none !important;
  border-bottom: 3px solid #C0392B !important;
  font-weight: 700 !important;
}

/* --- Tab Content --- */
.tab-pane {
  padding-top: 28px !important;
}
.tab-title {
  color: #C0392B !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 24px !important;
  padding-bottom: 12px;
  border-bottom: 1px dashed #eee;
}

/* --- Form Fields --- */
.form-control {
  border: 1.5px solid #ddd !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  color: #333 !important;
  background: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  height: auto !important;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: #C0392B !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1) !important;
  outline: none !important;
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 36px !important;
}
input[type=text] {
  height: auto !important;
}
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* --- Labels --- */
.mylabel {
  color: #C0392B !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  padding-left: 4px !important;
}
.mylabel.sub {
  color: #999 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  margin-bottom: 16px !important;
}
.input-label {
  color: #555 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}
label {
  font-weight: 500 !important;
  color: #555 !important;
  font-size: 14px !important;
}

/* --- Row spacing --- */
.tab-pane .row {
  margin-bottom: 20px !important;
}
.row {
  margin-left: -8px !important;
  margin-right: -8px !important;
}
.row > [class*="col-"] {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* --- Category rows (accessories) --- */
.category-row {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px 12px 0 !important;
  margin-bottom: 12px !important;
}

/* --- Checkboxes --- */
.check-label {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 14px !important;
  background: #fff !important;
  border: 1.5px solid #ddd !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
}
.check-label:hover {
  border-color: #C0392B !important;
  background: #fff5f5 !important;
  color: #C0392B !important;
}
input[type=checkbox] {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  accent-color: #C0392B;
}
input[type=checkbox]:checked + .check-label,
.check-label:has(input:checked) {
  border-color: #C0392B !important;
  background: #fff5f5 !important;
}

/* --- File upload --- */
.picture-upload {
  display: block;
  margin-bottom: 12px !important;
  padding: 10px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.picture-upload:hover {
  border-color: #C0392B;
}

/* --- Images section hint --- */
.images-row + span,
span[style*="color:#C0392B"] {
  font-size: 13px !important;
}

/* --- Details Section (bottom) --- */
.details-wrap {
  margin-top: 40px !important;
  border-top: none !important;
  padding-top: 0 !important;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8e8 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 28px 24px !important;
}
.detail-heading {
  font-size: 16px !important;
  color: #333 !important;
  font-weight: 600 !important;
  margin: 20px 0 12px !important;
}
.detail-heading .required {
  font-size: 11px !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  vertical-align: middle;
  margin-left: 8px;
}
.required {
  background: #C0392B !important;
  color: #fff !important;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* --- Submit Section --- */
#submit-wrapper {
  padding: 40px 0 20px !important;
  text-align: center !important;
}
.btn.btn-primary.btn-lg,
#btn-confirm {
  background: linear-gradient(135deg, #C0392B 0%, #e74c3c 100%) !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 18px 60px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(192,57,43,0.3) !important;
  transition: all 0.3s !important;
  letter-spacing: 0.5px;
  display: inline-block;
  width: auto;
  max-width: 100%;
}
.btn.btn-primary.btn-lg:hover,
#btn-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(192,57,43,0.4) !important;
}
.btn.btn-primary.btn-lg:active,
#btn-confirm:active {
  transform: translateY(0) !important;
}
.btn-reset {
  display: inline-block !important;
  margin-top: 16px !important;
  padding: 8px 24px !important;
  background: transparent !important;
  border: 1px solid #ccc !important;
  border-radius: 100px !important;
  color: #888 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}
.btn-reset:hover {
  border-color: #999 !important;
  color: #555 !important;
}

/* --- Frame Part Image --- */
img[alt=""].img-responsive {
  border-radius: 8px;
  margin: 16px 0;
}

/* --- Other make input --- */
.other-make {
  margin-top: 0 !important;
}

/* --- Header row for frame-part tab --- */
.header-row {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px 0 !important;
  margin-bottom: 16px !important;
  font-weight: 600;
  font-size: 13px;
  color: #666;
}

/* --- Vertical align helper --- */
.vertical-align {
  font-weight: 600;
  color: #C0392B;
  font-size: 14px;
}

/* --- Popover --- */
.popover {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
  border: 1px solid #eee !important;
}
.popover-content {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #555 !important;
}

/* --- Rental checkbox section --- */
.details-wrap > br + br + * {
  font-size: 14px;
}

/* --- CTA supplement text --- */
.satei-cta-supplement {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #888;
}

/* --- Bottom safety message --- */
.satei-safety-msg {
  text-align: center;
  padding: 20px;
  margin: 16px 0 0;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #eee;
}
.satei-safety-msg strong {
  color: #555;
}

/* ============================
   RESPONSIVE - Mobile First
   ============================ */

@media (max-width: 768px) {
  #contents {
    padding: 0 12px;
  }

  div#contents h2.text {
    font-size: 18px !important;
    padding: 16px 0 4px !important;
  }

  .satei-trust-badges {
    gap: 8px;
    margin: 16px 0 20px;
  }
  .satei-trust-badge {
    padding: 6px 12px;
    font-size: 12px;
  }

  .satei-steps {
    margin: 16px 0 24px;
  }
  .satei-step-num {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .satei-step-label {
    font-size: 10px;
  }
  .satei-step-line {
    margin-top: 15px;
  }

  .panel.panel-default {
    border-radius: 10px !important;
    margin-bottom: 12px !important;
  }

  div#contents .panel-default h4.panel-title,
  div#contents h4.panel-title {
    font-size: 15px !important;
    padding: 14px 16px !important;
  }

  .panel-body {
    padding: 12px !important;
  }

  .nav-tabs > li > a {
    font-size: 11px !important;
    padding: 10px 4px !important;
  }

  .form-control {
    font-size: 16px !important; /* Prevent iOS zoom */
  }

  .tab-pane .row {
    margin-bottom: 16px !important;
  }

  .category-row {
    padding: 12px 8px 0 !important;
  }

  .details-wrap {
    padding: 20px 16px !important;
    border-radius: 10px;
  }

  .btn.btn-primary.btn-lg,
  #btn-confirm {
    padding: 16px 40px !important;
    font-size: 16px !important;
    width: 100% !important;
    max-width: 320px;
  }

  .other-make {
    margin-top: 10px !important;
  }

  /* Stack frame-part grid on mobile */
  .vertical-align {
    height: auto;
    line-height: 1.4;
    margin-bottom: 4px;
    font-size: 13px;
  }

  .header-row {
    display: none !important;
  }

  /* Better touch targets for tabs */
  .nav-tabs {
    gap: 2px !important;
  }

  #submit-wrapper {
    padding: 32px 0 16px !important;
  }
}

@media (max-width: 480px) {
  .satei-trust-badges {
    flex-direction: row;
    justify-content: center;
    gap: 6px;
  }
  .satei-trust-badge {
    padding: 5px 8px;
    font-size: 11px;
    gap: 3px;
  }
  .satei-trust-badge .badge-icon {
    font-size: 13px;
  }

  .nav-tabs {
    flex-wrap: wrap !important;
  }
  .nav-tabs > li {
    flex: 0 0 calc(33.33% - 4px) !important;
  }

  div#contents h2.text {
    font-size: 16px !important;
  }
}

/* --- Animation --- */
.panel-collapse.collapsing {
  transition: height 0.25s ease !important;
}

/* --- Fix for validation icons --- */
.form-control-feedback {
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%);
}
.has-feedback .form-control {
  padding-right: 40px !important;
}
.has-error .form-control {
  border-color: #e74c3c !important;
}
.has-success .form-control {
  border-color: #2ecc71 !important;
}

/* --- Print --- */
@media print {
  .satei-trust-badges,
  .satei-steps,
  .btn-reset {
    display: none !important;
  }
}
