/* ============================================================
   RFQ PAGE
   ============================================================ */
.rfq-page { padding: 0 0 90px; }

.rfq-banner { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.rfq-banner-bg { position: absolute; inset: 0; background: radial-gradient(90% 130% at 85% 5%, rgba(189,138,79,0.16), transparent 58%), linear-gradient(116deg, var(--bg) 46%, #201b13 100%); }
.rfq-banner .wrap { position: relative; padding: 46px 40px 40px; }
.rfq-banner .crumb { font-size: 12px; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 18px; display: flex; gap: 9px; }
.rfq-banner .crumb a:hover { color: var(--text-2); }
.rfq-banner .crumb b { color: var(--text-2); font-weight: 400; }
.rfq-banner h1 { font-family: var(--serif); font-weight: 500; font-size: 50px; line-height: 1; color: var(--text); }
.rfq-banner p { font-size: 15px; color: var(--text-dim); margin-top: 13px; max-width: 540px; line-height: 1.6; }

.rfq-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; padding-top: 36px; align-items: start; }

/* draft list */
.draft-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.draft-item:first-child { border-top: none; padding-top: 4px; }
.draft-item .sw { width: 58px; height: 58px; border-radius: 5px; overflow: hidden; position: relative; flex: none; border: 1px solid var(--line); }
.draft-item .sw .swatch { position: absolute; inset: 0; }
.draft-item .d-body { flex: 1; min-width: 0; }
.draft-item .d-name { font-family: var(--serif); font-size: 18px; color: var(--text); font-weight: 600; }
.draft-item .d-mill { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); margin: 4px 0; }
.draft-item .d-comp { font-size: 12.5px; color: var(--text-dim); }
.draft-item .qty { display: flex; align-items: center; gap: 8px; }
.draft-item .qty label { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.draft-item .qty input { width: 78px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; color: var(--text); font-family: var(--sans); font-size: 13px; outline: none; text-align: right; }
.draft-item .qty input:focus { border-color: var(--line-strong); }
.draft-item .qty .unit { font-size: 12px; color: var(--text-dim); }
.draft-item .rm { width: 32px; height: 32px; border-radius: 5px; display: grid; place-items: center; background: none; border: 1px solid var(--line); color: var(--text-dim); transition: all .18s; flex: none; }
.draft-item .rm:hover { border-color: #8a4a3a; color: #d8a07a; }
.draft-item .rm svg { width: 15px; height: 15px; }

.draft-empty { text-align: center; padding: 40px 20px; }
.draft-empty svg { width: 42px; height: 42px; color: var(--text-faint); margin: 0 auto 18px; }
.draft-empty h4 { font-family: var(--serif); font-size: 22px; color: var(--text-2); margin-bottom: 8px; }
.draft-empty p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 20px; }

/* form */
.form-card { position: sticky; top: 90px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; margin-bottom: 9px; }
.field input[type=text], .field input[type=date], .field input[type=number], .field textarea, .field select {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 12px 14px; color: var(--text); font-family: var(--sans); font-size: 14px; font-weight: 300; outline: none;
  transition: border-color .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-dim); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23948c7e' stroke-width='2' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.mill-invite { display: grid; gap: 6px; max-height: 168px; overflow-y: auto; padding-right: 4px; }
.mi-opt { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 5px; cursor: pointer; transition: background .15s; }
.mi-opt:hover { background: var(--panel-2); }
.mi-opt .box { width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 3px; flex: none; display: grid; place-items: center; }
.mi-opt .box svg { width: 11px; height: 11px; opacity: 0; color: #1a140c; }
.mi-opt input { display: none; }
.mi-opt input:checked + .box { background: var(--gold); border-color: var(--gold); }
.mi-opt input:checked + .box svg { opacity: 1; }
.mi-opt .mi-name { font-size: 13.5px; color: var(--text-2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-opt .mi-loc { font-size: 11.5px; color: var(--text-faint); flex: none; }
.mi-opt:hover .mi-name { color: var(--text); }

.form-card .submit { width: 100%; margin-top: 8px; }
.form-note { font-size: 11.5px; color: var(--text-faint); text-align: center; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.form-note svg { width: 13px; height: 13px; }
.form-card button[disabled] { cursor: wait; opacity: 0.72; }
.form-status {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.55;
  padding: 12px 13px;
}
.form-status[data-tone="success"] {
  border-color: rgba(111,174,125,0.34);
  color: #7fbe8d;
}
.form-status[data-tone="error"] {
  border-color: rgba(224,154,138,0.34);
  color: #e09a8a;
}

/* active RFQs */
.active-rfqs { margin-top: 50px; }
.active-rfqs .panel-head { margin-bottom: 4px; }

@media (max-width: 1080px) {
  .rfq-layout { grid-template-columns: 1fr; }
  .form-card { position: static; }
}
