@font-face {
  font-family: 'Kia Signature';
  src: url('/assets/font/KiaSignatureFixRegular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kia Signature';
  src: url('/assets/font/KiaSignatureFixBold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: 'Kia Signature', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text: #05141f;
  --muted: #666;
  --subtle: #4a565e;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.form,
.step,
.step fieldset,
.step legend,
.step p,
.step h2,
.step address {
  margin: 0;
  padding: 0;
}

.form {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
}

.step,
.step fieldset {
  min-width: 0;
  border: 0;
}

.step > legend {
  display: block;
  width: 100%;
  padding: 1rem 3.25rem;
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

[data-progress] {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  width: 100%;
  gap: .3125rem;
  margin: 0;
  padding: .5rem 2.625rem 1.0625rem;
  list-style: none;
}

[data-progress-item] {
  display: flex;
  flex: 1;
  align-items: center;
}

[data-progress-item]::after {
  content: '';
  flex: 1;
  height: .125rem;
  margin-left: .3125rem;
  background: #cdd0d2;
}

[data-progress-item]:last-child {
  flex: 0 0 auto;
}

[data-progress-item]:last-child::after {
  content: none;
}

[data-progress-dot] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding-top: .0625rem;
  border-radius: 50%;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  background: #cdd0d2;
}

[data-progress-item][data-state="done"] [data-progress-dot],
[data-progress-item][data-state="active"] [data-progress-dot] {
  background: var(--text);
}

[data-progress-item][data-state="done"]::after {
  background: var(--text);
}

[data-progress-item][data-state="done"] [data-progress-dot] {
  font-size: 0;
}

[data-progress-item][data-state="done"] [data-progress-dot]::before {
  content: '';
  width: .875rem;
  height: .875rem;
  background: url('/assets/img/check.svg') no-repeat center / .75rem .5rem;
}

.msg {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.4;
}

.msg:empty {
  display: none;
}

.form > .msg:not(:empty) {
  margin: .75rem 3.25rem 1rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: var(--text);
  font-size: .875rem;
  line-height: 1.45;
  background: #f3f4f5;
}

.modal .msg:not(:empty) {
  margin-bottom: 1rem;
}

button,
input {
  font: inherit;
}

button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  appearance: none;
  outline: none;
}

button:disabled {
  cursor: not-allowed;
}

.btn--back,
.btn--close {
  position: absolute;
  top: 1rem;
  width: 24px;
  height: 24px;
}

.btn--back {
  left: 1.25rem;
  background: url('/assets/img/back.svg') no-repeat center / 11px 19px;
}

.btn--close {
  right: 1.25rem;
  background: url('/assets/img/close.svg') no-repeat center / 18px 18px;
}

.field {
  width: 100%;
  height: 3rem;
  padding: .8125rem 1rem;
  border: 1px solid #8d959a;
  border-radius: .25rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.57;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

.field:focus {
  border-color: var(--text);
}

.field:user-invalid,
.field:user-invalid:focus {
  border-color: #ed0c1b;
}

.postal {
  position: relative;
  display: block;
  width: auto;
  height: 3rem;
  margin: .625rem 1.25rem 0;
  padding: .3125rem 1rem;
  border: 1px solid var(--text);
  border-radius: 6.25rem;
  background: #fff;
  cursor: text;
  animation: field-in .18s ease-out;
  -webkit-tap-highlight-color: transparent;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

.postal:has(#postal:user-invalid) {
  border-color: #ed0c1b;
}

#postal,
.postal #city:not([hidden]) {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.57;
}

#postal {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  background: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

#postal::placeholder {
  color: #6d787f;
  font-size: .875rem;
  font-weight: 700;
  opacity: 1;
}

.postal #city:not([hidden]) {
  position: absolute;
  top: 50%;
  left: calc(1rem + 5ch + .5rem);
  max-width: calc(100% - 1rem - 5ch - .5rem - 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  pointer-events: none;
}

.place__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3125rem;
  width: fit-content;
  margin: .625rem 1.25rem 0;
  padding: .5rem .8125rem;
  border-radius: 1.25rem;
  color: #6d787f;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  background: #fff;
  box-shadow: 0 .25rem .5rem rgba(5, 20, 31, .16);
  animation: field-in .18s ease-out;
  -webkit-tap-highlight-color: transparent;
  transition:
    color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease;
}

.place__btn::before {
  content: '';
  width: 1rem;
  height: 1rem;
  background: url('/assets/img/search.svg') no-repeat center / .8125rem 1rem;
}

.place__btn:active {
  background: #f3f4f5;
  box-shadow: 0 .125rem .25rem rgba(5, 20, 31, .16);
}

#cities {
  margin: .75rem 1.25rem 0;
  padding: 0;
  border: 0;
}

#cities label {
  position: relative;
  display: block;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#cities label + label {
  margin-top: .5rem;
}

#cities label:has(input:checked) {
  font-weight: 700;
}

#dealers {
  margin-top: 1rem;
  padding: 2.5rem 1.25rem 0;
  border-radius: 1.25rem 1.25rem 0 0;
  background: #fff;
  box-shadow: 0 -.375rem 1rem -.625rem rgba(5, 20, 31, .22);
}

.dealers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dealer {
  padding-block: 1.25rem;
}

.dealer:first-child {
  padding-block-start: 0;
}

.dealer + .dealer {
  border-top: 1px solid #eff0f0;
}

.dealer__name {
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.55;
}

.dealer__dist,
.dealer__addr {
  display: inline;
  color: var(--subtle);
  font-weight: 400;
}

.dealer__dist {
  font-size: .875rem;
  line-height: 1.57;
}

.dealer__addr {
  font-size: .8125rem;
  line-height: 1.53;
}

.dealer__dist + .dealer__addr::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: .75rem;
  margin: 0 .375rem;
  vertical-align: -.125rem;
  background: #cdd0d2;
}

.dealer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3125rem;
  width: 100%;
  min-width: 7.5rem;
  margin-top: 1rem;
  padding: .5rem 1.5rem .625rem;
  border-radius: .25rem;
  color: #303e48;
  text-align: center;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.57;
  background: #f3f4f5;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  transition:
    color .18s ease,
    background-color .18s ease;
}

.dealer__btn::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url('/assets/img/reserve.svg') no-repeat center / contain;
}

.dealer__btn[data-phone]::before {
  width: 14px;
  height: 15px;
  background-image: url('/assets/img/phone.svg');
}

.dealer__btn:active,
.dealer__btn:has(.dealer__radio:checked) {
  background: #e8eaeb;
}

address {
  font-style: normal;
}

.sr,
#cities input,
.dealer__radio,
.date__day input,
#time input,
.phone__codes input {
  position: absolute;
  width: .0625rem;
  height: .0625rem;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.modal {
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto 0 0;
  padding: 1.5rem 1.5rem 2rem;
  border: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 round 1.25rem 1.25rem 0 0);
}

.modal::backdrop {
  background: rgba(0, 0, 0, .6);
}

.modal[open] {
  animation: modal-in .28s ease-out;
}

.modal fieldset,
.modal legend {
  margin: 0;
  padding: 0;
  border: 0;
}

.modal p {
  margin: 0;
}

.modal__dealer {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .625rem 0;
  color: var(--subtle);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.modal__dealer::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  background: url('/assets/img/pin.svg') no-repeat center / 1rem 1.1875rem;
}

.date__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3125rem;
  padding: 1.25rem 0;
}

.date__title {
  min-width: 7.5rem;
  color: var(--text);
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.55;
}

.date__prev,
.date__next {
  width: 1.25rem;
  height: 1.25rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: .5625rem 1rem;
}

.date__prev:disabled,
.date__next:disabled {
  visibility: hidden;
}

.date__prev {
  background-image: url('/assets/img/prev.svg');
}

.date__next {
  background-image: url('/assets/img/next.svg');
}

.date__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .25rem;
}

.date__week {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  color: #636d74;
  text-align: center;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1.5;
}

.date__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
}

.date__day {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.date__day:has(input:disabled) {
  cursor: not-allowed;
}

.date__day time,
.date__day--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto;
  color: var(--subtle);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.date__day input:disabled + time {
  color: #ccd0d2;
}

.date__day input:checked + time {
  border-radius: 50%;
  color: #fff;
  background: var(--text);
}

.date__day--loading {
  border-radius: 50%;
  color: transparent;
  background: #f3f4f5;
  animation: pulse 1.4s ease-in-out infinite;
}

#date,
#time {
  padding-bottom: 2.75rem;
}

#time {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.date__picked {
  grid-column: 1 / -1;
  padding-bottom: 1.5rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.55;
}

#time label {
  position: relative;
  cursor: pointer;
}

#time label:not(:nth-of-type(3n)) {
  margin-right: .625rem;
}

#time label:nth-of-type(n+4) {
  margin-top: 1rem;
}

#time time {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  border: 1px solid var(--subtle);
  border-radius: .625rem;
  color: var(--subtle);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.57;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

#time input:checked + time {
  border-color: var(--text);
  color: #fff;
  background: var(--text);
}

#time input:checked + time::before {
  content: '';
  width: 1rem;
  height: 1rem;
  margin-right: .25rem;
  background: url('/assets/img/check.svg') no-repeat center / .8125rem .5625rem;
}

[data-step="user"],
[data-step="summary"] {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1.25rem .625rem;
  min-height: 100dvh;
  padding: 0 1.25rem 7rem;
}

.form__field {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  gap: .625rem;
}

[data-step="user"] > label.form__field:nth-of-type(1),
[data-step="user"] > label.form__field:nth-of-type(2) {
  flex-basis: calc((100% - .625rem) / 2);
}

.form__field:has(input[type="hidden"]) {
  display: none;
}

.form__label {
  color: var(--text);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.57;
}

.phone {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border: 1px solid #8d959a;
  border-radius: .25rem;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s ease;
}

.phone__code {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .3125rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.57;
}

.phone__code::after {
  content: '';
  width: 1rem;
  height: 1rem;
  background: url('/assets/img/chevron.svg') no-repeat center / .8125rem .5rem;
}

.phone__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.phone:has(.phone__input:focus) {
  border-color: var(--text);
}

.phone:has(.phone__input:user-invalid) {
  border-color: #ed0c1b;
}

.summary {
  flex: 0 0 100%;
}

.summary h2 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.summary--tire {
  padding: 1rem 1.25rem;
  border-radius: .25rem;
  background: #f3f4f5;
}

.summary--tire h2 {
  color: #303e48;
  font-size: .9375rem;
  line-height: 1.6;
}

.summary--tire p {
  margin-top: .5rem;
  color: #636d74;
  font-size: .6875rem;
  font-weight: 400;
  line-height: 1.5;
}

.summary__list {
  margin: 1rem 0 0;
  padding: 0;
}

.summary__list div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .625rem;
}

.summary__list div + div {
  margin-top: .75rem;
}

.summary__list dt,
.summary__list dd {
  margin: 0;
}

.summary__list dt {
  color: #636d74;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.53;
}

.summary__list dd {
  color: var(--text);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.57;
}

.summary__list dd span {
  display: block;
}

.confirm {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  padding: 0 1.25rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(133deg, rgba(5, 20, 31, .5) 0%, rgba(5, 20, 31, .16) 15.05%, rgba(5, 20, 31, 0) 24.06%, rgba(5, 20, 31, 0) 80.27%, rgba(5, 20, 31, .15) 89.09%, rgba(5, 20, 31, .55) 111.68%),
    radial-gradient(193.17% 113.6% at 96.29% 4.49%, #153248 0%, #294b65 37.96%, #142b3b 70.39%, #081e2e 100%);
  box-shadow: inset .04rem 0 .08rem rgba(113, 181, 255, .58);
}

.confirm::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 7rem;
  right: -3rem;
  width: 18.375rem;
  height: 18.5rem;
  opacity: .8;
  background: url('/assets/img/confirm.png') no-repeat center / cover;
  pointer-events: none;
}

.confirm::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 15rem;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 20, 31, 0) 0%,
    rgba(5, 20, 31, .45) 14%,
    rgba(5, 20, 31, .85) 28%,
    #05141f 42%,
    #05141f 100%
  );
  pointer-events: none;
}

.confirm h2,
.confirm .btn {
  position: relative;
  z-index: 1;
}

.confirm h2 {
  max-width: 18rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.55;
  text-wrap: balance;
}

.confirm .btn,
.modal .btn,
[data-step="user"] [data-next],
[data-step="summary"] [type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  margin: 0;
  padding: 0 1.5rem;
  border-radius: .25rem;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.6;
  transition:
    color .18s ease,
    background-color .18s ease,
    border-color .18s ease;
}

.modal [data-slot-next],
[data-step="user"] [data-next],
[data-step="summary"] [type="submit"] {
  color: #8d959a;
  background: #e8eaeb;
}

[data-step="user"] [data-next],
[data-step="summary"] [type="submit"] {
  position: absolute;
  right: 1.25rem;
  bottom: 2rem;
  left: 1.25rem;
  width: auto;
}

.modal [data-slot-next]:not(:disabled),
[data-step="user"] [data-next]:not(:disabled),
[data-step="summary"] [type="submit"]:not(:disabled) {
  color: #fff;
  background: var(--text);
}

.modal [data-slot-next]:not(:disabled):active,
[data-step="user"] [data-next]:not(:disabled):active,
[data-step="summary"] [type="submit"]:not(:disabled):active {
  background: var(--subtle);
}

.modal [data-slot-back] {
  margin-top: .5rem;
  border: 1px solid var(--text);
  color: var(--text);
  background: #fff;
}

.modal [data-slot-back]:active {
  border-color: #d4d8db;
  background: #f2f4f6;
}

.confirm .btn {
  margin-top: 2rem;
  border: 1px solid #fff;
  color: #fff;
  text-align: center;
  background: transparent;
}

.date__day,
#time label,
.dealer__btn,
.modal .btn,
[data-step="user"] [data-next],
[data-step="summary"] [type="submit"],
.confirm .btn {
  -webkit-tap-highlight-color: transparent;
}

@keyframes modal-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes field-in {
  from {
    opacity: 0;
    transform: translateY(-.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
  }
}

#phones[open] {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.phone__title {
  margin: 0;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.55;
}

.phone__back {
  width: 1.25rem;
  height: 1.25rem;
  background: url('/assets/img/phone-close.svg') no-repeat center / .9375rem .9375rem;
}

.modal .phone__codes {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1rem;
}

.modal .phone__codes label {
  color: var(--subtle);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}
