/* ================================================================
   BSAM V3 - ACCORDION ORDER FORM STYLES (mobile-first)
   ================================================================ */

/* Container */
.acc {
  max-width: 520px;
  margin: 20px auto;
  padding: 0 16px 100px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Intro */
.acc__intro {
  margin-bottom: 18px;
}
.acc__eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: #e8eef5;
  color: #1a3a5c;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 700;
}
.acc__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: #1a3a5c;
}
.acc__sub {
  color: #6b7785;
  font-size: 14px;
  margin: 0;
}

/* Trust strip */
.acc__trust {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 12px;
  background: #e8eef5;
  border-radius: 8px;
}
.acc__trust-item {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #1a3a5c;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.acc__trust-icon {
  font-size: 18px;
}

/* Toggle pills - part type */
.acc__pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.acc__pill {
  flex: 1;
  padding: 16px 12px;
  border: 1.5px solid #d4dde6;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: #6b7785;
  transition: all 0.2s;
  font-size: 14px;
  background: white;
}
.acc__pill input[type="radio"] {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.acc__pill.active {
  border-color: #1a3a5c;
  background: #1a3a5c;
  color: white;
}
.acc__pills.has-error .acc__pill {
  border-color: #c00;
}

/* Sections */
.acc__section {
  background: white;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26,58,92,0.04);
  border: 1px solid #e8eef5;
  transition: all 0.2s;
}
.acc__section.is-open {
  box-shadow: 0 4px 16px rgba(26,58,92,0.08);
  border-color: #1a3a5c;
}
.acc__section.is-done .acc__num {
  background: #1a3a5c;
  color: white;
}
.acc__section.is-done .acc__num::after {
  content: '✓';
}
.acc__section.is-done .acc__num span {
  display: none;
}

/* Section header */
.acc__head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.acc__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8eef5;
  color: #6b7785;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.acc__section.is-open .acc__num {
  background: #1a3a5c;
  color: white;
}
.acc__head-text {
  flex: 1;
  min-width: 0;
}
.acc__head-title {
  font-weight: 700;
  font-size: 15px;
  color: #1a3a5c;
}
.acc__head-summary {
  font-size: 13px;
  color: #6b7785;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc__head-summary:empty {
  display: none;
}
.acc__chevron {
  color: #9aa5b1;
  transition: transform 0.2s;
  font-size: 10px;
  flex-shrink: 0;
}
.acc__section.is-open .acc__chevron {
  transform: rotate(180deg);
}

/* Section body */
.acc__body {
  padding: 4px 16px 18px;
}
.acc__section:not(.is-open) .acc__body {
  display: none;
}

/* Sub-section label inside body */
.acc__sub-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #9aa5b1;
  margin: 14px 0 8px;
}
.acc__sub-label:first-child {
  margin-top: 4px;
}

/* Floating label fields */
.float-field {
  position: relative;
  margin-bottom: 12px;
}
.float-field input,
.float-field select,
.float-field textarea {
  width: 100%;
  padding: 22px 14px 8px;
  border: 1.5px solid #d4dde6;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  color: #1a3a5c;
  transition: border-color 0.2s;
}
.float-field textarea {
  padding-top: 24px;
  resize: vertical;
  min-height: 80px;
}
.float-field input:focus,
.float-field select:focus,
.float-field textarea:focus {
  outline: none;
  border-color: #1a3a5c;
}
.float-field.has-error input,
.float-field.has-error select,
.float-field.has-error textarea {
  border-color: #c00;
}
.float-field label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #8b95a3;
  pointer-events: none;
  transition: all 0.15s;
  background: white;
  padding: 0 4px;
}
.float-field textarea + label {
  top: 22px;
  transform: none;
}
.float-field input:not(:placeholder-shown) + label,
.float-field input:focus + label,
.float-field select:focus + label,
.float-field select:valid + label,
.float-field textarea:not(:placeholder-shown) + label,
.float-field textarea:focus + label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  color: #1a3a5c;
  font-weight: 600;
}
/* Make sure select with selected value floats label too */
.float-field select option[value=""] {
  color: #8b95a3;
}

.float-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.float-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 8px;
}

/* Same-as-billing toggle */
.acc__same-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  background: #f6f8fa;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #1a3a5c;
}
.acc__same-toggle input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #1a3a5c;
}

/* "Next" button inside section body */
.acc__next {
  width: 100%;
  padding: 12px;
  background: #1a3a5c;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  transition: background 0.15s;
}
.acc__next:hover {
  background: #0f2540;
}

/* Sticky submit bar */
.acc__submit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 16px;
  border-top: 1px solid #e1e5eb;
  box-shadow: 0 -4px 12px rgba(26,58,92,0.06);
  z-index: 100;
}
.acc__submit-inner {
  max-width: 520px;
  margin: 0 auto;
}
.acc__submit-btn {
  width: 100%;
  padding: 16px;
  background: #1a3a5c;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  font-family: inherit;
}
.acc__submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.acc__submit-btn:not(:disabled):hover {
  background: #0f2540;
}

/* Inline errors */
.acc-error {
  color: #c00;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  font-weight: 600;
}

/* Desktop refinements */
@media (min-width: 720px) {
  .acc {
    margin: 40px auto 60px;
    padding-bottom: 40px;
  }
  .acc__submit-bar {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 20px 0 0;
  }
  .acc__submit-inner {
    max-width: 520px;
    margin: 0;
  }
}
