/* ==========================================================================
   Reseller "Become a reseller" pop-up - same look as the Klass enquiry pop-up
   (assets/css/klass/enquiry.css); styles the HubSpot form (classic embed, loaded with css: '')
   ========================================================================== */

/* ---------- Intro button (under "Smart, simple tools…") ---------- */
.reseller-intro-actions {
  margin: 24px 0 8px;
}
a.reseller-intro-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 240px;
  padding: 16px 32px;
  border-radius: 30px;
  background: linear-gradient(to bottom, #94193b 0%, #94193b 50%, #00a7b5 50%, #00a7b5 100%);
  background-size: 100% 200%;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 7px 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
a.reseller-intro-btn:hover,
a.reseller-intro-btn:focus-visible {
  background-position: 0 100%;
  color: #ffffff;
  transform: translateY(-1px);
  font-weight: 600;
}
a.reseller-intro-btn:focus-visible {
  outline: 2px solid #00a7b5;
  outline-offset: 3px;
}

html.reseller-enquiry-open {
  overflow: hidden;
}
.reseller-enquiry {
  /* margin:auto centres the dialog; the page's global "* { margin: 0 }" reset would pin it to the top */
  margin: auto;
  width: min(92vw, 700px);
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 30px 32px 24px;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  color: #333f48;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.5;
}
.reseller-enquiry::backdrop {
  background: rgba(51, 63, 72, 0.62);
}
.reseller-enquiry[open] {
  animation: reseller-enquiry-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes reseller-enquiry-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.reseller-enquiry-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #6b7780;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.reseller-enquiry-close:hover {
  background: #ececef;
  color: #333f48;
}
.reseller-enquiry h2.reseller-enquiry-title {
  margin: 0 0 4px;
  padding: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #333f48;
}
.reseller-enquiry-context {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6b7780;
}
.reseller-enquiry-loading {
  margin: 30px 0;
  color: #6b7780;
  text-align: center;
}
.reseller-enquiry-promise {
  margin: 12px 0 0;
  font-size: 13px;
  font-style: italic;
  color: #6b7780;
  text-align: center;
}

/* ---------- HubSpot form markup ---------- */
.reseller-enquiry .hs-form fieldset {
  max-width: none !important;
  margin: 0;
  padding: 0;
  border: 0;
}
.reseller-enquiry .hs-form fieldset.form-columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 16px;
}
.reseller-enquiry .hs-form fieldset .hs-form-field {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}
.reseller-enquiry .hs-form-field {
  margin-bottom: 14px;
}
.reseller-enquiry .hs-form-field > label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #5c6770;
}
.reseller-enquiry .hs-form-required {
  margin-left: 2px;
  color: #94193b;
}
.reseller-enquiry .hs-form .input {
  margin: 0 !important;
}
.reseller-enquiry .hs-input:not([type="radio"]):not([type="checkbox"]) {
  width: 100% !important;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #b2b4b2;
  border-radius: 4px;
  background: #ffffff;
  color: #333f48;
  font-size: 15px;
  line-height: 1.3;
}
.reseller-enquiry .hs-input:not([type="radio"]):not([type="checkbox"]):focus {
  outline: none;
  border-color: #00a7b5;
  box-shadow: 0 0 0 3px rgba(0, 167, 181, 0.18);
}
.reseller-enquiry .hs-input.invalid.error {
  border-color: #b3261e !important;
}

/* Radios and checkboxes */
.reseller-enquiry .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.reseller-enquiry .inputs-list li {
  margin: 0 0 8px;
}
.reseller-enquiry .hs-form-radio-display,
.reseller-enquiry .hs-form-booleancheckbox-display {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 400;
  color: #333f48;
  cursor: pointer;
}
.reseller-enquiry .hs-form-radio-display input,
.reseller-enquiry .hs-form-booleancheckbox-display input {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #94193b;
}

/* Consent and privacy text */
.reseller-enquiry .legal-consent-container {
  margin: 4px 0 6px;
}
.reseller-enquiry .legal-consent-container .hs-richtext,
.reseller-enquiry .legal-consent-container .hs-richtext p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7780;
}
.reseller-enquiry .legal-consent-container .hs-form-booleancheckbox-display {
  font-size: 14px;
}
/* HubSpot indents the consent label; keep it next to its checkbox */
.reseller-enquiry .legal-consent-container .hs-form-booleancheckbox-display > span {
  margin-left: 0 !important;
}
.reseller-enquiry .legal-consent-container a {
  color: #94193b;
  text-decoration: underline;
}

/* Errors */
.reseller-enquiry .hs-error-msgs {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}
.reseller-enquiry .hs-error-msg,
.reseller-enquiry .hs-error-msgs label {
  font-size: 12.5px;
  font-weight: 400;
  color: #b3261e;
}
.reseller-enquiry .hs_error_rollup {
  display: none;
}

/* reCAPTCHA badge and submit */
.reseller-enquiry .hs_recaptcha {
  margin: 6px 0 12px;
}
.reseller-enquiry .hs_submit .actions {
  margin: 0;
  padding: 0;
}
.reseller-enquiry .hs-button {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 30px;
  background: #94193b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.reseller-enquiry .hs-button:focus-visible {
  outline: 2px solid #00a7b5;
  outline-offset: 3px;
}

/* ---------- Thank-you step ---------- */
.reseller-enquiry-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0 6px;
  text-align: center;
}
.reseller-enquiry-thanks[hidden] {
  display: none;
}
.reseller-enquiry-tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e3f1e8;
  color: #2e7d4f;
  font-size: 28px;
  font-weight: 700;
}
.reseller-enquiry-thanks p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.reseller-enquiry-thanks .reseller-enquiry-small {
  font-size: 13px;
  color: #6b7780;
}
.reseller-enquiry-back {
  margin-top: 6px;
  padding: 11px 26px;
  border: 2px solid #94193b;
  border-radius: 30px;
  background: #ffffff;
  color: #94193b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Small screens ---------- */
@media screen and (max-width: 600px) {
  .reseller-enquiry {
    width: 100vw;
    max-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 26px 18px 20px;
    border-radius: 0;
  }
  .reseller-enquiry .hs-form fieldset.form-columns-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .reseller-enquiry h2.reseller-enquiry-title {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reseller-enquiry[open] {
    animation: none;
  }
}
@media screen and (max-width: 767px) {
  .reseller-intro-actions {
    margin: 18px 0 4px;
  }
  a.reseller-intro-btn {
    min-width: 0;
    padding: 14px 28px;
    font-size: 15px;
  }
}
.reseller-enquiry .hs-button:hover {
  background: #00a7b5;
}
.reseller-enquiry-back:hover {
  background: #94193b;
  color: #ffffff;
}
