/*
 * met_helpdesk_report – Dedicated Warranty Service Form (ticket 220)
 * Standalone page, iframe friendly (same pattern as return_form.css)
 */
:root {
  --wf-yellow: #ffcc00;
  --wf-border: #d9d9d9;
  --wf-text: #0b1526;
  --wf-muted: #6b7280;
  --wf-note: #fff7d6;
  --wf-note-border: #e8bf00;
  --wf-red: #e11d48;
}
* { box-sizing: border-box; }
.wf-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 28px 40px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--wf-text);
  background: #f4f6f8;
}
.wf-card {
  background: #fff;
  border: 1px solid var(--wf-border);
  border-radius: 8px;
  box-shadow: 0 2px 7px rgba(0,0,0,0.12);
  padding: 24px 24px 26px;
  margin-bottom: 22px;
}
.wf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wf-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.wf-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; }
.wf-page label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.wf-required { color: var(--wf-red); }
.wf-page input, .wf-page select, .wf-page textarea {
  width: 100%;
  height: 38px;
  border: 1px solid var(--wf-border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 15px;
  background: #fff;
}
.wf-page textarea { height: 90px; resize: vertical; }
.wf-page input:focus, .wf-page select:focus, .wf-page textarea:focus {
  outline: 2px solid #ffd642;
  border-color: #e8bf00;
}
.wf-input-error { border-color: var(--wf-red) !important; background: #fff1f2 !important; }
.wf-row { margin-bottom: 22px; }
.wf-radio-line { display: flex; align-items: center; gap: 26px; margin-top: 4px; font-size: 15px; }
.wf-radio-line label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; text-transform: none; font-weight: 400; margin: 0; cursor: pointer; }
.wf-note-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--wf-note);
  border: 1px solid var(--wf-note-border);
  border-left: 6px solid var(--wf-note-border);
  border-radius: 7px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.wf-note-title { font-weight: 800; margin-bottom: 4px; }
.wf-note-text { font-size: 14px; line-height: 1.35; }
.wf-section-header {
  font-size: 18px; font-weight: 800;
  margin: 6px 0 18px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e5e7eb;
}
.wf-caption { color: var(--wf-muted); font-size: 12px; line-height: 1.35; margin-top: 8px; }
.wf-badge {
  display: inline-block;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #075985;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 800;
  margin-left: 8px;
  text-transform: none;
}
.wf-btn {
  border: none;
  background: var(--wf-yellow);
  color: #000;
  padding: 12px 26px;
  font-weight: 900;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.wf-btn:hover { filter: brightness(0.96); }
.wf-btn--small { padding: 9px 18px; font-size: 13px; }
.wf-alert {
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #991b1b;
  border-radius: 7px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.wf-alert ul { margin: 6px 0 0 18px; padding: 0; }

/* Contact lookup */
.wf-lookup-card {
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 22px;
}
.wf-lookup-row { display: grid; grid-template-columns: 1fr 1fr 190px; gap: 14px; align-items: end; }
.wf-partner-result {
  margin-top: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 14px;
}
.wf-partner-name { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.wf-partner-detail { font-size: 14px; color: #334155; }
.wf-partner-actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.wf-msg { border-radius: 6px; padding: 10px 12px; font-size: 14px; margin-top: 12px; }
.wf-msg--ok { color: #166534; background: #dcfce7; border: 1px solid #86efac; }
.wf-msg--warn { color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; }
.wf-msg--info { color: #1e40af; background: #dbeafe; border: 1px solid #93c5fd; }

/* Order lookup */
.wf-order-result {
  margin-top: 16px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.wf-order-result-header {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #eef2f7;
  padding: 12px 14px;
  font-size: 14px;
}
.wf-order-lines { width: 100%; border-collapse: collapse; }
.wf-order-lines th, .wf-order-lines td {
  border-top: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}
.wf-order-lines th { background: #f8fafc; font-weight: 800; text-transform: uppercase; font-size: 11px; }
.wf-order-lines tr.wf-line-selected { background: #fffbeb; }
.wf-page input.wf-select-product {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  transform: scale(1.25);
  cursor: pointer;
}

/* Serial number example */
.wf-serial-help {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}
.wf-example-photo {
  border: 2px dashed #a1a1aa;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  padding: 14px;
}
.wf-example-title { font-weight: 800; margin-bottom: 10px; font-size: 14px; }
.wf-serial-plate {
  border: 1px solid #7c7c7c;
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.wf-plate-brand { font-weight: 900; font-size: 17px; margin-bottom: 9px; }
.wf-plate-line {
  display: flex; justify-content: space-between;
  border-top: 1px solid #e5e7eb;
  padding: 6px 0;
  font-size: 13px;
}
.wf-plate-line strong { font-weight: 800; }
.wf-plate-line.wf-plate-highlight {
  outline: 3px solid #ef4444;
  outline-offset: 2px;
  border-radius: 3px;
  background: #fff1f2;
}
.wf-removed-box {
  border: 1px dashed #ef4444;
  background: #fff1f2;
  color: #991b1b;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 10px;
}
.wf-footer-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 26px;
}
.wf-file-name { font-size: 13px; color: #334155; margin-top: 6px; }
.wf-hidden { display: none !important; }

@media (max-width: 900px) {
  .wf-grid-2, .wf-grid-3, .wf-grid-4, .wf-serial-help, .wf-lookup-row { grid-template-columns: 1fr; }
}

/* THOR WARRANTY V1.7 – SKU autocomplete */
.wf-sku-combobox { position: relative; min-width: 0; }
.wf-page .wf-model-id-select { display: none !important; }
.wf-page input.wf-sku-search { width: 100%; min-width: 0; height: 44px; }
.wf-page input.wf-sku-search:disabled { background: #f3f4f6; cursor: not-allowed; }
.wf-sku-suggestions { border: 1px solid #d1d5db; border-radius: 7px; background: #fff; margin-top: 5px;
  max-height: 260px; overflow-y: auto; box-shadow: 0 6px 18px rgba(17,24,39,.12); position: relative; z-index: 12; }
.wf-page .wf-sku-option { display: block; text-align: left; width: 100%; border: 0; border-bottom: 1px solid #f1f2f4;
  border-radius: 0; background: #fff; padding: 11px 13px; color: #17212e; font-size: 14px; cursor: pointer; height: auto; }
.wf-page .wf-sku-option:hover, .wf-page .wf-sku-option.wf-sku-option--active { background: #fff5cf; }
.wf-sku-status { color: #64748b; font-size: 12px; line-height: 1.35; padding-top: 6px; min-height: 20px; }
.wf-sku-status.wf-sku-status--error { color: #b91c1c; }

/* THOR WARRANTY V1.8 – browse more eligible appliance SKUs */
.wf-page .wf-sku-more { display:block; width:100%; text-align:center; padding:11px;
  background:#fff8dd; color:#17212e; font-size:13px; font-weight:600;
  border:0; border-top:1px solid #e5e7eb; cursor:pointer; }
.wf-page .wf-sku-more:hover, .wf-page .wf-sku-more:focus { background:#ffedaa; }
