/*
 * HubSpot-formuläret i fliken Bilens skick på bilsidan. Formuläret är
 * inställt på rå HTML i HubSpot och får ingen egen stil (till skillnad från
 * formuläret Bli kontaktad, som HubSpot ritar i en iframe), så teman som
 * nollställer formulärfält (t.ex. Tailwind) gör fälten osynliga. Samma mått
 * som Bli kontaktad; knappen i accentfärgen.
 */

#smart365-object-view .smart365-tab.vdn .hs-form {
  margin-top: 16px;
}

#smart365-object-view .smart365-tab.vdn .hs-form fieldset {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Två fält i bredd, som i HubSpot. */
#smart365-object-view .smart365-tab.vdn .hs-form fieldset.form-columns-2 {
  display: flex;
  gap: 16px;
}

#smart365-object-view .smart365-tab.vdn .hs-form fieldset.form-columns-2 .hs-form-field {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 600px) {
  #smart365-object-view .smart365-tab.vdn .hs-form fieldset.form-columns-2 {
    flex-direction: column;
    gap: 0;
  }
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-form-field {
  margin-bottom: 16px;
}

#smart365-object-view .smart365-tab.vdn .hs-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-form-required {
  color: #f00;
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 1px solid #cbd6e2;
  border-radius: 3px;
  background: #f5f8fa;
  font-size: 16px;
  line-height: 22px;
  color: #33475b;
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-input:focus {
  outline: none;
  border-color: rgba(0, 208, 228, 0.5);
  box-shadow: 0 0 4px 1px rgba(0, 208, 228, 0.3);
}

/* Samtycke: kryssrutan på samma rad som texten. */
#smart365-object-view .smart365-tab.vdn .hs-form .inputs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-form-booleancheckbox-display {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-form-booleancheckbox-display > span {
  margin-left: 0;
}

#smart365-object-view .smart365-tab.vdn .hs-form input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  appearance: auto;
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-error-msgs {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-error-msg {
  font-size: 13px;
  color: #f2545b;
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-button {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--smart365-accent, #ffad00);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}

#smart365-object-view .smart365-tab.vdn .hs-form .hs-button:hover {
  background: var(--smart365-accent-darker, var(--smart365-accent-second, #e69c00));
}
