:root {
  --bg-soft: #e8e8e8;
  --text: #111111;
  --mint: #62e8c0;
  --mint-dark: #2dc69a;
  --card: #f6f6f6;
  --border: #1f1f1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #e7e7e7;
  font-family: "Lora", serif;
}

.topbar {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 44px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.socials img {
  display: block;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  border: 1px solid var(--mint);
  border-radius: 999px;
  background-color: #000;
  color: #fff;
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1;
  padding: 9px 40px 9px 14px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mint) 50%),
    linear-gradient(135deg, var(--mint) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.lang-select:focus {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar {
  background: #f4f4f4;
  border-bottom: 1px solid #dadada;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 44px;
  width: auto;
}

.page-main {
  width: 100%;
}

.intro-band {
  background: #f1f1f1;
  border-bottom: 1px solid #dcdcdc;
}

.intro-band-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 44px 28px;
}

.form-title {
  margin: 0;
  max-width: 840px;
  font-size: clamp(31px, 4.2vw, 59px);
  line-height: 1.05;
}

.intro-band-inner .form-title {
  max-width: none;
  width: 100%;
}

.form-title .title-accent {
  display: inline-block;
  margin-top: 8px;
  background: var(--mint);
  padding: 2px 12px 5px;
}

.intro-line {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 44px 36px;
  display: flex;
  justify-content: flex-end;
}

.intro-line span {
  width: 230px;
  border-top: 2px solid #777;
  position: relative;
  display: block;
}

.intro-line span::before {
  content: "";
  position: absolute;
  left: -12px;
  top: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--mint);
  background: #f0f0f0;
}

.form-shell {
  background: #f5f5f5;
}

.form-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 54px 44px 58px;
  display: grid;
  gap: 36px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.content {
  max-width: 760px;
}

.mode-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid #161616;
  border-radius: 999px;
  padding: 3px;
  background: #f7f7f7;
}

.mode-tab {
  border: 0;
  background: transparent;
  color: #111;
  font-family: "Lora", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.mode-tab.is-active {
  background: var(--mint);
}

.mode-panel[hidden] {
  display: none !important;
}

.intro-copy {
  max-width: 900px;
  margin: 18px 0 0;
}

.intro-band-inner .intro-copy {
  max-width: none;
  width: 100%;
}

.intro-copy-top .intro-text:last-child {
  margin-bottom: 0;
}

.intro-text {
  margin: 0 0 12px;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.45;
}

#supplier-form {
  max-width: 700px;
  display: grid;
  gap: 14px;
  padding: 0;
}

.bulk-intro {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
}

.bulk-shared-email {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  max-width: 420px;
}

.bulk-shared-email label {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.bulk-shared-email input {
  width: 100%;
  border: 1.4px solid var(--border);
  background: var(--card);
  border-radius: 0;
  padding: 9px 12px;
  font-size: 14px;
  font-family: "Lora", serif;
}

.bulk-shared-email input:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
}

.bulk-table-wrap {
  width: 100%;
  overflow-x: hidden;
  border: 1px solid #191919;
  background: #f7f7f7;
}

#bulk-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#bulk-table th,
#bulk-table td {
  border: 1px solid #191919;
  padding: 5px;
  vertical-align: top;
  min-width: 0;
  width: 10%;
}

#bulk-table th {
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  background: #ededed;
  white-space: normal;
  word-break: break-word;
}

#bulk-table td {
  background: #fff;
  word-break: break-word;
}

#bulk-table input,
#bulk-table select {
  width: 100%;
  min-width: 0;
  border: 1px solid #242424;
  background: #fff;
  font-size: 12px;
  padding: 5px 6px;
  border-radius: 0;
  font-family: "Lora", serif;
}

.bulk-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#bulk-add-row,
#bulk-submit {
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: "Lora", serif;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
}

#bulk-submit {
  background: var(--mint);
  color: #111;
}

#bulk-add-row:disabled,
#bulk-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#bulk-message {
  margin: 10px 0 0;
  min-height: 22px;
  font-size: 14px;
}

#bulk-message.ok {
  color: #0f8a5f;
}

#bulk-message.error {
  color: #8f2424;
}

.form-block {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.form-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.form-block h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

#supplier-form input,
#supplier-form select,
#supplier-form textarea {
  width: 100%;
  border: 1.4px solid var(--border);
  background: var(--card);
  border-radius: 0;
  padding: 10px 12px;
  font-size: 15px;
  font-family: "Lora", serif;
}

#supplier-form textarea {
  resize: vertical;
  min-height: 120px;
}

#supplier-form input:focus,
#supplier-form select:focus,
#supplier-form textarea:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
}

.conditional {
  display: none;
}

.field-label {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.field-help {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #2e2e2e;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: #f0f0f0;
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  user-select: none;
}

.radio-option span {
  font-size: 15px;
  line-height: 1;
}

.radio-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--mint-dark);
}

#submit-btn {
  margin-top: 8px;
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--mint);
  color: #000;
  font-size: 19px;
  font-weight: 700;
  padding: 9px 24px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

#submit-btn:hover {
  transform: translateY(-1px);
  background: var(--mint-dark);
}

#submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#form-message {
  margin: 2px 0 0;
  font-size: 17px;
  min-height: 24px;
}

#form-message.ok {
  color: #0f8a5f;
}

#form-message.error {
  color: #8f2424;
}

.visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-image {
  width: min(400px, 86%);
  height: auto;
  display: block;
  transform: rotate(8deg) translateY(24px);
  filter: drop-shadow(-26px 24px 40px rgba(0, 0, 0, 0.25));
}

body.bulk-active .form-layout {
  grid-template-columns: 1fr;
}

body.bulk-active .content {
  max-width: none;
}

body.bulk-active .visual {
  display: none;
}

@media (max-width: 1000px) {
  .form-layout {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .visual {
    display: none;
  }

  .intro-line {
    display: none;
  }
}

@media (max-width: 700px) {
  .topbar,
  .navbar,
  .intro-band-inner,
  .intro-line,
  .form-layout {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand {
    max-width: 180px;
  }

  .brand img {
    height: 34px;
  }

  .lang-select {
    font-size: 16px;
    padding: 7px 34px 7px 12px;
  }

  .socials a {
    width: 28px;
    height: 28px;
  }

  .form-title {
    margin-bottom: 8px;
  }

  .form-layout {
    padding-top: 30px;
    padding-bottom: 34px;
    gap: 20px;
  }

  .mode-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .mode-tab {
    flex: 1 1 0;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  .intro-text {
    font-size: 14px;
  }

  .form-block h2 {
    font-size: 14px;
  }

  label,
  .field-label {
    font-size: 15px;
  }

  .field-help {
    font-size: 12px;
  }

  #submit-btn {
    width: 100%;
    justify-self: stretch;
  }

  .bulk-actions {
    flex-direction: column;
  }

  #bulk-add-row,
  #bulk-submit {
    width: 100%;
  }
}
