/* ISPartner Zapytania — odswiezenie UI, zgodne ze struktura wersji 0.1.0.
   Zastepuje w calosci views/css/form.css. Nie zmienia PHP ani danych. */
#isp-rfq {
  --rfq-ink: #143b3d;
  --rfq-muted: #496566;
  --rfq-teal: #14786f;
  --rfq-teal-dark: #0d574f;
  --rfq-border: #bdd4ce;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 16px;
  font: 16px/1.65 Arial, Helvetica, sans-serif;
  color: var(--rfq-ink);
  letter-spacing: normal;
  text-align: left;
}
#isp-rfq *, #isp-rfq *::before, #isp-rfq *::after { box-sizing: border-box; }
#isp-rfq :is(h2,h3,p,label,input,textarea,button,summary,th,td,a) {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
#isp-rfq h2 {
  margin: 0 0 18px;
  padding: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.22;
  color: inherit;
}
#isp-rfq h3 {
  margin: 0 0 20px;
  padding: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rfq-ink);
}
#isp-rfq p {
  margin: 0 0 16px;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
  color: inherit;
}
#isp-rfq p:last-child { margin-bottom: 0; }
#isp-rfq .rfq-hero {
  position: relative;
  margin: 0 0 28px;
  padding: 36px 32px;
  border: 1px solid #184e50;
  border-top: 5px solid #36c3ad;
  border-radius: 20px;
  background: linear-gradient(125deg, #102e32 0%, #174c4e 65%, #17665e 100%);
  box-shadow: 0 10px 28px rgba(17, 55, 57, .12);
  color: #eef8f5;
}
#isp-rfq .rfq-hero h2 { max-width: 820px; color: #fff; }
#isp-rfq .rfq-hero p { max-width: 870px; color: #e0efeb; }
#isp-rfq .rfq-hero .rfq-kicker {
  display: inline-block;
  margin: 0 0 20px;
  padding: 7px 12px;
  border: 1px solid rgba(167,231,214,.35);
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  color: #ffdf9b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .7px;
}
#isp-rfq .rfq-card {
  margin: 0 0 24px;
  padding: 28px;
  border: 1px solid var(--rfq-border);
  border-top: 4px solid var(--rfq-teal);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22,64,60,.06);
}
#isp-rfq .rfq-card > h3 {
  padding-bottom: 16px;
  border-bottom: 1px solid #deebe6;
}
#isp-rfq .rfq-card > p { color: var(--rfq-muted); }
#isp-rfq .rfq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
#isp-rfq label {
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #244e4e;
}
#isp-rfq input:not([type=hidden]), #isp-rfq textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 8px 0 14px;
  padding: 11px 13px;
  border: 1px solid #a6c3ba;
  border-radius: 9px;
  background: #f8fbfa;
  color: #173d3e;
  box-shadow: inset 0 1px 2px rgba(24,57,54,.025);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
#isp-rfq .rfq-grid input { margin-bottom: 0; }
#isp-rfq input::placeholder, #isp-rfq textarea::placeholder { color: #617d78; opacity: 1; }
#isp-rfq input:not([type=hidden]):hover, #isp-rfq textarea:hover { border-color: #5a9c8d; }
#isp-rfq input:not([type=hidden]):focus, #isp-rfq textarea:focus {
  border-color: #14786f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20,120,111,.13);
}
#isp-rfq textarea { resize: vertical; min-height: 135px; }
#isp-rfq button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  margin: 0;
  padding: 11px 20px;
  border: 1px solid var(--rfq-teal);
  border-radius: 9px;
  background: #fff;
  color: var(--rfq-teal-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#isp-rfq .rfq-primary {
  min-height: 52px;
  padding: 13px 26px;
  border-color: #126b62;
  background: #14786f;
  box-shadow: 0 4px 10px rgba(20,120,111,.16);
  color: #fff;
  font-size: 17px;
}
#isp-rfq .rfq-primary:hover { background: #0d574f; border-color: #0d574f; }
#isp-rfq .rfq-secondary {
  margin: 12px 0 16px;
  background: #edf6f2;
  border-color: #8ab7aa;
  color: #115d55;
}
#isp-rfq .rfq-secondary:hover { background: #dceee7; border-color: #14786f; }
#isp-rfq :is(input,textarea,button,a,summary):focus-visible {
  outline: 3px solid #a76a12;
  outline-offset: 3px;
}
#isp-rfq details {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #a6cabd;
  border-radius: 12px;
  background: #eef7f3;
}
#isp-rfq summary {
  padding: 2px 0;
  font-size: 16px;
  font-weight: 700;
  color: #135f57;
  cursor: pointer;
}
#isp-rfq details[open] summary { margin-bottom: 14px; }
#isp-rfq details p { color: #355c55; font-size: 14px; }
/* Tabela: wszystkie kontrolki maja identyczna wysokosc i zerowe marginesy. */
#isp-rfq .rfq-table-wrap {
  overflow-x: auto;
  margin: 20px 0 4px;
  border: 1px solid #c6dcd3;
  border-radius: 12px;
  background: #fff;
}
#isp-rfq table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
#isp-rfq thead { background: #e5f1eb; }
#isp-rfq th {
  padding: 13px 8px;
  border: 0;
  border-bottom: 1px solid #bbd6c9;
  color: #204b45;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
}
#isp-rfq th:first-child { width: 36%; padding-left: 14px; }
#isp-rfq th:nth-child(2) { width: 13%; }
#isp-rfq th:nth-child(3) { width: 14%; }
#isp-rfq th:nth-child(4) { width: auto; }
#isp-rfq th:last-child { width: 76px; text-align: center; }
#isp-rfq tbody tr { background: #fff; }
#isp-rfq tbody tr:nth-child(even) { background: #f6faf8; }
#isp-rfq tbody tr:hover { background: #f0f7f3; }
#isp-rfq td {
  height: auto;
  padding: 12px 6px;
  border: 0;
  border-bottom: 1px solid #e1ece6;
  vertical-align: middle !important;
  text-align: left;
}
#isp-rfq td:first-child { padding-left: 12px; }
#isp-rfq td:last-child { padding-right: 12px; text-align: center; }
#isp-rfq tbody tr:last-child td { border-bottom: 0; }
#isp-rfq .rfq-table-wrap td input:not([type=hidden]) {
  display: block;
  width: 100%;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px;
  margin: 0 !important;
  padding: 11px 10px;
  border: 1px solid #a6c3ba;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  line-height: 24px;
}
#isp-rfq .rfq-table-wrap td:last-child button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d8a6a2;
  border-radius: 8px;
  background: #fff5f3;
  color: #9b3028;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  vertical-align: middle;
}
#isp-rfq .rfq-table-wrap td:last-child button:hover {
  border-color: #a8382e;
  background: #a8382e;
  color: #fff;
}
#isp-rfq #rfq-js-status {
  margin: 8px 0 0;
  color: #8a302a;
  font-size: 14px;
  font-weight: 700;
}
#isp-rfq #rfq-files {
  margin: 12px 0;
  padding: 15px;
  border: 2px dashed #82b5a4;
  border-radius: 12px;
  background: #eff8f3;
  font-size: 14px;
  cursor: pointer;
}
#isp-rfq #rfq-files::file-selector-button {
  margin: 0 12px 0 0;
  padding: 10px 14px;
  border: 1px solid #14786f;
  border-radius: 7px;
  background: #14786f;
  color: #fff;
  font: 700 14px/1.4 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
#isp-rfq .rfq-footer {
  margin-top: 4px;
  padding: 26px 28px;
  border: 1px solid #e2c27d;
  border-left: 5px solid #d49a35;
  border-radius: 16px;
  background: #fff5df;
  color: #51432a;
}
#isp-rfq .rfq-footer p { font-size: 14px; line-height: 1.65; }
#isp-rfq .rfq-footer button { margin: 4px 0 18px; }
#isp-rfq .rfq-errors {
  padding: 22px;
  margin-bottom: 24px;
  border: 1px solid #c78078;
  border-left: 5px solid #a8382e;
  border-radius: 12px;
  background: #fff2ef;
  color: #702b24;
}
#isp-rfq .rfq-errors ul { margin: 0 0 12px; padding-left: 22px; }
#isp-rfq .rfq-success {
  padding: 28px;
  border: 1px solid #86b6a3;
  border-left: 5px solid #14786f;
  border-radius: 16px;
  background: #eaf6ee;
  color: #1e503e;
}
#isp-rfq .rfq-success a { color: #115d55; font-weight: 700; text-decoration: underline; }
#isp-rfq .rfq-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 767px) {
  #isp-rfq .rfq-grid { grid-template-columns: minmax(0,1fr); gap: 17px; }
  #isp-rfq .rfq-hero { padding: 28px 20px; border-radius: 16px; }
  #isp-rfq h2 { font-size: 27px; }
  #isp-rfq h3 { font-size: 21px; }
  #isp-rfq .rfq-card { padding: 22px 16px; border-radius: 14px; }
  #isp-rfq .rfq-footer { padding: 22px 18px; }
  #isp-rfq .rfq-primary { width: 100%; }
  #isp-rfq .rfq-hero .rfq-kicker { font-size: 11px; letter-spacing: .35px; }
}
@media (prefers-reduced-motion: reduce) {
  #isp-rfq input, #isp-rfq textarea, #isp-rfq button { transition: none; }
}
