.contact-content {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.contact-content__inner {
  width: 100%;
  max-width: calc(1280px + 2.5rem);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.contact-content__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.contact-content__eyebrow {
  margin-bottom: 0.75rem;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #e83837;
  text-transform: uppercase;
}

.contact-content__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #151515;
}

.contact-process {
  margin-top: 50px;
  margin-bottom: 100px;
}

.contact-process__title,
.contact-privacy__title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.375rem, 2.4vw, 1.625rem);
  font-weight: 700;
  line-height: 1.2;
  color: #151515;
}

.contact-process__list {
  --contact-process-arrow-size: clamp(18px, 2.1vw, 24px);
  --contact-process-circle-size: clamp(140px, 15vw, 190px);
  --contact-process-arrow-column: clamp(72px, 8vw, 128px);
  display: grid;
  grid-template-columns:
    minmax(0, var(--contact-process-circle-size))
    minmax(44px, var(--contact-process-arrow-column))
    minmax(0, var(--contact-process-circle-size))
    minmax(44px, var(--contact-process-arrow-column))
    minmax(0, var(--contact-process-circle-size))
    minmax(44px, var(--contact-process-arrow-column))
    minmax(0, var(--contact-process-circle-size));
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 32px;
  background-color: #f8f8f8;
  counter-reset: contact-process;
}

.contact-process__item {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
  counter-increment: contact-process;
}

.contact-process__item:nth-child(1) {
  grid-column: 1;
}

.contact-process__item:nth-child(2) {
  grid-column: 3;
}

.contact-process__item:nth-child(3) {
  grid-column: 5;
}

.contact-process__item:nth-child(4) {
  grid-column: 7;
}

.contact-process__item:not(:last-child)::after {
  position: absolute;
  top: 50%;
  left: calc(100% + (var(--contact-process-arrow-column) / 2));
  width: var(--contact-process-arrow-size);
  height: var(--contact-process-arrow-size);
  background: url("/assets/images/inner/Vector.svg") center / contain no-repeat;
  content: "";
  transform: translate(-50%, -50%);
}

.contact-process__circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.625rem, 1.2vw, 1rem);
  width: var(--contact-process-circle-size);
  height: var(--contact-process-circle-size);
  aspect-ratio: 1 / 1;
  border: clamp(5px, 0.6vw, 8px) solid #e60012;
  border-radius: 50%;
  background-color: #fff;
}

.contact-process__icon {
  width: auto;
  height: clamp(50px, 5vw, 71px);
  object-fit: contain;
}

.contact-process__label {
  font-size: clamp(0.875rem, 1.3vw, 1.125rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #e60012;
  text-align: center;
  white-space: nowrap;
}

.contact-form {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.contact-form__notice {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(230, 0, 18, 0.18);
  border-radius: 8px;
  background-color: rgba(230, 0, 18, 0.04);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: #e60012;
}

.contact-form__required-note {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.071em;
  color: #ff5449;
}

.contact-form__required-mark {
  color: #ff5449;
}

.contact-form__rows {
  border-top: 0;
}

.contact-form__row {
  display: grid;
  border-bottom: 1px solid #e3e3e3;
}

.contact-form__row--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form__field {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  min-width: 0;
  padding: 20px 10px;
}

.contact-form__label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  padding-right: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #000;
}

.contact-form__control {
  min-width: 0;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  border: 1px solid #c4c7c7;
  border-radius: 5px;
  background-color: #fff;
  font: inherit;
  font-size: 1rem;
  color: #151515;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input {
  height: 60px;
  border: 0;
  background-color: #f5f5f5;
  padding: 0 24px;
}

.contact-form__textarea {
  min-height: 200px;
  padding: 20px;
  line-height: 1.65;
  resize: vertical;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: #e60012;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
}

.contact-form__input.is-invalid,
.contact-form__textarea.is-invalid {
  border-color: #e60012;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.contact-form__input.is-invalid {
  outline: 1px solid #e60012;
}

.contact-radio-group.is-invalid,
.contact-consent.is-invalid {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.contact-form__error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #e60012;
}

.contact-form__textarea::placeholder {
  color: #8e9192;
}

.contact-radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.875rem;
  padding: 4px 10px;
}

.contact-radio,
.contact-consent__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}

.contact-radio input,
.contact-consent__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-radio__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #d8dadb;
  border-radius: 999px;
  background-color: #fff;
}

.contact-radio input:checked + .contact-radio__icon {
  border-color: transparent;
  background: url("/assets/images/inner/tick.svg") center / 32px 32px no-repeat;
}

.contact-radio__text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #8e9192;
}

.contact-radio input:checked ~ .contact-radio__text {
  color: #000;
}

.contact-radio input:focus-visible + .contact-radio__icon,
.contact-consent__option input:focus-visible + .contact-consent__box {
  outline: 3px solid rgba(230, 0, 18, 0.18);
  outline-offset: 3px;
}

.contact-file {
  --contact-file-clear-width: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--contact-file-clear-width) 195px;
  min-height: 60px;
  overflow: hidden;
  border: 1px solid #c4c7c7;
  border-radius: 5px;
  background-color: #fff;
}

.contact-file.is-selected {
  --contact-file-clear-width: 44px;
}

.contact-file__name {
  grid-column: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 24px;
  font-size: 1rem;
  color: #8e9192;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-file__clear {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 60px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  color: #8e9192;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.contact-file__clear:hover,
.contact-file__clear:focus-visible {
  background-color: #f5f5f5;
  color: #151515;
}

.contact-file__clear:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.18);
  outline-offset: -3px;
}

.contact-file__clear[hidden] {
  display: none;
}

.contact-file__button,
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border-radius: 5px;
  background-color: #e60012;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-file__button {
  grid-column: 3;
  border-radius: 0;
  cursor: pointer;
}

.contact-file__button:hover,
.contact-file__button:focus-visible,
.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background-color: #c90010;
  box-shadow: 0 14px 26px rgba(230, 0, 18, 0.18);
}

.contact-file__button:focus-visible,
.contact-form__submit:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.22);
  outline-offset: 3px;
}

.contact-file:focus-within {
  border-color: #e60012;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.12);
}

.contact-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-privacy {
  margin-top: clamp(4rem, 7vw, 6.25rem);
}

.contact-privacy__table-wrap {
  border: 1px solid #e3e3e3;
}

.contact-privacy__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.contact-privacy__table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-privacy__table th,
.contact-privacy__table td {
  min-height: 56px;
  padding: 14px 16px;
  border-bottom: 1px solid #e3e3e3;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
  color: #333;
}

.contact-privacy__table tr:last-child th,
.contact-privacy__table tr:last-child td {
  border-bottom: 0;
}

.contact-privacy__table th {
  width: 26%;
  border-right: 1px solid #e3e3e3;
  font-weight: 500;
}

.contact-privacy__table td {
  font-weight: 400;
}

.contact-privacy__table tr:nth-child(3) th,
.contact-privacy__table tr:nth-child(3) td {
  padding-block: 18px;
}

.contact-privacy__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-consent {
  min-width: 0;
  border: 0;
}

.contact-consent__title {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #101010;
}

.contact-consent__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.5rem;
}

.contact-consent__option {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.25;
  color: #3a3a3a;
}

.contact-consent__box {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid #c4c7c7;
  border-radius: 3px;
  background-color: #fff;
}

.contact-consent__option input:checked + .contact-consent__box {
  border-color: #e60012;
  background-color: #e60012;
}

.contact-consent__option input:checked + .contact-consent__box::after {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 7px;
  height: 12px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.contact-form__submit {
  width: 195px;
  flex: 0 0 195px;
  border: 0;
}

@media (max-width: 1024px) {
  .contact-form__row--split {
    grid-template-columns: 1fr;
  }

  .contact-form__row--split .contact-form__field + .contact-form__field {
    border-top: 1px solid #e3e3e3;
    border-left: 0;
  }

  .contact-privacy__footer {
    align-items: flex-start;
  }

  .contact-form__submit {
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  .contact-content {
    padding-block: 4rem;
  }

  .contact-content__header {
    margin-bottom: 2rem;
  }

  .contact-process {
    margin-bottom: 3.5rem;
  }

  .contact-process__list {
    --contact-process-arrow-size: 22px;
    --contact-process-circle-size: clamp(120px, 44vw, 160px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2.5rem;
    padding: 1.25rem;
    border-radius: 24px;
  }

  .contact-process__item,
  .contact-process__item:nth-child(1),
  .contact-process__item:nth-child(2),
  .contact-process__item:nth-child(3),
  .contact-process__item:nth-child(4) {
    grid-column: 1;
  }

  .contact-process__item:not(:last-child)::after {
    top: calc(100% + 1.25rem);
    left: 50%;
    display: block;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .contact-process__circle {
    width: var(--contact-process-circle-size);
    height: var(--contact-process-circle-size);
    border-width: 6px;
  }

  .contact-process__icon {
    height: 3.75rem;
  }

  .contact-process__label {
    font-size: 1rem;
  }

  .contact-form__field {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem 0;
  }

  .contact-form__label {
    padding-inline: 0.25rem;
  }

  .contact-radio-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.5rem;
    padding-inline: 0;
  }

  .contact-radio {
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 0.5rem 0.625rem;
    border: 0;
    border-radius: 8px;
    background-color: #fff;
  }

  .contact-radio:has(input:checked) {
    background-color: rgba(230, 0, 18, 0.04);
  }

  .contact-radio__icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .contact-radio input:checked + .contact-radio__icon {
    background-size: 24px 24px;
  }

  .contact-radio__text {
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .contact-form__input {
    height: 56px;
    padding-inline: 1rem;
  }

  .contact-form__textarea {
    min-height: 180px;
    padding: 1rem;
  }

  .contact-file {
    grid-template-columns: minmax(0, 1fr) var(--contact-file-clear-width);
    grid-template-areas:
      "name clear"
      "button button";
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    row-gap: 5px;
  }

  .contact-file__name {
    grid-area: name;
    height: 56px;
    border: 1px solid #c4c7c7;
    border-radius: 5px;
    background-color: #fff;
    padding-inline: 1rem;
  }

  .contact-file.is-selected .contact-file__name {
    border-right: 0;
    border-radius: 5px 0 0 5px;
  }

  .contact-file__clear {
    grid-area: clear;
    min-height: 56px;
    border: 1px solid #c4c7c7;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    background-color: #fff;
  }

  .contact-file__button {
    grid-area: button;
    margin-top: 0;
    min-height: 52px;
    border-radius: 5px;
  }

  .contact-privacy {
    margin-top: 3.5rem;
  }

  .contact-privacy__table-wrap {
    border: 0;
  }

  .contact-privacy__table,
  .contact-privacy__table tbody,
  .contact-privacy__table tr,
  .contact-privacy__table th,
  .contact-privacy__table td {
    display: block;
    width: 100%;
  }

  .contact-privacy__table tr {
    border: 1px solid #e3e3e3;
    border-bottom: 0;
  }

  .contact-privacy__table tr:last-child {
    border-bottom: 1px solid #e3e3e3;
  }

  .contact-privacy__table th,
  .contact-privacy__table td {
    border: 0;
    padding: 0.875rem 1rem;
  }

  .contact-privacy__table th {
    border-bottom: 1px solid #e3e3e3;
    background-color: #fafafa;
  }

  .contact-privacy__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-consent__options {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-consent__option {
    font-size: 1rem;
  }

  .contact-form__submit {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 420px) {
  .contact-radio-group {
    grid-template-columns: 1fr;
  }

  .contact-radio {
    min-width: 100%;
    justify-content: flex-start;
  }
}
