.custom-order-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.custom-order-side {
  display: grid;
  gap: 18px;
}

.custom-info-box {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.custom-info-box--dark {
  background: linear-gradient(135deg, #18202a 0%, #0f141b 100%);
  color: #f3e9df;
}

.custom-info-box--accent {
  background: #d78a57;
  color: #fff;
}

.custom-info-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
}

.custom-info-title { font-size: 1.15rem; }
.custom-info-toggle-icon { font-size: 1.2rem; transition: transform .2s ease; }
.custom-info-box.is-collapsed .custom-info-toggle-icon { transform: rotate(180deg); }

.custom-info-content {
  padding: 0 22px 20px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.custom-info-content p:first-child,
.custom-checklist { margin-top: 0; }
.custom-checklist { padding-left: 18px; margin-bottom: 0; }
.custom-checklist li + li { margin-top: 8px; }

.custom-form-wrapper {
  padding: 28px;
}

.custom-form-intro h2 {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 2rem;
}

.custom-form-intro p {
  margin: 0 0 10px;
  font-family: Arial, Helvetica, sans-serif;
  color: #5f5449;
}

.required-note {
  font-size: .88rem;
}

.required-mark { color: var(--copper); font-weight: 700; }

.custom-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: 18px;
}

.form-field--full { grid-column: 1 / -1; }

.file-input-hidden { display: none; }

.file-picker-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.file-picker-trigger {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.file-picker-summary {
  font-family: Arial, Helvetica, sans-serif;
  color: #62564c;
}

.attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
  font-family: Arial, Helvetica, sans-serif;
  color: #5f5449;
}

.attachment-chip__remove {
  border: 0;
  background: transparent;
  color: #8e431b;
  font-weight: 700;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin: 18px 0 12px;
  font-family: Arial, Helvetica, sans-serif;
  color: #6e5f54;
}

.turnstile-wrap {
  margin-top: 4px;
  overflow-x: auto;
}

.custom-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .custom-order-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .custom-form-wrapper {
    padding: 22px;
  }

  .custom-form-actions {
    align-items: stretch;
  }

  .custom-info-box.is-collapsed .custom-info-content {
    display: none;
  }
}


/* Desktop keeps these info boxes open, so the collapse indicators are hidden there.
   Mobile still shows them because the boxes are actually collapsible. */
@media (min-width: 601px) {
  .custom-info-toggle-icon {
    display: none;
  }
}
