/* --- MAGNETS: make layout + title behave like WIRES --- */

/* Use the same outer wrap behavior as wiresWrap */
.magWrap{
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 8px 30px;
}

/* If your page has a title/subtitle above the grid, style them like wires */
.magTitle,
#magTitle,
h1.magTitle,
h2.magTitle{
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.magSub,
#magSub,
.magSubtitle{
  opacity: .75;
  font-size: 15px;
  margin: 0 0 12px 0;
}

/* Create a single ?wiresCard-like? container around the whole magnets UI */
.magCard{
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  width: 100%;
  max-width: 1400px;
}

/* Optional header INSIDE the card (if you have a header div) */
.magHeader{
  padding: 10px 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Make the grid padding match wires */
.magGrid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  padding: 18px;          /* key: wires has padding on the grid */
  align-items: start;
}

@media (max-width: 920px){
  .magGrid{ grid-template-columns: 1fr; }
}

/* Match wires: form column with subtle divider */
.magForm{
  padding: 10px 12px;
  border-left: 1px solid rgba(0,0,0,.06);
}

@media (max-width: 920px){
  .magForm{ border-left: none; padding: 0; }
}

/* If your right column is using .magCard as a separate card right now,
   this makes it look like the wires right column (no extra ?double card? feel) */
.magGrid > .magCard{
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* Left preview placeholder (if you use it) */
#magPlaceholder{
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,.55);
  font-size: 15px;
}

/* Form rows - INLINE layout like blank material */
.form-group{
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  column-gap: 12px;
  margin-bottom: 14px;
}

/* Label style like wires: uppercase, small, spaced */
.form-group label{
  margin: 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .75;
  font-weight: 400;
}

/* Small text under inputs should span full width */
.form-group small {
  grid-column: 2 / 3;
  margin-top: -10px;
}

/* Inputs (match wires sizing/rounding) */
.form-control{
  width: 250px;
  max-width: 250px;
  box-sizing: border-box;
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 17px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus{
  outline: none;
  border-color: rgba(0,0,0,0.25);
  box-shadow: 0 0 0 3px rgba(200,30,30,.10);
}

@media (max-width: 520px){
  .form-control{ width: 100%; max-width: 100%; }
}

/* Price box (match wires "highlight block") */
.price-box{
  background: linear-gradient(180deg, #fafafa, #f3f3f3);
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  width: 250px;
  max-width: 250px;
  box-sizing: border-box;
}

/* Upload area - full width section like polybag */
.magUploadArea{
  margin: 24px 0 20px;
}

.magUploadLabel{
  display: block;
  margin: 0 0 12px 0;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .75;
  font-weight: 600;
}

/* Dropzone area - neutral like wires; keep dashed affordance */
#dzMagnet{
  border: 2px dashed rgba(0,0,0,.20);
  background: #fff;
  border-radius: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  transition: border-color .15s ease, background-color .15s ease;
  width: 100%;
}

#dzMagnet:hover{
  border-color: rgba(0,0,0,.35);
  background: rgba(0,0,0,.02);
}

.dz-message{
  color: rgba(0,0,0,.55);
  font-size: 14px;
  padding: 12px;
  text-align: center;
}

/* Main action button (match wires button) */
#magUploadBtn{
  background: #c81e1e;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 12px;
  font-size: 15px;
  text-transform: uppercase;
  transition: filter .15s ease;
}

#magUploadBtn:hover{
  filter: brightness(.95);
}

/* Disabled pattern */
#magUploadBtn:disabled{
  background: #d7d7d7;
  color: #777;
  cursor: not-allowed;
  filter: none;
}

/* Mobile stacking already handled above, but keep your old breakpoint too */
@media (max-width: 768px){
  .magGrid{ grid-template-columns: 1fr; }
}

/* Mobile: stack vertically */
@media (max-width: 520px){
  .form-group{
    grid-template-columns: 1fr;
  }
  .form-group small {
    grid-column: 1 / 2;
  }
}