/* =========================================================================
   The CraftingTable — Custom order styles
   ========================================================================= */

.custom-hero {
  background: linear-gradient(180deg, var(--cream), var(--bg));
  padding: 60px 0 40px;
}

.custom-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.custom-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 14px 0 16px;
}

.custom-hero h1 .hl {
  color: var(--primary);
}

.custom-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 480px;
}

.custom-hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--cream), var(--sand));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.custom-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 6%;
}

/* ------------------------------- Form ---------------------------------- */
.custom-wrap {
  padding: 56px 24px 100px;
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.custom-upload h3,
.custom-details h3 {
  font-size: 20px;
  margin-bottom: 18px;
}

/* ----------------------------- Dropzone -------------------------------- */
.dropzone {
  display: block;
  border: 2px dashed var(--earth);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
  min-height: 320px;
}

.dropzone:hover {
  border-color: var(--primary);
  background: var(--cream);
}

.dropzone.dragover {
  border-color: var(--primary);
  background: var(--cream);
  transform: scale(1.01);
}

.dropzone.has-file {
  border-style: solid;
  border-color: var(--accent);
}

.dropzone__empty {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  pointer-events: none;
}

.dropzone__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--cream);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: var(--primary);
}

.dropzone__icon svg {
  width: 30px;
  height: 30px;
}

.dropzone__empty strong {
  font-size: 17px;
}

.dropzone__empty span {
  font-size: 14px;
  color: var(--muted);
}

.dropzone__preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dropzone__preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, var(--cream), var(--sand));
  image-rendering: pixelated;
  padding: 12px;
}

.dropzone__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.dropzone__file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone__remove {
  flex: none;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: #c0392b;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.dropzone__remove:hover {
  border-color: #c0392b;
}

.field-err {
  color: #c0392b;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}

.field-err.show {
  display: block;
}

.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

/* ----------------------------- Success --------------------------------- */
.custom-success {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  box-shadow: var(--shadow);
}

.custom-success__check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8eaed;
  color: #fff;
  font-size: 38px;
  display: grid;
  place-items: center;
}

.custom-success h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.custom-success p {
  color: var(--muted);
  margin-bottom: 26px;
}

.custom-success__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .custom-hero__inner,
  .custom-grid {
    grid-template-columns: 1fr;
  }
  .custom-hero__media {
    display: none;
  }
}
