.form-row {
  display: flex;
  gap: 1.5rem;
  flex-flow: row wrap;
  width: 100%;
  justify-content: space-between;
}
.form-grid {
  color: #164e63;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin-bottom: 6rem;
  gap: 1.5rem;
}
.margin-1 {
  margin-bottom: 0;
}
.form-control {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
}
.form-input {
  padding: 0.5rem 0.75rem;
  background-color: #f6f7f9;
  font-weight: 300;
  min-height: 48px;
  border: solid 1px #e2e8f0 !important;
  color: #647793;
  outline: none;
}
.phone-control {
  position: relative;
}
.phone-control img {
  position: absolute;
  margin: 13px 0 0px 14px;
}
.phone-control input.form-input {
  padding-left: 2.5rem;
}
.form-row.full, .form-row.full label  {
  width: 100%;
}
.form-control-checkbox {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  color: #647793;
  font-size: 0.75rem;
  line-height: 1.25;
}
.financing-form {
  display: flex;
  flex-flow: row nowrap;
}
.custom-form {
  display: flex;
  flex-flow: column;
  align-items: center;
}
.custom-form button {
  padding: 0.75rem 1.25rem;
  line-height: 1.25;
  font-size: 14px;
  font-weight: 600;
  border: none;
}
.custom-form button:hover {
  cursor: pointer;
}
.custom-form .next-btn,
.custom-form .next-btn:hover,
.custom-form .next-btn:focus {
  color: #fff;
  background-color: #155e75;
}
.flex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter_dropdown {
  position: absolute;
  top: 90%;
  left: 0;
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: flex-start;
  background-color: #fff;
  border: solid 1px #d4dae3;
  border-radius: 6px;
  opacity: 0;
  z-index: -1;
  transition: opacity .15s, z-index .15s;
  width: 98%;
  margin: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);
}
.dropdown_container {
  overflow-y: scroll;
  max-height: 200px;
  width: 100%;
  margin: 0.5rem 0;
  scrollbar-width: thin;
}
.filter_dropdown.display {
  opacity: 1;
  z-index: 2;
}
.filter_dropdown button {
  border: none;
  width: 100%;
  text-align: start;
  padding: 0.375rem 0.5rem;
  background-color: #fff;
  font-size: 14px;
  color: #647793;
  color: #0f172a;
  transition: none;
  padding-left: 2rem;
  line-height: 1.25rem;
  font-weight: 300;
}
.filter_dropdown button:hover {
  cursor: pointer;
}
.filter_dropdown button:hover,
.filter_dropdown button:focus {
  color: #0f172a;
  background-color: #f1f5f9;
}
.custom-form .relative {
  position: relative;
}
.custom-form .relative input.form-input {
  box-sizing: border-box;
  width: 100%;
}
.form-section {
  display: flex;
  flex-flow: column;
  width: 100%;
  max-width: 1200px;
  opacity: 0;
  transition: transform .25s, opacity .1s;
}
.form-section.files-section {
  max-width: 48rem;
}
.form-section h1,
.form-section h3 {
  text-align: center;
}
.form-section.visible {
  opacity: 1;
}
.form-section.previous {
  transform: translateX(-500px);
}
.first-section.visible {
  transform: translateX(0);
}
.form-section.next {
  transform: translateX(500px);
}
button.option {
  background-color: transparent;
  color: #647793;
}
button.option:hover,
button.option:focus {
  background-color: transparent;
  color: #647793;
}
button.option.selected{
  background-color: #fff;
}
button.next-btn {
  display: flex;
  gap: 1rem;
  align-items: center;
  align-self: flex-end;
}
.custom-form button.previous-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #000;
}
.previous-btn:hover {
  transform: scale(1.1);
}
.error-message {
  margin: 0;
  color: #ef4444;
  line-height: 1.5rem;
  font-size: .875rem;
  margin-top: 0.25rem;
}
/*
*/
.buttons-group {
  display: flex;
  flex-flow: row nowrap;
  border: solid 1px #eceef2;
}

.buttons-group .option {
  background-color: transparent;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttons-group span {
  padding: 0.6rem 1rem;
  width: 100%;
  text-align: center;
}

.processing_dialog[open] {
  display: flex;
  flex-flow: column;
  align-items: center;
  border: none;
  gap: 1rem;
  border-radius: 0.5rem;
  padding: 2rem 3rem;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}
.processing_dialog::backdrop {
  background-color: rgba(255,255,255,0.3);
}
.car_loader {
  width: 100%;
  max-width: 500px;
}
.car_container {
  width: 5rem;
  height: 7rem;
  position: relative;
  animation: loadCar 4s cubic-bezier(0.45, 0, 0.55, 1) forwards infinite;
  animation-delay: 0.5s;
}
.car_svg {
  width: 5rem;
  height: 5rem;
  position: absolute;
  right: 0;
  bottom: 0;
}
.bar_container {
  position: relative;
}
.bar {
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 100;
  border: solid 3px #d3d3d3;
}
.bar.loader {
  border-color: #000;
  z-index: 101;
}
/* Keyframes */
@keyframes loadCar {
  0% { width: 5rem; }
  100% { width: 100%; }
}
/* Second */
button.type-select {
  background-color: transparent;
  border: solid 1px #d4dae3;
  border-radius: 0.5rem;
  color: #164e63;
  display: flex;
  gap: 0.5rem;
}
button.type-select:hover {
  background-color: #e9eaec;
  transform: scale(1.05);
  color: #164e63;
}
button.type-select:focus {
  background-color: #e9eaec;
  transform: scale(1.05);
  color: #164e63;
  outline: none;
}

.vehicle-info {
  display: flex;
  flex-flow: column;
}
.vehicle-info span {
  font-size: 0.875rem;
  font-weight: 500;
}
.vehicle-info p {
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: balance;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
}
.imagesInput {
  display: none;
}
.file-control {
  width: 100%;
  display: flex;
  flex-flow: column;
  align-items: center;
  border: dashed 2px #d4dae3;
  border-radius: 0.5rem;
  grid-column: span 2;
  padding: 2rem;
}
.file-svg {
  width: 3rem;
  height: 3rem;
  color: #8495ac;
  margin-bottom: 1rem;
}
.file-control:hover {
  cursor: pointer;
  border-color: #000;
  transition: color,background-color,border-color,text-decoration-color,fill,stroke;
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}
.select-files {
  background-color: #fff;
  border-radius: 6px;
  transition: color,background-color,border-color,text-decoration-color,fill,stroke;
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  border: solid 1px #d4dae3;
  padding: 0.5rem 1rem;
}
.select-files:hover {
  background-color: #f1f5f9;
}
.steps-container {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
}
.steps-container .step {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 1rem;
}
.steps-container .step .number {
  color: #506079;
  background-color: #d4dae3;
  border-radius: 50%;
  width: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  transition-property: color,background-color,border-color,text-decoration-color,fill,stroke,transform;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: 1s;
}
.steps-container .step .number span,
.steps-container .step .number svg {
  transition-property: transform;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: 250ms;
}
.steps-container .step .number.current,
.steps-container .step .number.checked {
  background-color: #155e75;
  color: #fff;
}
.separator {
  height: 1px;
  flex: 1 1 0%;
  background-color: #d4dae3;
  margin: 0 1rem;
}
.finance-sent {
  margin-top: 2rem;
  display: flex;
  flex-flow: column;
  align-items: center;
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}
.finance-sent svg {
  width: 3rem;
  height: 3rem;
}
.muted-txt {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #64748b;
}
button.photos-btn {
  display: flex;
  align-items: center;
  background-color: #fff;
  color: #0f172a;
  font-weight: 400;
  gap: 0.5rem;
  transition-property: color,background-color,border-color,text-decoration-color,fill,stroke;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .15s;
  border-radius: 6px;
  border: solid 1px #e2e8f0;
}
.photos-btn:hover,
.photos-btn:active {
  background-color: #f1f5f9;
  color: #0f172a;
}
.yellow-alert {
  padding: 1rem;
  border: solid 1px #f6de92;
  background-color: #fdf9e9;
  border-radius: 0.5rem;
  margin: 1rem 0;
}
.yellow-alert svg,
.yellow-alert p {
  color: #db9317;
}
.yellow-alert span {
  color: #8e4b10;
  font-weight: 600;
  font-size: 1rem;
}
.yellow-alert .title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.tip-container {
  position: relative;
}
tool-tip.tool-tip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  z-index: 1000;
  border: solid 1px #d4dae3;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);
}

/* Tooltip position variants */
.tool-tip.bottom {
  top: 100%;
  margin-top: 6px;
  transform: translate(-50%, -4px);
}

.tool-tip.top {
  bottom: 100%;
  margin-bottom: 6px;
  transform: translate(-50%, 4px);
}

.tip-container:hover .tool-tip,
.tool-tip.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.adv-list {
  list-style: none;
}
.advice {
  display: flex;
  margin-bottom: 1rem;
}
.adv-title {
  font-size: 1rem;
  line-height: 24px;
  font-weight: 500;
}
.adv-body {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  color: #506079;
}
.tool-tip svg {
  color: #09c084;
  margin-right: 0.5rem;
}
.tool-tip p {
  margin: 0;
}
.chevron-down {
  position: absolute;
  width: 1rem;
  height: 1rem;
  color: #acb6c5;
  top: 25%;
  right: 5%;
}
.form-separator {
  margin: 1.5rem 0 !important;
  border: none;
  border-bottom: solid 1px #d4dae3;
}
#images-container {
  grid-column: 1/-1;
}
#images-list {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
}
#images-counter {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75rem;
  margin: 0;
  margin-bottom: 1rem;
  text-align: left;
}
.preview-container {
  position: relative;
}
.preview-container:hover .actionBtn {
  opacity: 1;
}
img.img-preview {
  width: 100%;
  height: 8rem;
  object-fit: cover;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);
  border-radius: 0.5rem;
}
.deleteBtn, .count-overlay, .expandBtn {
  position: absolute;
}
.deleteBtn {
  top: 0.5rem;
  right: 0.5rem;
  background-color: #ff0000;
}
.deleteBtn svg {
  color: #fff;
}
.deleteBtn:hover {
  background-color: #ff0000;
}
.expandBtn {
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: rgba(241, 245, 249, 1);
}
.expandBtn:hover {
  background-color: rgba(241, 245, 249, 0.8);
}
.expandBtn svg {
  color: #000;
}
.actionBtn {
  border-radius: 6px;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(.4,0,.2,1);
}
.actionBtn svg {
  width: 1rem;
  height: 1rem;
}
.count-overlay {
  bottom: 0.5rem;
  left: 0.5rem;
  margin: 0;
  font-size: 0.75rem;
  color: #fff;
  padding: 0.25rem 0.5rem;
  background-color: rgb(0 0 0/0.5);
}
.preview_dialog {
  border: none;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 48rem;
}
.preview_dialog::backdrop {
  background-color: rgba(0,0,0,.8);
}
.dialog_header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}
.dialog_title {
  font-size: 1.125rem;
  line-height: 1;
  font-weight: 600;
  margin: 0;
}
.dialog_subtitle {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin: none;
  margin-top: 0.375rem;
  color: #64748b;
}
.preview_dialog button.close_dialog {
  width: 1rem;
  height: 1rem;
  background: none;
  border-radius: 6px;
  padding: 0;
  color: #0f172a;
}
.preview_dialog button.close_dialog:focus,
.preview_dialog button.close_dialog:focus-visible {
  box-shadow: 
  0 0 0 2px hsl(0 0% 100%),
  0 0 0 4px hsl(215 20.2% 65.1%),
  0 0 #0000;
}
.preview_dialog button.close_dialog svg {
  width: 1rem;
  height: 1rem;
}
.dialog_image {
  height: auto;
  width: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .steps-container {
    justify-content: space-between;
    gap: 0.25rem;
  }
  .steps-container .step {
    flex-direction: column;
    gap: 0.25rem;
  }
  .steps-container .step span:not(.number span) {
    display: none;
  }
  .separator {
    margin: 0;
    flex: 1;
    height: 2px;
  }
  .steps-container .step .number {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .vehicle-info {
    text-align: left;
  }
}