.reseller-program-cover {
  width: 100%;
  border-radius: var(--radius);
}

.reseller-program-section {
  padding-block: clamp(32px, 5vw, 72px);
}

.reseller-program-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), auto));
  align-items: baseline;
  gap: 12px 32px;
  border-block: 1px solid var(--line);
  padding-block: clamp(16px, 2.5vw, 28px);
}

.reseller-program-about h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 36px);
}

.reseller-program-about p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.reseller-program-about p + p {
  margin-top: 8px;
}

.reseller-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reseller-product-thumbnail {
  min-width: 0;
  border-radius: 8px;
  background: #e5f1fb;
}

.reseller-product-thumbnail a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  height: 100%;
  overflow: hidden;
  padding-right: 10px;
  border-radius: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.reseller-product-thumbnail a:hover,
.reseller-product-thumbnail a:focus-visible {
  background: #d3e9fa;
  text-decoration: underline;
}

.reseller-product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reseller-product-link {
  margin-top: 24px;
}

.reseller-program-benefit img {
  object-fit: cover;
}

.reseller-program-contact .reseller-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
    gap: 24px clamp(20px, 3vw, 36px);
    padding: clamp(16px, 2.5vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #eaf3fb;
}

.reseller-contact-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reseller-contact-details h3 {
  margin: 0;
}

.reseller-contact-details p {
  margin: 6px 0 16px;
  color: var(--muted);
}

.reseller-program-contact .reseller-form-grid {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: space-between;
    align-items: end;
    gap: 16px;
}

.reseller-program-contact .reseller-form-field-linkedin {
    grid-column: span 2;
}

.reseller-contact-submit {
    justify-content: center;
    margin-bottom: 0;
    padding-inline: 8px;
    text-align: center;
}

.reseller-program-contact .reseller-form-field label,
.reseller-program-contact legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.reseller-program-contact .reseller-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.reseller-program-contact .reseller-partner-types {
    display: grid;
    grid-template-rows: 1fr auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.reseller-partnership-options {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
}

.reseller-partnership-option {
    position: relative;
    display: grid;
    grid-template-columns: 24px clamp(60px, 9vw, 144px) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: clamp(12px, 1.8vw, 20px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.reseller-partnership-option:hover {
    border-color: #0069b6;
}

.reseller-partnership-option:has(input:checked) {
  border-color: #0069b6;
  background: #e1f1ff;
}

.reseller-partnership-option:focus-within {
  outline: 2px solid #0069b6;
  outline-offset: 2px;
}

.reseller-partnership-option input {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #0069b6;
}

.reseller-partnership-option img {
  width: 100%;
  border-radius: 8px;
}

.reseller-partnership-option > span > strong {
    display: block;
    margin-bottom: 4px;
    padding-right: 36px;
    font-size: 18px;
}

.reseller-partnership-earnings {
    position: absolute;
    inset: 9px 12px auto auto;
    color: #155a40;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 620px) {
    .reseller-program-contact .reseller-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reseller-contact-submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .reseller-partnership-option {
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: start;
    }

    .reseller-partnership-option img {
        width: 88px;
    }

    .reseller-partnership-option > span:last-child {
        grid-column: 2;
    }
}

.reseller-program-contact .reseller-form-field-invalid .reseller-input {
  border-color: #b0473e;
}

.reseller-program-contact .reseller-field-errors,
.reseller-program-contact .reseller-form-errors {
  color: #962e27;
}

.reseller-program-contact .errorlist {
  margin: 6px 0;
  padding-inline-start: 20px;
}

.reseller-program-contact .reseller-form-errors {
  grid-column: 1 / -1;
}

.reseller-program-contact button:disabled {
  opacity: .65;
  cursor: wait;
}
