:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #607080;
  --line: #d9e1e8;
  --surface: #ffffff;
  --soft: #f3f6f8;
  --brand: #175c62;
  --brand-dark: #0f4449;
  --accent: #c79a3b;
  --danger: #b33b3b;
  --shadow: 0 18px 48px rgba(23, 33, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(238, 243, 244, 0.94), rgba(238, 243, 244, 0.94)),
    url("./assets/ps360-mark-bg.png") center 120px / min(760px, 95vw) auto no-repeat fixed,
    #eef3f4;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
  font-size: 16px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(23, 33, 43, 0.06);
  color: var(--ink);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.brand-lockup img {
  background: #fff;
  border-radius: 8px;
  height: 86px;
  object-fit: cover;
  object-position: center;
  padding: 0;
  width: 86px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 0;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.deadline-panel {
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 220px;
  padding: 12px 14px;
  text-align: right;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.language-toggle {
  background: #eef3f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  padding: 4px;
}

.lang-button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #526878;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 10px;
}

.lang-button.active {
  background: var(--brand);
  color: #fff;
}

.deadline-panel span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.deadline-panel strong {
  display: block;
  font-size: 1.02rem;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 26px clamp(16px, 4vw, 36px) 52px;
}

.section-heading p,
.submit-row p {
  color: var(--muted);
  margin-bottom: 0;
}

.intro-actions,
.submit-row,
.catalog-tools,
.bottom-actions {
  align-items: end;
  display: flex;
  gap: 10px;
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 22px;
}

.compact-section {
  padding-bottom: 16px;
}

.compact-section .section-heading {
  margin-bottom: 14px;
  padding-bottom: 12px;
}

.compact-section textarea {
  min-height: 78px;
}

.section-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.section-heading span {
  align-items: center;
  background: var(--brand);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 30px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: #344654;
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
}

.required-star {
  color: var(--danger);
  font-weight: 900;
}

.autocomplete-field {
  position: relative;
}

.suggestions-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 33, 43, 0.13);
  display: grid;
  left: 0;
  max-height: 238px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
}

.suggestions-list[hidden] {
  display: none;
}

.suggestions-list button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  padding: 10px;
  text-align: left;
}

.suggestions-list button:hover,
.suggestions-list button:focus {
  background: #edf7f3;
  outline: none;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid #cdd8df;
  border-radius: 7px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 11px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 92, 98, 0.14);
  outline: none;
}

.primary-button,
.secondary-button,
.ghost-button,
.remove-button {
  align-items: center;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  white-space: nowrap;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  background: #22303d;
  color: #fff;
}

.add-item-button {
  background: #237a4b;
  box-shadow: 0 8px 18px rgba(35, 122, 75, 0.18);
}

.add-item-button:hover,
.add-item-button:focus {
  background: #1b653d;
}

.ghost-button {
  background: #e9f0f2;
  color: var(--brand-dark);
}

.catalog-tools {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.catalog-tools label {
  flex: 1;
}

.catalog-add-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.catalog-tabs {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
}

.catalog-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #526878;
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  padding: 0 8px;
}

.catalog-tab.active {
  background: var(--brand);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
}

.supply-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.supply-table th {
  background: #f7fafb;
  color: #405160;
  font-size: 0.75rem;
  padding: 10px;
  text-align: left;
  text-transform: uppercase;
}

.supply-table td {
  border-top: 1px solid var(--line);
  padding: 10px;
  vertical-align: middle;
}

.supply-table input {
  min-height: 40px;
}

.product-description-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.icon-upload {
  align-items: center;
  border: 1px dashed #9fb1bc;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  width: 44px;
}

.icon-upload span {
  color: var(--brand);
  font-size: 1.35rem;
  line-height: 1;
}

.icon-upload input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.photo-picker {
  align-items: center;
  background: #f7fafb;
  border: 1px dashed #9fb1bc;
  border-radius: 8px;
  color: var(--brand-dark);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 78px;
  padding: 12px;
  text-align: center;
}

.photo-picker input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.camera-icon {
  border: 2px solid currentColor;
  border-radius: 8px;
  display: inline-block;
  height: 28px;
  position: relative;
  width: 36px;
}

.camera-icon::before {
  background: currentColor;
  border-radius: 3px 3px 0 0;
  content: "";
  height: 5px;
  left: 7px;
  position: absolute;
  top: -6px;
  width: 10px;
}

.camera-icon::after {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 10px;
  left: 11px;
  position: absolute;
  top: 7px;
  width: 10px;
}

.remove-button {
  background: #f4e7e7;
  color: var(--danger);
  font-size: 1.2rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
}

.submit-row {
  align-items: center;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
}

.hidden {
  display: none;
}

.thanks-body {
  min-height: 100vh;
}

.thanks-screen {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.thanks-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 560px;
  padding: 30px;
  text-align: center;
}

.thanks-logo {
  height: auto;
  margin-bottom: 18px;
  max-width: 190px;
  width: 70%;
}

.success-mark {
  align-items: center;
  background: #e5f4ef;
  border: 2px solid var(--brand);
  border-radius: 18px;
  display: inline-flex;
  height: 86px;
  justify-content: center;
  margin-bottom: 18px;
  width: 86px;
}

.success-mark span {
  border-bottom: 8px solid var(--brand);
  border-right: 8px solid var(--brand);
  display: block;
  height: 42px;
  transform: rotate(45deg) translate(-4px, -3px);
  width: 22px;
}

.thanks-card h1 {
  margin-bottom: 12px;
}

.urgent-note {
  background: #fff8e8;
  border: 1px solid #ead8aa;
  border-radius: 8px;
  margin: 22px 0;
  padding: 14px;
  text-align: left;
}

.urgent-note strong {
  color: #5e4614;
  display: block;
  margin-bottom: 4px;
}

.urgent-note p {
  color: #5f5748;
  margin-bottom: 0;
}

.thanks-button {
  text-decoration: none;
  width: 100%;
}

.legal-footer {
  color: #667887;
  font-size: 0.74rem;
  line-height: 1.45;
  margin: 18px auto 0;
  max-width: 980px;
  padding: 0 4px;
  text-align: center;
}

.legal-footer p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(rgba(238, 243, 244, 0.95), rgba(238, 243, 244, 0.95)),
      url("./assets/ps360-mark-bg.png") center 92px / min(560px, 120vw) auto no-repeat fixed,
      #eef3f4;
  }

  main {
    padding: 12px 12px 32px;
  }

  .topbar,
  .submit-row,
  .catalog-tools,
  .bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 14px;
    padding: 12px 16px 14px;
  }

  .header-actions {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-lockup {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .brand-lockup img {
    flex: 0 0 118px;
    height: 118px;
    padding: 0;
    width: 118px;
  }

  .eyebrow {
    font-size: 0.64rem;
    margin-bottom: 2px;
  }

  h1 {
    font-size: 1.18rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.05rem;
  }

  .deadline-panel,
  .language-toggle {
    width: auto;
  }

  .deadline-panel {
    padding: 9px 12px;
  }

  .deadline-panel span {
    font-size: 0.66rem;
  }

  .deadline-panel strong {
    font-size: 0.84rem;
    line-height: 1.1;
  }

  .deadline-panel {
    text-align: left;
  }

  .language-toggle {
    align-self: stretch;
    min-width: 104px;
  }

  .lang-button {
    flex: 1;
    min-height: 38px;
    padding: 0 9px;
  }

  .form-section {
    padding: 14px;
  }

  .legal-footer {
    font-size: 0.72rem;
    padding: 0 8px 8px;
    text-align: left;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading p {
    font-size: 0.94rem;
  }

  .submit-row p {
    font-size: 0.9rem;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .intro-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

  .catalog-tools {
    gap: 10px;
  }

  .catalog-add-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-add-row .secondary-button {
    min-height: 46px;
    padding: 0 10px;
    width: 100%;
  }

  .catalog-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-tab {
    font-size: 0.8rem;
    min-height: 40px;
    padding: 0 4px;
  }

  .product-description-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .product-description-row .remove-button {
    min-height: 42px;
    min-width: 42px;
    padding: 0;
  }

  .icon-upload {
    height: 34px;
    width: 38px;
  }

  .icon-upload span {
    font-size: 1rem;
  }

  .photo-picker {
    gap: 7px;
    min-height: 54px;
    padding: 8px 10px;
  }

  .camera-icon {
    height: 22px;
    width: 30px;
  }

  .camera-icon::after {
    height: 8px;
    left: 9px;
    top: 5px;
    width: 8px;
  }

  .table-wrap {
    overflow: visible;
  }

  .supply-table,
  .supply-table tbody,
  .supply-table tr,
  .supply-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .supply-table thead {
    display: none;
  }

  .supply-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px 12px;
    grid-template-columns: 1fr;
    margin-bottom: 14px;
    padding: 12px;
  }

  .supply-table td {
    border: 0;
    padding: 0;
  }

  .supply-table td::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .supply-table .quantity-required-cell::before {
    color: var(--danger);
  }

  input,
  select,
  textarea {
    min-height: 46px;
  }

  .supply-table input {
    min-height: 42px;
  }

  .thanks-screen {
    padding: 18px 12px;
  }

  .thanks-card {
    padding: 22px 18px;
  }

  .success-mark {
    height: 74px;
    width: 74px;
  }

  .thanks-logo {
    max-width: 150px;
  }

  .thanks-card h1 {
    font-size: 1.7rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .language-toggle,
  .catalog-tools,
  .bottom-actions,
  .remove-button {
    display: none !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .form-section,
  .legal-footer {
    box-shadow: none;
    break-inside: avoid;
    margin: 0 0 12px;
  }

  input,
  select,
  textarea {
    border-color: #999;
  }
}
