#international-quote {
  margin: 2rem 0 4rem;
}
.iq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.iq-form fieldset {
  padding: 1.25rem;
  margin: 0 0 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  min-width: 0;
  background: #fff;
}
.iq-form legend {
  padding: 0 0.5rem;
  font-weight: 700;
  color: #18213a;
}
.iq-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.iq-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}
.iq-field input,
.iq-field select,
.iq-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #18213a;
  font: inherit;
  font-weight: 400;
  line-height: 1.4;
}
.iq-field textarea {
  resize: vertical;
}
.iq-row {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.9rem;
  margin-bottom: 1rem;
  background: #fafaff;
}
.iq-row-top {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 0.5rem;
  align-items: end;
}
.iq-row-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}
.iq-remove {
  min-height: 42px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #9f1239;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
}
.iq-help {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 1rem;
}
.iq-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 1rem 0 1.5rem;
}
.iq-clear {
  background: none;
  border: 0;
  text-decoration: underline;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}
.iq-buy,
.iq-paid {
  background: #f0efff;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1rem 0;
}
.iq-buy p,
.iq-paid p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.iq-status {
  min-height: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #065f46;
}
.iq-status.is-error {
  color: #9f1239;
}
.iq-preview {
  position: sticky;
  top: 112px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 40px #18213a08;
  min-width: 0;
}
.iq-preview > h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 1.5rem;
}
.iq-document {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.iq-document-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid #6366f1;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.iq-document-head strong {
  color: #6366f1;
}
.iq-document-head h3 {
  margin: 0;
  font-size: 1rem;
}
.iq-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.iq-parties h4 {
  color: #64748b;
  text-transform: uppercase;
  font-size: 0.65rem;
  margin: 0 0 0.4rem;
}
.iq-table-scroll {
  overflow-x: auto;
}
.iq-document table {
  width: 100%;
  border-collapse: collapse;
  min-width: 390px;
  font-size: 0.65rem;
}
.iq-document th,
.iq-document td {
  text-align: right;
  padding: 0.65rem 0.3rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}
.iq-document th:first-child,
.iq-document td:first-child {
  text-align: left;
  min-width: 100px;
}
.iq-document th {
  color: #64748b;
  font-size: 0.6rem;
}
.iq-totals {
  margin: 1rem 0 1.5rem auto;
  max-width: 270px;
}
.iq-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
}
.iq-totals dd {
  margin: 0;
}
.iq-totals > div:last-child {
  border-top: 1px solid #cbd5e1;
  font-weight: 700;
  font-size: 0.85rem;
  color: #4338ca;
}
.iq-notes p {
  white-space: pre-wrap;
  line-height: 1.6;
}
.iq-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.iq-form [hidden] {
  display: none !important;
}
@media (max-width: 1050px) {
  .iq-layout {
    grid-template-columns: 1fr;
  }
  .iq-preview {
    position: static;
  }
}
@media (max-width: 540px) {
  .iq-fields {
    grid-template-columns: 1fr;
  }
  .iq-row-values {
    grid-template-columns: 1fr 1fr;
  }
  .iq-form fieldset {
    padding: 0.9rem;
  }
  .iq-preview {
    padding: 1rem;
  }
}

.iq-import {
  padding: 1.25rem;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #eef2ff;
  margin-bottom: 1.5rem;
}
.iq-import h2 {
  font-size: 1.1rem;
}
.iq-import p {
  font-size: 0.85rem;
  line-height: 1.6;
}
