/**
 * Loan Cost Calculator block styles
 */

.col-block {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.col-block-calculator {
  margin-top: 1.5rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1.5rem 2.5rem 1.5rem;
  background-color: #f6f7f9;
  border-top: 12px solid #499955;
  border-bottom: 1px solid #ccc;
}

@media (min-width: 768px) {
  .col-block-calculator {
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem 2rem 2rem 2rem;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 8px 8px -6px rgba(0, 0, 0, 0.2);
  }
}

.col-block h2 {
  margin-top: -1rem;
  padding-top: 1.6rem;
}

.col-block h3 {
  margin-bottom: 1.75rem;
  font-weight: normal;
}

/* Form */

.col-block-form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.col-block-form input[type="text"],
.col-block-form input[type="number"],
.col-block-form select {
  color: #404040;
  border: 1px solid #ccc;
}

.col-block-form select option:disabled,
.col-block-form select option:invalid {
  color: #9e9e9e;
}

.col-block-form select {
  margin-bottom: 1rem;
  padding-right: 2.5rem;
  line-height: 22px;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  background-color: #ffffff;
  background-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-position: right 0.65rem top 50%;
  background-repeat: no-repeat;
  background-size: 15px auto;
  border: 1px solid #ccc;
}

.col-block-form-inputs[data-form-submitted="true"][data-current-city-valid="false"] .col-block-form-current-city,
.col-block-form-inputs[data-form-submitted="true"][data-future-city-valid="false"] .col-block-form-future-city,
.col-block-form-inputs[data-form-submitted="true"][data-annual-income-valid="false"] .col-block-form-annual-income {
  border: 2px solid red;
}

.col-block-form-submit-button[data-display="false"] {
  display: none;
}

.col-block-form-submit-button {
  margin-top: 2rem;
  padding: 14px !important;
  color: #ffffff;
}

/* Results */

.col-block-form-results {
  margin-top: 2rem;
  border-top: 1px solid #e2e2e2;
}

@media (min-width: 768px) {
  .col-block-form-results {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 4rem;
  }
}

.col-block-form-results label {
  margin-top: 1.5rem;
  max-width: 280px;
  font-size: 20px;
  font-weight: normal;
}

.col-block-form-results input[type="text"] {
  margin-top: 0.5rem;
  padding: 0;
  font-weight: normal;
  font-size: 30px;
  color: #005fb9;
  background-color: transparent;
  box-shadow: none;
  border: 0;
}

.col-block-form-results[data-display="false"] {
  display: none;
}

.col-block-form-results[data-display="true"] {
  display: grid;
}

/* Admin styles
--------------------------------------------- */

.acf-block-component .col-block-component-title .acf-label label {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 400;
  color: #1e1e1e;
}

.acf-block-component .col-block-component-title .acf-label label:before {
  display: inline-block;
  width: 24px;
  height: auto;
  margin-right: 15px;
  vertical-align: -4px;
  font-family: "dashicons";
  content: "\f16e";
}
