/* ══ RFQ SUBMISSION PAGE ═════════════════════════════════════════════════════ */

.rfq-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: start;
}

/* Items column */
.rfq-items-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.rfq-items-header h3 { color: var(--green-dk); font-size: 1.1rem; }
.rfq-add-more {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--green);
  text-decoration: none; transition: color .2s;
}
.rfq-add-more:hover { color: var(--gold); }

.rfq-item-cards { display: flex; flex-direction: column; gap: 12px; }
.rfq-item-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 14px 16px;
}
.rfq-ic-img {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.rfq-ic-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.rfq-ic-img-fb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rfq-ic-img-fb i { color: var(--muted); font-size: 18px; opacity: 0.5; }

.rfq-ic-body { flex: 1; min-width: 0; }
.rfq-ic-brand { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; display: block; }
.rfq-ic-title { font-size: 13.5px; font-weight: 600; color: var(--green-dk); text-decoration: none; display: block; line-height: 1.3; margin: 3px 0; }
.rfq-ic-title:hover { color: var(--green); }
.rfq-ic-mfr { font-size: 11.5px; color: var(--muted); display: block; }

.rfq-ic-qty { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.rfq-ic-qty label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.rfq-qty-input {
  width: 60px; text-align: center;
  padding: 6px 8px;
  border: 1.5px solid var(--rule); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--text);
}
.rfq-qty-input:focus { outline: none; border-color: var(--green); }

/* Form column */
.rfq-form-col {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow);
  position: sticky; top: 88px;
}

.rfq-form { display: flex; flex-direction: column; gap: 16px; }
.rfq-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rfq-field { display: flex; flex-direction: column; gap: 6px; }
.rfq-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.req { color: var(--gold); }

.rfq-field input,
.rfq-field textarea {
  padding: 12px 14px;
  background: var(--bg); border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 14px; color: var(--text);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.rfq-field input:focus,
.rfq-field textarea:focus {
  outline: none; border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0,77,64,0.10);
}
.rfq-field input::placeholder,
.rfq-field textarea::placeholder { color: var(--muted); font-size: 13.5px; }
.rfq-field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.rfq-select-wrap { position: relative; }
.rfq-select-wrap select {
  width: 100%; padding: 12px 40px 12px 14px;
  background: var(--bg); border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 14px; color: var(--text);
  appearance: none; cursor: pointer;
  transition: border-color .2s;
}
.rfq-select-wrap select:focus { outline: none; border-color: var(--green); }
.rfq-select-icon {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); font-size: 12px; pointer-events: none;
}

.rfq-submit-wrap { margin-top: 4px; }
.rfq-submit-btn { width: 100%; justify-content: center; padding: 15px; font-size: 15px; }
.rfq-submit-note {
  margin-top: 12px; font-size: 12.5px; color: var(--muted);
  line-height: 1.55; text-align: center;
}

/* Success state */
.rfq-success {
  text-align: center; padding: 40px 24px;
}
.rfq-success i  { font-size: 48px; color: var(--green); display: block; margin-bottom: 16px; }
.rfq-success h3 { color: var(--green-dk); margin-bottom: 12px; }
.rfq-success p  { color: var(--muted); font-size: 14.5px; margin-bottom: 6px; line-height: 1.6; }

/* Responsive */
@media (max-width: 1024px) {
  .rfq-layout { grid-template-columns: 1fr; }
  .rfq-form-col { position: static; }
}
@media (max-width: 640px) {
  .rfq-row { grid-template-columns: 1fr; }
  .rfq-form-col { padding: 20px; }
}
