/* Clean forms for the Inspire search section */

.panel {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  border: 1px solid rgba(102,126,234,0.15);
  border-radius: 16px;
  padding: 16px;
}

.input-row { display: flex; gap: 12px; align-items: stretch; flex-direction: column; }
.input-text {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 2px solid #e8ebff;
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
}
.btn-primary {
  height: 48px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.upload-area {
  margin-top: 12px;
  background: #fff;
  border: 2px dashed #d8dcff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  height: 120px;
  color: #667eea;
  font-weight: 600;
}
.upload-area.paste-active {
  border-color: #667eea;
  box-shadow: inset 0 0 0 2px rgba(102,126,234,0.16);
  background: linear-gradient(180deg, #eef1ff 0%, #f7faff 100%);
  transition: border-color .2s ease;
}

/* Multiline hint inside upload area */
.upload-area .upload-hint { text-align:center; line-height:1.25; }
.upload-area .upload-hint div:first-child { font-weight:800; }

/* Inline Upload & Print overlay behavior */
#section-upload .upload-area { position: relative; overflow: hidden; height: 260px; }
#section-upload .up-preview.inline-overlay { position: absolute; inset: 0; display:flex; align-items:center; justify-content:center; background:#fff; border-radius:10px; z-index: 1; }
#section-upload .up-preview.inline-overlay img { max-width:100%; max-height:100%; border:1px solid #eee; border-radius:10px; }

/* Upload preview clear button */
#section-upload .upl-clear {
  position:absolute; top:12px; right:12px; z-index:2; background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:4px 8px; font-weight:800; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.06);
}

/* Enhance on larger screens */
@media (min-width: 768px) {
  .input-row { flex-direction: row; align-items: center; }
  .btn-primary { width: auto; }
}

@media (max-width: 768px) {
  .upload-area { height: 100px; font-size: .95rem; }
}
