/* Reset and Base Styles */
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.primary-color {
  color: #004d80;
}
.secondary-color {
  color: #007cce;
}
html {
  font-size: 0.76923vw;
  font-size: clamp(6px, 0.76923vw, 10px);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  height: 100%;
  color: #444444;
}

@media print, screen and (max-width: 640px) {
  html {
    font-size: 1.5625vw;
  }
}

body {
  position: relative;
  font-family:
    'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    Meiryo, sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1.5;
  color: #444444;
  word-break: break-all;
  padding: 0;
  margin: 0 !important;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Reset Styles */
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
ul,
ol,
li,
form,
label,
table,
tbody,
thead,
tr,
th,
td,
article,
aside,
figure,
figcaption,
footer,
header,
nav,
section {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  font-family:
    'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    Meiryo, sans-serif;
  font-weight: 600;
}

article,
aside,
figcaption,
figure,
footer,
header,
nav,
section {
  display: block;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  vertical-align: middle;
  border-style: none;
}

button {
  outline: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 100%;
  font-weight: 600;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: 600;
}

textarea {
  overflow: auto;
  resize: none;
}

.flex {
  display: flex;
}

*:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

/* Utility Classes */
.mt-0 {
  margin-top: 0 !important;
}
.mt-6 {
  margin-top: 6px !important;
}
.mt-16 {
  margin-top: 16px !important;
}
.mt-30 {
  margin-top: 3rem !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-30 {
  margin-bottom: 3rem !important;
}
.mb-40 {
  margin-bottom: 4rem !important;
}
.gap-5 {
  gap: 5px;
}
.gap-10 {
  gap: 10px;
}
.h-50 {
  height: 50px !important;
}

@media only screen and (max-width: 640px) {
  .mt-sp-0 {
    margin-top: 0 !important;
  }
  .mt-sp-30 {
    margin-top: 3rem !important;
  }
  .mb-sp-30 {
    margin-bottom: 3rem !important;
  }
  .mb-sp-40 {
    margin-bottom: 4rem !important;
  }
}

.bg-white {
  background-color: #ffffff !important;
}
.green-txt {
  color: #2bbbad;
}
.text-center {
  text-align: center !important;
}
.padding-5-7 {
  padding: 5px 7px !important;
}
.auto-height {
  height: auto !important;
}
.disabled {
  pointer-events: none;
  opacity: 0.5;
}
.span-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes moveSideways {
  from {
    right: 8px;
  }
  to {
    right: 22px;
  }
}

/* Header */
.header {
  padding: 10px 0;
  width: 100%;
  background: #595959;
  color: #ffffff;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-top {
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 640px) {
  .header-top {
    flex-direction: column;
    font-size: 2rem;
  }
}

.header-top img {
  width: 80px;
}

@media only screen and (max-width: 640px) {
  .header-top img {
    width: 11rem;
  }
}

.header-logo img {
  width: 140px;
}

@media only screen and (max-width: 640px) {
  .header-logo img {
    width: 20rem;
  }
}

.header-bottom {
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-bottom .sm-txt {
  font-size: 14px;
}

@media only screen and (max-width: 640px) {
  .header-bottom .sm-txt {
    font-size: 1.6rem;
  }
  .header-bottom {
    flex-direction: column;
    font-size: 2.4rem;
  }
}

/* Main Content */
main#main {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  flex-grow: 1;
  background-image: url('../img/bg.webp');
  background-size: cover;
  background-position: center center;
  object-fit: cover;
  background-repeat: no-repeat;
  overflow-y: scroll;
  height: 600px;
}

@media only screen and (max-width: 640px) {
  main#main {
    background: rgb(0, 49, 81, 0.4);
    background-image: none;
  }
}

/* Required Tag */
.required-tag {
  width: 30px !important;
  font-size: 11px;
  background: red !important;
  border-radius: 4px;
  text-align: center;
  padding: 2px;
  height: auto !important;
  color: white;
}

/* Common Elements */
.common-title {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
  margin-left: 15px;
  gap: 4px;
  align-items: center;
}

.common-title span {
  width: 12px;
  height: 12px;
  background-color: #2bbbad;
}

.common-title p {
  font-size: 15px;
  line-height: 33.89px;
  letter-spacing: 0.02em;
  text-align: left;
  margin: 0;
}

.common-description {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  padding-bottom: 8px;
}

.common-description .common-img {
  width: 50px;
}

.common-description .common-img img {
  width: 100%;
}

.common-description .common-des {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -3px;
}

.common-description .common-des .description-triangle {
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 8px 15px 8px 0;
  border-color: transparent rgba(147, 215, 220, 0.8) transparent transparent;
  transform: rotate(0deg);
}

.common-description .common-des .description-text {
  padding-top: 10px;
  background-color: rgba(147, 215, 220, 0.8);
  border-radius: 5px;
  width: 255px;
  height: 67px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  line-height: 22px;
  text-align: left;
}

/* Next Button - Common Styles */
.next,
.next-step-5,
.next-step-6,
.next-step-7,
.next-step-8,
.next-step-9,
.next-step-10 {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 2px solid black;
  height: 70px;
  gap: 10px;
}

.next-button,
.next-step-5 .next-button,
.next-step-6 .next-button,
.next-step-7 .next-button,
.next-step-8 .next-button,
.next-step-9 .next-button,
.next-step-10 .next-button {
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  color: white;
  width: 230px;
  height: 45px;
  display: flex;
  justify-content: center;
  font-size: 20px;
  align-items: center;
  background-color: #0d8ea3;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.next-button.first-child,
.next-step-5 .next-button.first-child,
.next-step-6 .next-button.first-child,
.next-step-7 .next-button.first-child,
.next-step-8 .next-button.first-child,
.next-step-9 .next-button.first-child,
.next-step-10 .next-button.first-child {
  box-shadow: none !important;
  color: currentColor !important;
  background: none;
  width: 100px;
}

.next-button:hover,
.next-step-2 .next-button:hover,
.next-step-5 .next-button:hover,
.next-step-6 .next-button:hover,
.next-step-7 .next-button:hover,
.next-step-8 .next-button:hover,
.next-step-9 .next-button:hover,
.next-step-10 .next-button:hover {
  background-color: #93d7dc;
}

.next-button:active,
.next-step-2 .next-button:active,
.next-step-5 .next-button:active,
.next-step-6 .next-button:active,
.next-step-7 .next-button:active,
.next-step-8 .next-button:active,
.next-step-9 .next-button:active,
.next-step-10 .next-button:active {
  background-color: #46aec0;
}

/* Step Container */
.step-1,
.step-2,
.step-3,
.step-4,
.step-5,
.step-6,
.step-7,
.step-8,
.step-9,
.step-10 {
  display: block;
  width: 375px;
  background-color: rgba(255, 255, 255, 0.8);
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

.step-2,
.step-3,
.step-4,
.step-5,
.step-6,
.step-7,
.step-8,
.step-9,
.step-10 {
  display: none;
}

.step-5,
.step-6,
.step-7,
.step-8,
.step-9,
.step-10 {
  overflow-y: visible;
  z-index: 10;
  height: auto;
  margin-bottom: 20px;
}

/* Step Header */
.step-head {
  border-bottom: 2px solid black;
  height: 80px;
}

.step-car {
  position: absolute;
  top: 25px;
  left: -7px;
  z-index: 10;
  width: 60px;
  height: auto;
}

.step-car img {
  width: 100%;
}

/* Step specific car positions */
.step-2 .step-car {
  left: 33px;
}
.step-3 .step-car {
  left: 65px;
}
.step-4 .step-car {
  left: 102px;
}
.step-5 .step-car {
  left: 141px;
}
.step-6 .step-car {
  left: 176px;
}
.step-7 .step-car {
  left: 215px;
}
.step-8 .step-car {
  left: 252px;
}
.step-9 .step-car {
  left: 287px;
}
.step-10 .step-car {
  left: 324px;
}

.step-text {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.step-text p {
  font-size: 6px;
  margin-top: 15px;
  margin-left: 2px;
  margin-right: 2px;
  color: #d9d9d9;
}

.step-text p span {
  font-size: 13px;
}

.step-text .step-check {
  color: #c88282;
  font-size: 8px;
  margin-top: 15px;
  margin-left: 2px;
  margin-right: 2px;
}

.step-text .step-check .span-check {
  font-size: 14px;
  color: #c88282;
}

.step-road .road-bar {
  background-color: #d9d9d9;
  width: 333px;
  height: 3px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

/* Step Road Rounds */
.span-round1,
.span-round2,
.span-round3,
.span-round4,
.span-round5,
.span-round6,
.span-round7,
.span-round8,
.span-round9,
.span-round10 {
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background-color: #d9d9d9;
  display: flex;
  position: absolute;
  top: 53px;
}

.span-round1 {
  left: 18px;
}
.span-round2 {
  left: 53px;
}
.span-round3 {
  left: 89px;
}
.span-round4 {
  left: 127px;
}
.span-round5 {
  left: 164px;
}
.span-round6 {
  left: 201px;
}
.span-round7 {
  left: 238px;
}
.span-round8 {
  left: 275px;
}
.span-round9 {
  left: 312px;
}
.span-round10 {
  left: 348px;
}

/* Step 1 */
.step-1-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  position: relative;
  gap: 20px;
  margin-bottom: 20px;
}

/* License Table Container */
.license-table {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  border: 2px solid #333;
  background-color: #fff;
}

/* License Labels (left side) */
.license-labels {
  display: flex;
  flex-direction: column;
  border-right: 2px solid #333;
}

.license-label {
  width: 40px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  writing-mode: vertical-rl;
  text-orientation: upright;
  border-bottom: 1px solid #333;
}

/* License Grid (2x7 layout like actual license) */
.license-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background-color: #333;
}

.license-item {
  cursor: pointer;
  border: none;
  border-radius: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  color: #333;
  background-color: #fff;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 2px,
    rgba(255, 192, 192, 0.4) 2px,
    rgba(255, 192, 192, 0.4) 4px
  );
  transition: all 0.2s ease;
  line-height: 1;
  padding: 2px;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.license-item:hover {
  color: #c44444;
}

.license-item.bg-white:hover {
  color: inherit !important;
}

.license-item.selected {
  background-color: rgba(255, 192, 192, 0.8) !important;
  color: #c44444;
  border-color: #c44444;
}

/* License None Option */
.license-none {
  margin-top: 10px;
}

.no-license:hover {
  background-color: #93d7dc !important;
}

.no-license.bg-white:hover {
  background-color: #ffffff !important;
  color: inherit !important;
}

.no-license.selected {
  background-color: #93d7dc !important;
  color: #0d8ea3;
}

/* Next Image Animations */
.next-img-step-1,
.next-img-step-2,
.next-img-step-3,
.next-img-step-4,
.next-img-step-5,
.next-img-step-6,
.next-img-step-7,
.next-img-step-8,
.next-img-step-9,
.next-img-step-10,
.next-step-9-img,
.next-step-10-img {
  width: 60px;
  position: absolute;
  right: 8px;
  z-index: 20;
  transition: top 0.5s ease;
  animation: moveSideways 0.7s infinite alternate;
}

.next-img-step-1 {
  top: 70px;
}
.next-img-step-2 {
  top: 20px;
  z-index: 200;
}
.next-img-step-3 {
  top: 55px;
}
.next-img-step-4 {
  top: 30px;
}
.next-img-step-5 {
  top: 180px;
  z-index: 3;
}
.next-img-step-6 {
  top: 1.4rem;
  z-index: 3;
}
.next-img-step-7 {
  top: 1.4rem;
  z-index: 3;
}
.next-img-step-8 {
  top: 1.4rem;
  z-index: 3;
}
.next-img-step-9 {
  top: 140px;
  z-index: 3;
}
.next-step-9-img {
  top: 590px;
}

.next-img-step-10 {
  top: 140px;
  z-index: 3;
}

.next-step-10-img {
  top: 590px;
}

.next-img-step-1 img,
.next-img-step-2 img,
.next-img-step-3 img,
.next-img-step-4 img,
.next-img-step-5 img,
.next-img-step-6 img,
.next-img-step-7 img,
.next-img-step-8 img,
.next-img-step-9 img,
.next-step-9-img img,
.next-step-10-img img {
  width: 100%;
}

/* Step 2 */
.step-2-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}

.step-2-one,
.step-2-two {
  display: flex;
  gap: 10px;
  position: relative;
  justify-content: center;
  cursor: pointer;
  align-items: center;
  flex-flow: column;
}

.step-2-cycle {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 1px solid gray;
  border-radius: 5px;
  width: 340px;
  height: 42px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  letter-spacing: -0.04em;
}

.step-2-span {
  font-size: 16px;
}

.step-2-cycle:hover {
  background-color: #93d7dc;
}

.step-2-cycle:active {
  background-color: #46aec0;
}

/* Step 1, 2, 3, 4, 7 Options */
.step-1-content,
.step-2-content,
.step-3-content,
.step-4-content,
.step-8-content,
.step-9-content,
.step-10-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 6px;
  gap: 8px;
  position: relative;
}

/* License Color Options Styling */
.license-color-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  margin-bottom: 10px;
}

.license-color-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border-radius: 5px;
  border: 1px gray solid;
  cursor: pointer;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  min-width: 90px;
  flex: 1;
  max-width: 110px;
}

.license-color-option:hover {
  border-color: #93d7dc;
  background-color: #f0f8f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.license-color-option:active {
  background-color: #93d7dc;
  color: #0d8ea3;
  border-color: #0d8ea3;
  transform: translateY(0);
}

.license-color-option.selected {
  background-color: #93d7dc !important;
  color: #0d8ea3;
  border-color: #0d8ea3;
}

.license-color-image {
  width: 60px;
  height: 40px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.license-color-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.license-color-text {
  font-size: 14px;
  font-weight: 600;
  color: #444444;
  text-align: center;
}

/* Step 7 Content (now postal code) */
.step-8-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.step-8-content-field {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-option {
  width: 340px;
  height: 36px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px gray solid;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  line-height: 15.2px;
  letter-spacing: -0.04em;
  text-align: left;
}

.step-7-content .step-option {
  width: 320px;
}

.step-option:hover {
  color: #0d8ea3;
}

.step-option.bg-white:hover {
  color: inherit !important;
}

.step-option.selected {
  background-color: #93d7dc !important;
  color: #0d8ea3;
  border-color: #0d8ea3;
}

/* Step 4 Title */
.step-4-title {
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0.02em;
  text-align: left;
  margin: 0;
}

.step-4-title-text {
  margin-top: 16px;
  margin-left: 15px;
  font-size: 15px;
  line-height: 22px;
  letter-spacing: 0.02em;
  text-align: left;
}

/* License number input styling for Step 5 */
.license-number-input {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}

.license-number-field {
  width: 280px;
  height: 80px;
  font-size: 48px;
  text-align: center;
  border: 3px solid #d9d9d9;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-weight: 700;
  background-color: #fff;
  color: #333;
  letter-spacing: 12px;
  padding-left: 12px;
}

.license-number-field::placeholder {
  color: #d9d9d9;
  font-weight: 400;
  letter-spacing: 12px;
}

.license-number-field:focus {
  border-color: #93d7dc;
  outline: none;
  box-shadow:
    0 0 0 4px rgba(147, 215, 220, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.license-number-field:hover {
  border-color: #93d7dc;
}

.license-number-field.filled {
  background-color: #f0f8f9;
  border-color: #0d8ea3;
}

.licenseInputError {
  display: none;
  color: red;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* Step 5 Options */
.step-5-content,
.step-6-content,
.step-7-content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative;
}

.step-7-content .step-option {
  width: 170px;
  height: 31px;
}

/* Step 5 Description */
.step-5 .common-description,
.step-6 .common-description {
  margin-top: 30px;
  margin-bottom: 30px;
  justify-content: center;
  align-items: center;
  display: flex;
  padding-bottom: 8px;
}

.step-5 .common-description,
.step-6 .common-description .common-img {
  width: 40px;
}

.step-5 .common-description,
.step-6 .common-description .common-des .description-text {
  padding: 8px;
  width: 280px;
  height: 96px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 18px;
}

/* Step 6 Content (now accident history) */
/* .step-7-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 6px;
  gap: 8px;
  position: relative;
} */

.step-7-content-field {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-input-one {
  width: 320px;
  border: 1px solid gray;
  line-height: 12px;
  height: 54px;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  font-size: 20px;
  padding: 0 15px;
}

.step-7-input-first {
  gap: 20px;
  display: flex;
  justify-content: center;
}

.postInputError {
  display: none;
  color: red;
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
  font-weight: bold;
}

/* Step 6 Description */
.nearest-description {
  margin-top: 30px;
  margin-bottom: 30px;
  justify-content: center;
  align-items: center;
  display: flex;
  padding-bottom: 8px;
}

.nearest-description .common-img {
  width: 35px;
}

.nearest-description .common-des .description-text {
  padding: 8px;
  width: 280px;
  height: 65px;
  font-size: 13px;
  line-height: 18px;
}

/* Step 8 */
.step-9-description {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  padding-bottom: 8px;
}

.step-9-description .common-img {
  width: 35px;
}

.step-9-description .common-des .description-text {
  padding: 8px;
  width: 280px;
  height: 65px;
  font-size: 13px;
  line-height: 18px;
}

/* Step 9 name field - special layout for two inputs side by side */
.step-10-content .step-10-name-input {
  gap: 1rem;
}

.step-10-name-input {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.step-10-input {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  flex-direction: column;
  align-items: center;
}

/* .last-input class removed - functionality handled by common .step-9-content */

.custom-firstname-input,
.custom-name-input {
  padding: 1px 5px !important;
  width: 160px;
  border: 1px solid gray;
  line-height: 12px;
  height: 54px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  font-size: 20px;
}

.custom-firstname-input::placeholder,
.custom-name-input::placeholder {
  font-size: 18px;
  color: #6e6f71;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-phone-input {
  padding: 1px 5px !important;
  width: 330px;
  border: 1px solid gray;
  line-height: 12px;
  height: 54px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  font-size: 20px;
}

.custom-phone-input::placeholder {
  font-size: 16px;
  color: #6e6f71;
}

.phone-input {
  display: flex;
  justify-content: center;
  align-items: center;
}

.email-input {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-email-input {
  padding: 1px 5px !important;
  width: 330px;
  border: 1px solid gray;
  line-height: 12px;
  height: 54px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  font-size: 20px;
}

.custom-email-input::placeholder {
  font-size: 16px;
  color: #6e6f71;
}

/* Age Selection styles are now handled by common .step-9-content */

.age-option {
  width: 330px;
  height: 54px;
  border-radius: 5px;
  font-size: 16px;
  display: flex;
  align-items: center;
  border: 1px solid gray;
  box-sizing: border-box;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
  padding: 1px 5px;
  line-height: 26px;
  justify-content: center;
  text-align: center;
  color: gray;
  font-size: 20px;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-position: calc(100% - 1.2rem) 50%;
  background-size: 1rem 0.8rem;
  background-repeat: no-repeat;
  z-index: 0;
}

@media only screen and (max-width: 640px) {
  .age-option {
    background-position: calc(100% - 1rem) 50%;
  }
}

.age-option-item:hover {
  background-color: #6e6f71 !important;
}

/* Error Messages */
.nameInputError,
.phoneInputError,
.ageInputError,
.emailInputError {
  display: none;
  color: red;
  text-align: center;
  font-size: 15px;
}

.ageInputError {
  margin-top: 10px;
}

.emailInputError {
  margin-top: 10px;
}

/* Footer */
.footer {
  background-color: #000000;
  color: #ffffff;
}

.footer-relations {
  padding: 20px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 640px) {
  .footer-relations {
    padding: 2rem;
  }
}

.footer-links {
  gap: 40px;
  display: flex;
  justify-content: center;
}

@media only screen and (max-width: 640px) {
  .footer-links {
    font-size: 1.6rem;
    gap: 2rem;
    flex-wrap: wrap;
  }
}

.copyright {
  font-size: 14px;
  color: gray;
  margin-top: 10px;
}

@media only screen and (max-width: 640px) {
  .copyright {
    font-size: 1.2rem;
  }
}

/* Thanks Page */
.thanks {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 85vh;
}

.thanks h2 {
  font-size: 6.4rem;
  color: #0d7e91;
}

.thanks h2 span {
  font-size: 4.8rem;
}

.goTop {
  font-size: 2.4rem;
  width: 320px;
  height: 44px;
  background-color: #0d8ea3;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.goTop:hover {
  background-color: darkcyan;
}

.goTop:active {
  background-color: #46aec0;
}

/* Mobile responsive utilities */
@media only screen and (max-width: 640px) {
  .pc {
    display: none !important;
  }
  .sp {
    display: flex !important;
  }
}

@media print, screen and (min-width: 641px) {
  .pc {
    display: flex !important;
  }
  .sp {
    display: none !important;
  }
  .pc-hide {
    display: none !important;
  }
}

@media only screen and (max-width: 640px) {
  .sp-hide {
    display: none !important;
  }

  .step-1,
  .step-2,
  .step-3,
  .step-4,
  .step-5,
  .step-6,
  .step-7,
  .step-8,
  .step-9,
  .step-10 {
    width: 95%;
    max-width: 375px;
  }

  .custom-input-one,
  .custom-phone-input,
  .custom-email-input,
  .age-option {
    max-width: 330px;
  }

  .step-9-name-input {
    flex-direction: row;
    gap: 0.5rem;
  }

  /* License table responsive */
  .license-table {
    max-width: 360px;
  }

  .license-label {
    width: 25px;
    height: 111px;
    font-size: 12px;
  }

  .license-grid {
    gap: 1px;
  }

  .license-item {
    width: 43px;
    height: 55px;
    font-size: 9px;
  }

  /* License Color Options Mobile Responsive */
  .license-color-options {
    flex-wrap: wrap;
    gap: 10px;
  }

  .license-color-option {
    min-width: 80px;
    max-width: 105px;
    padding: 10px 5px;
  }

  .license-color-option:hover {
    transform: translateY(-1px);
  }

  .license-color-option:active {
    transform: translateY(0);
  }

  .license-color-image {
    width: 100%;
    height: 30px;
    margin-bottom: 6px;
  }

  .license-color-text {
    font-size: 12px;
  }

  /* License number input responsive */
  .license-number-field {
    width: 240px;
    height: 70px;
    font-size: 36px;
    letter-spacing: 8px;
    padding-left: 8px;
  }

  .license-number-field::placeholder {
    letter-spacing: 8px;
  }
}

/* Loading state for postal code validation */
.loading {
  opacity: 0.7;
  cursor: wait !important;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top: 2px solid #93d7dc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}
