/**
 * Theme Name: Astra Italyca
 * Template:   astra
 *
 */

@import url('./assets/css/select2.min.css');

.hvf-container>* {
  box-sizing: border-box !important;
}

.hvf-container,
.select2-dropdown,
textarea {
  font-family: 'Roboto', sans-serif;
}

.select2 {
  font-size: 0.88rem;
}

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

.select2-selection__arrow .hvf-select-triangle-container {
  border-left: 1px solid #AAA;
  width: 100%;
  display: flex;
  justify-content: center;
  height: 70%;
  align-items: center;
}

.select2-selection__arrow .select-triangle {
  transform: rotate(180deg);
}

.hvf-container {
  width: clamp(300px, 85vw, 850px);
  margin-inline: auto;

}

.hvf-endnote {
  color: #707070;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.hvf-card {
  border: 1px solid #7F7F7F;
  border-radius: 0.25rem;
  padding: 1rem;
  box-shadow: 1px 5px 9px -1px #707070;
  -webkit-box-shadow: 1px 5px 9px -1px #707070;
  -moz-box-shadow: 1px 5px 9px -1px #707070;
  margin-bottom: 2rem;
  background-color: white;
}

.hvf-card-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem !important;
}

.hvf-logo-container {
  margin-bottom: 1rem;

  width: 200px;
}

.hvf-logo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hvf-form-container {
  width: 100%;
}

.hvf-step {
  margin-bottom: 3rem;
}

.hvf-step-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hvf-step-title {
  color: #7F7F7F !important;
  margin-top: 0;
  margin-bottom: 1.75rem;
}

.hvf-form-group {
  width: 100%;
  grid-column: span 2;

  margin-bottom: 1rem;
}

.hvf-form-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hvf-form-field span,
.hvf-form-field label {
  color: #7F7F7F;
  font-size: 0.88rem;
}

.hvf-label-textarea {
  align-self: start;
  padding-top: 0.35rem;
}

.select2-results__options,
.select2-selection__rendered {
  color: #7F7F7F !important;

}

.hvf-form-field .select2,
.hvf-form-field input,
.hvf-form-field textarea {
  width: 50%;
}

.hvf-form-field input,
.hvf-form-field textarea {
  background-color: white;
  font-size: 0.88rem;
}

.hvf-form-field input[type="radio"] {
  margin-top: 0;
}

.hvf-form-field input[type="email"],
.hvf-form-field input[type="number"],
.hvf-form-field input[type="text"],
.hvf-form-field textarea {
  padding: 0 0.5rem;
  border: 1px solid #AAA;
  border-radius: 0.25rem;
  line-height: 1.75rem;
  color: #7F7F7F;
}

.hvf-form-field input[type="email"].error,
.hvf-form-field input[type="number"].error,
.hvf-form-field input[type="text"].error,
.hvf-form-field .select2.error+.select2-container .select2-selection,
.hvf-form-field textarea.error {
  border-color: #E65644 !important;
}

.hvf-form-field input[type="email"],
.hvf-form-field input[type="number"],
.hvf-form-field input[type="text"] {
  height: 1.75rem;
}

.hvf-radio-fields {
  display: flex;
  align-items: center;
  flex-grow: 1;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 50%;
}

.hvf-radio-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hvf-radio-container label {
  text-wrap: nowrap;
}

.error.invalid {
  margin-block: 0.2rem 0;
  color: var(--ast-global-color-0);
  color: #E65644;
  font-size: 0.88rem;
}

.hvf-btn-container {
  display: flex;
  flex-direction: column;
  align-items: end;
  margin-bottom: 1.5rem;
}

.hvf-form-btn {
  padding: 0.5rem 0.75rem;
  background-color: transparent;
  border: 1px solid #878787;
  color: #7F7F7F;
  font-size: 0.9rem;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-wrap: nowrap;
  font-weight: 700;
}

.hvf-form-btn:focus,
.hvf-form-btn:focus-visible,
.hvf-form-btn:hover,
.hvf-form-btn:target {
  background-color: rgba(94, 24, 27, 0.1);
  background-color: transparent;
  color: #875454;
  color: rgb(94, 24, 27);
  border-color: #875454;
  outline: none;

}

.hvf-form-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.hidden {
  display: none;
}

.hvf-response-success {
  font-size: 1.35rem;
  color: #46b450;
  text-align: center;
}

.hvf-response-error {
  font-size: 1.25rem;
  color: #E65644;
  width: 100%;
  text-align: center;
}

@media screen and (min-width: 720px) {

  .hvf-card {
    padding-bottom: 2rem;
  }

  .hvf-logo-container {
    width: 33%;
  }

  .hvf-form-container {
    padding-left: 1rem;
    flex-grow: 1;
    max-width: 90%;
  }

  .hvf-step-title {
    font-size: 1.25rem;
  }

  .hvf-form-field input[type="email"],
  .hvf-form-field input[type="number"],
  .hvf-form-field input[type="text"],
  .hvf-form-field span,
  .hvf-form-field label,
  .hvf-form-field textarea {
    font-size: 1rem;
  }

  .hvf-form-btn {
    font-size: 1.1rem;
  }

  .hvf-btn-container {
    margin-bottom: 0;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    max-width: 90%;
    margin-inline: auto;
    padding-left: 1rem;
  }

  .hvf-response-error {
    text-align: start;
    flex-grow: 1;
  }
}