/* -------------------------------------------------------
   GLOBAL WRAPPER + PAGE LAYOUT
------------------------------------------------------- */

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111827;
}

.pageWrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 16px;
}

.mainContainer {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 20px;
}

/* -------------------------------------------------------
   TITLES & HEADERS
------------------------------------------------------- */

.sectionHeader {
  text-align: center;
  margin-bottom: 40px;
}

.sectionTitle,
.optionsTitle,
.summaryTitle {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px;
}

.subSectionTitle {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* -------------------------------------------------------
   FORM ELEMENTS (SELECTS, INPUTS, QUANTITY BOX)
------------------------------------------------------- */

.inputGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.inputLabel {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.selectWrapper {
  position: relative;
  width: 100%;
}

.selectField {
  width: 100%;
  padding: 10px 36px 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.selectWrapper::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  pointer-events: none;
  color: #6b7280;
}

.inputField {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
  outline: none;
}

.quantityWrapper {
  display: flex;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
}

.quantityLabel {
  padding: 10px 14px;
  font-size: 14px;
  background: #f3f4f6;
  border-right: 1px solid #d1d5db;
}

/* -------------------------------------------------------
   VOLTAGE / JOINT SELECTION
------------------------------------------------------- */

.controlRow {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.jointSection {
  margin-top: 30px;
}

.jointHeader {
  text-align: center;
  margin-bottom: 20px;
}

.jointSubtitle {
  font-size: 13px;
  color: #6b7280;
}

.jointList {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.jointOption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: 18px;
  background: #f3f4f6;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
}

.jointOption:hover {
  background: #e5e7eb;
}

.jointOption.isActive {
  background: #e0ecff;
  border-color: #93c5fd;
}

.jointRadio {
  display: none;
}

.jointGraphic {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cableLine {
  width: 80px;
  height: 4px;
  background: #1e3a8a;
  border-radius: 4px;
}

.cableLineDouble {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cableLineDouble div {
  height: 4px;
  background: #1e3a8a;
  border-radius: 4px;
}

.jointBodyWrapper {
  padding: 8px 20px;
  background: #cbd5e1;
  border-radius: 50px;
}

.jointBody {
  width: 90px;
  height: 18px;
  background: #64748b;
  border-radius: 6px;
}

.jointLabel {
  font-size: 16px;
  font-weight: 500;
}

/* -------------------------------------------------------
   CABLE SELECTION MATRIX
------------------------------------------------------- */

.cableMatrix {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cableRow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phaseBadge {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e11d29;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 600;
  font-size: 17px;
}

.cableSelectGroup {
  display: flex;
  gap: 20px;
}

/* -------------------------------------------------------
   OPTIONS PAGE
------------------------------------------------------- */

.optionsHelperText {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 24px;
}

.optionsList {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.optionRow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.optionCheckbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #9ca3af;
  appearance: none;
  cursor: pointer;
}

.optionCheckbox:checked {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: inset 0 0 0 2px white;
}

.infoButton {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #9ca3af;
  background: transparent;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

/* -------------------------------------------------------
   SUMMARY PAGE
------------------------------------------------------- */

.summarySectionSubtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 40px;
}

.summaryBlock {
  margin-bottom: 32px;
}

.summaryBlockHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summaryBlockTitle {
  font-size: 20px;
  font-weight: 600;
}

.summaryEditLink {
  font-size: 14px;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}

.summaryBlockBody {
  margin-top: 16px;
}

.summaryRow {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.summaryLabel {
  color: #6b7280;
}

.summaryCableRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.summaryPhaseBadge {
  width: 34px;
  height: 34px;
  background: #e11d29;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.summaryOptionsList {
  padding-left: 20px;
}

.summaryEmptyText {
  color: #6b7280;
}

/* -------------------------------------------------------
   CONTACT FORM PAGE
------------------------------------------------------- */

.contactIntro {
  text-align: center;
  font-size: 15px;
  color: #111827;
  margin-bottom: 30px;
}

.contactFields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contactInput {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.contactPrivacy {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin: 22px 0;
}

/* -------------------------------------------------------
   BUTTONS
------------------------------------------------------- */

.formActions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.primaryButton {
  padding: 12px 26px;
  background: #1e3a8a;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.primaryButton:hover {
  background: #1e40af;
}

.primaryButtonArrow {
  font-size: 16px;
}


/* inline product summary panel */

.productSummary {
  border-radius: 8px;
  border: 1px solid #c4d0ff;
  background: #ffffff;
  max-width: 340px;
  font-size: 13px;
  overflow: hidden;
  position: fixed;
    bottom: 0;
    right: 0;
}

.productSummaryHeader {
  width: 100%;
  border: none;
  outline: none;
  background: #e2ebff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.productSummaryTitle {
  margin-right: 8px;
}

.productSummaryChevron {
  font-size: 11px;
  transition: transform 0.18s ease;
}

.productSummaryBody {
  padding: 10px 12px 12px;
  background: #f3f4ff;
}

.productSummaryCard {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.productSummaryCard:last-child {
  margin-bottom: 0;
}

.productSummaryCardTitle {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.productSummaryTextLine {
  font-size: 12px;
  color: #111827;
  margin-bottom: 2px;
}

.productSummaryJointVisual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.productSummaryPhase {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productSummaryJointGraphic {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 6px;
}

.productSummaryJointCable {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: #1e3a8a;
}

.productSummaryJointBodyWrapper {
  padding: 6px 12px;
  border-radius: 999px;
  background: #e5ecff;
}

.productSummaryJointBody {
  width: 68px;
  height: 14px;
  border-radius: 6px;
  background: #64748b;
}

.productSummaryCableRow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.productSummaryCableIcon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #4b5563;
  box-shadow: inset 0 0 0 3px #e5e7eb;
}

.productSummaryCableText {
  font-size: 12px;
  color: #111827;
}

/* collapsed state */

.productSummary.isCollapsed .productSummaryBody {
  display: none;
}

.productSummary.isCollapsed .productSummaryChevron {
  transform: rotate(-90deg);
}
