.form-label fieldset {
  margin-bottom: 30px;
  padding: 0;
  border: 0;
  position: relative;
  border-bottom: 1px solid #333;
}

.form-label fieldset:after {
  content: '';
  left: 0;
  height: 2px;
  width: 0;
  position: absolute;
  transition: all .5s cubic-bezier(0.19, 1, 0.22, 1);
}

.form-label fieldset.border:after {
  width: 100%;
  background: #002037;
}

.form-label fieldset.has-error {
  border-color: red;
}

.form-label fieldset.has-error.border:after {
  background: red;
}

.form-label fieldset.is-select2 .jcf-select {
  display: none !important;
}

.form-label fieldset.is-select2 .select2-container {
  width: 100% !important;
  height: 3em;
}

.form-label fieldset.is-select2 .select2-container .select2-selection--single {
  height: 3em;
  border: none;
}

.form-label fieldset.is-select2 .select2-container .select2-selection__rendered {
  line-height: 3em !important;
  padding-left: 0;
  font-size: 16px;
}

.form-label fieldset.is-select2 .select2-container .select2-selection__arrow {
  height: 3em;
}

.form-label fieldset.custom-checkbox {
  border: none;
}

.form-label fieldset.custom-checkbox:after {
  display: none;
}

.form-label fieldset.custom-checkbox a {
  text-decoration: underline;
}

.form-label fieldset.custom-checkbox.has-error label,
.form-label fieldset.custom-checkbox.has-error a {
  color: red;
}

.form-label fieldset.custom-checkbox.nomargin {
  margin: 0;
}

.form-label input,
.form-label textarea {
  display: block;
  width: 100%;
  height: 3em;
  padding: 16px 0 0;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  color: #002037;
  outline: 0;
  appearance: none;
  /*transition: all 0.2s ease-in-out;*/
}

.form-label input[type="checkbox"] {
  appearance: auto;
  width: auto;
  margin-top: 0;
}

.form-label input[type="checkbox"] + label {
  left: 24px;
}

.form-label label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s cubic-bezier(.19, 1, .22, 1);
  /*transition-delay: .1s;*/
}

/* Animation on <label> */
.form-css-label input:not([type="checkbox"]):valid,
.form-css-label input:not([type="checkbox"]):focus,
.form-css-label input:not([type="checkbox"])[type="email"]:not(.empty),
.form-css-label textarea:valid,
.form-css-label textarea:focus,
.form-css-label textarea[type="email"]:not(.empty) {
  padding: 8px 0 10px;
}

.form-css-label input:not([type="checkbox"]):valid:after,
.form-css-label input:not([type="checkbox"]):focus:after,
.form-css-label input:not([type="checkbox"])[type="email"]:not(.empty):after,
.form-css-label textarea:valid:after,
.form-css-label textarea:focus:after,
.form-css-label textarea[type="email"]:not(.empty):after {
  content: '';
  width: 100%;
}

.form-css-label input:not([type="checkbox"]):focus,
.form-css-label textarea:focus {
  outline: 0;
}

.form-css-label input:not([type="checkbox"]):valid + label,
.form-css-label input:not([type="checkbox"]):focus + label,
.form-css-label input:not([type="checkbox"])[type="email"]:not(.empty) + label,
.form-css-label textarea:valid + label,
.form-css-label textarea:focus + label,
.form-css-label textarea[type="email"]:not(.empty) + label {
  color: #333;
  font-size: 12px;
  transform: translate3d(0, -25px, 0);
}

.form-css-label textarea {
  line-height: 1.4;
  resize: vertical;
}

input::-webkit-input-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease;
}

input::-moz-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease;
}

input:-moz-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease;
}

input:-ms-input-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease;
}

input:focus::-webkit-input-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
}

input:focus::-moz-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
}

input:focus:-moz-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
}

input:focus:-ms-input-placeholder {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.select2-container--open .select2-dropdown--below {
  margin-top: 1px;
}

.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/*SELECTS PARA IOS EN TODOS LOS FORMS*/
form select.select-iphone {
  border: none;
  background: white;
  width: 100%;
  font-size: 16px;
  line-height: 70px;
  height: 58px;
  -webkit-appearance: none;
}

form fieldset.select:before,
form fieldset.is-select2:before {
  position: absolute;
  right: 10px;
  bottom: 19px;
  width: 8px;
  height: 5px;
  content: '';
  background-image: url(../images/flechita-select.gif);
  pointer-events: none;
}

form input[type=checkbox]+label,
form input[type=radio]+label {
  position: static;
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
  margin-left: 4px;
  max-width: 85%;
}

/*EN TODOS LOS FORMS*/
form .info-response {
  display: none;
  opacity: 1;
}

@media (max-width: 992px) {
  form .info-response {
    position: static;
  }
}

form .info-response.visible {
  display: block;
}

#contacto_viccarbe_form select.select-iphone,
#contacto_instock_form select.select-iphone {
  line-height: 1;
  height: 45px;
}

#contacto_viccarbe_form select.select-iphone {
  background: #f1efe9;
}

#contacto_instock_form .custom-checkbox.nomargin,
#sendrequest_viccarbe_form .custom-checkbox.nomargin {
  margin-bottom: 20px;
}


/* =============================================================
   HUBSPOT FORM STYLES — Replicates viccarbe form design
   ============================================================= */

/* Space for the first field's label when it rises above */
.hs-form {
  padding-top: 22px;
}

/* Layout: fieldsets */
.hs-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 0 0;
  max-width: 100% !important;
}

.hs-form fieldset.form-columns-2 {
  display: flex;
  gap: 30px;
  margin-bottom: 10px !important;
}

.hs-form fieldset.form-columns-2 .hs-form-field {
  width: 100% !important;
}

/* Field wrapper — mirrors .form-label fieldset */
.hs-form-field {
  position: relative;
  margin-bottom: 30px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #333;
}

.hs-form-field:after {
  content: '';
  left: 0;
  height: 1px;
  width: 0;
  position: absolute;
  bottom: -1px;
  transition: all .5s cubic-bezier(0.19, 1, 0.22, 1);
  background: transparent;
  z-index: 1;
}

.hs-form-field:focus-within:after {
  width: 100%;
  background: #002037;
}

/* Label — animated, mirrors .form-label label */
.hs-form-field > label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s cubic-bezier(.19, 1, .22, 1);
}

/* Label sube al focus o cuando hay valor (igual que el original viccarbe) */
.hs-form-field:has(.hs-input:focus) > label,
.hs-form-field:has(.hs-input:not(:placeholder-shown)) > label {
  font-size: 12px;
  transform: translate3d(0, -25px, 0);
  color: #333;
}

.hs-form-required {
  margin-left: 2px;
  color: #333;
}

/* Inputs & textareas */
.hs-form .hs-input[type="text"],
.hs-form .hs-input[type="email"],
.hs-form .hs-input[type="tel"],
.hs-form .hs-input[type="number"],
.hs-form .hs-input[type="url"],
.hs-form textarea.hs-input {
  display: block;
  width: 100% !important;
  height: 3em;
  padding: 16px 0 0;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  color: #002037;
  outline: 0;
  appearance: none;
  background: transparent;
  box-shadow: none;
}

.hs-form .hs-input[type="text"]:focus,
.hs-form .hs-input[type="email"]:focus,
.hs-form .hs-input[type="tel"]:focus,
.hs-form .hs-input[type="number"]:focus,
.hs-form .hs-input[type="url"]:focus,
.hs-form textarea.hs-input:focus {
  outline: 0;
  box-shadow: none;
}

.hs-form textarea.hs-input {
  height: auto;
  min-height: 80px;
  line-height: 1.4;
  resize: vertical;
  padding-top: 8px;
}

/* Error state on input */
.hs-form .hs-input.error,
.hs-form .hs-input.invalid {
  color: #002037;
}

.hs-form-field.hs-fieldtype-text.error,
.hs-form-field:has(.hs-input.error) {
  border-bottom-color: red;
}

.hs-form-field:has(.hs-input.error):after {
  background: red;
  width: 100%;
}

/* Error messages */
.hs-error-msgs {
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}

.hs-error-msg {
  font-size: 12px;
  color: red;
  display: block;
}

/* Select — label siempre arriba (no hay placeholder-shown en select) */
.hs-form-field.hs-fieldtype-select {
  border-bottom: 1px solid #333;
}

.hs-form-field.hs-fieldtype-select > label {
  font-size: 12px;
  top: 4px;
}

.hs-form .hs-input.jcf-hidden {
  display: none !important;
}

.hs-form-field .jcf-select {
  display: block;
  vertical-align: top;
  position: relative;
  height: 40px;
  width: 100%;
}

.hs-form-field .jcf-select .jcf-select-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: default;
  display: block;
  font-size: 15px;
  margin: 0 35px 0 0;
  color: #002037;
  line-height: 40px;
}

.hs-form-field .jcf-select .jcf-select-opener {
  position: absolute;
  text-align: center;
  width: 26px;
  bottom: 0;
  right: 0;
  top: 0;
}

.hs-form-field .jcf-select .jcf-select-opener:after {
  content: '';
  width: 8px;
  height: 8px;
  border: solid #333;
  border-width: 0 2px 2px 0;
  position: absolute;
  right: 8px;
  top: 12px;
  transform: rotate(45deg);
}

/* Checkboxes */
.hs-form .inputs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hs-form-field.hs-fieldtype-booleancheckbox {
  border-bottom: 0;
  margin-bottom: 16px;
}

.hs-form-field.hs-fieldtype-booleancheckbox:after {
  display: none;
}

.hs-form-field.hs-fieldtype-booleancheckbox > label {
  position: static;
  font-size: 14px;
  transform: none;
  transition: none;
  pointer-events: auto;
}

.hs-form-booleancheckbox-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  line-height: 1.4;
}

.hs-form-booleancheckbox-display input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  flex-shrink: 0;
  width: auto;
  height: auto;
  margin-top: 2px;
  cursor: pointer;
}

.hs-form-booleancheckbox-display span p {
  margin: 0;
}

.hs-form-booleancheckbox-display a {
  color: #333;
  text-decoration: underline;
}

/* Legal consent container */
.legal-consent-container {
  margin-bottom: 20px;
}

.legal-consent-container .hs-richtext {
  display: none;
}

/* Submit button — mirrors .btn.btn-primary */
.hs-form .hs-submit .actions {
  margin-top: 20px;
}

.hs-form .hs-button.primary {
  display: inline-block;
  padding: 10px 30px;
  font-size: 15px;
  font-weight: 400;
  font-family: 'Tw-Cen-Light', sans-serif;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid #002037;
  border-radius: 0;
  background-color: #002037;
  color: #fff;
  appearance: none;
  transition: all .25s ease;
  box-shadow: none;
  text-decoration: none;
}

.hs-form .hs-button.primary:hover,
.hs-form .hs-button.primary:focus {
  background-color: #fff;
  color: #002037;
  border-color: #002037;
  outline: none;
}

/* Dependent field wrapper */
.hs-dependent-field {
  width: 100%;
}

/* Remove default input wrapper margins */
.hs-form-field .input {
  margin: 0 !important;
}

/* Responsive: stack two-column on small screens */
@media (max-width: 600px) {
  .hs-form fieldset.form-columns-2 {
    flex-direction: column;
    gap: 0;
  }
}

.hubspot-quote-form .hs-form .hs-input, .hubspot-sendrequest-form .hs-form .hs-input {
    border-bottom: none !important;
}

.hubspot-quote-form .hs-form .hs-input:focus {
    background: transparent !important;
}

.hubspot-quote-form .hs-form select.hs-input {
  width: 100% !important;
}

.no-list.hs-error-msgs.inputs-list {
  display: none;
}

.hubspot-quote-form .hs-form input[type="checkbox"].hs-input, .hubspot-sendrequest-form .hs-form .legal-consent-container input[type="checkbox"] {
    border: 1px solid #333 !important;
}

.hubspot-quote-form .hs-form .legal-consent-container label {
    font-size: 16px !important;
}

.legal-consent-container .hs-form-booleancheckbox-display > span, .hubspot-quote-form .hs-form .legal-consent-container input[type="checkbox"] {
    margin: 0px !important;
}

.hubspot-quote-form .hs-form .hs-button, .hubspot-sendrequest-form .hs-form .hs-button {
    width: auto !important;
}

.form-columns-1 {
    margin-bottom: 0px !important;
}