@import url("./company.css");

/* Public 문의 — Figma 134:1725 */

.contact-page {
  background-color: #fff;
}

.contact-page .company-hero__media {
  background-image:
    linear-gradient(180deg, rgba(25, 25, 25, 0.02) 0%, rgba(25, 25, 25, 0.08) 100%),
    url("/assets/images/homepage/inquiry-hero.png");
  background-position: center;
}

.contact-section {
  padding: clamp(72px, 7.29vw, 140px) 0 clamp(88px, 8.85vw, 170px);
  background-color: #fff;
}

.contact-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 4.17vw, 80px);
  width: min(100%, 1290px);
  margin-inline: auto;
}

.contact-section__title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(28px, 2.08vw, 40px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: #191919;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-form__banner {
  width: 100%;
  margin: 0;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.contact-form__banner--error {
  background-color: #fef3f2;
  color: #b42318;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 3.33vw, 50px);
  width: 100%;
}

.contact-form__required-note {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.07em;
  color: #f99c1b;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-form__asterisk {
  color: #f99c1b;
}

.contact-form__fields {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 1px solid #e3e3e3;
}

.contact-form__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e3e3e3;
}

.contact-form__row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  align-items: start;
  gap: 16px 20px;
  padding: 20px 10px;
  border-bottom: 1px solid #e3e3e3;
}

.contact-form__pair .contact-form__row {
  border-bottom: 0;
}

.contact-form__row--stack {
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
}

.contact-form__label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 60px;
  padding-top: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-form__row--stack .contact-form__label-wrap {
  align-items: flex-start;
  min-height: 0;
  padding-top: 18px;
}

.contact-form__label {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.contact-form__input,
.contact-form__textarea {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background-color: #f5f5f5;
  color: #151515;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form__input {
  height: 60px;
  padding: 0 24px;
}

.contact-form__textarea {
  min-height: 200px;
  padding: 20px;
  border: 1px solid #c4c7c7;
  background-color: #fff;
  resize: vertical;
}

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

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(249, 156, 27, 0.35);
}

.contact-form__input.is-invalid,
.contact-form__textarea.is-invalid,
.contact-form__radios.is-invalid,
.contact-privacy__options.is-invalid,
.contact-form__file.is-invalid {
  box-shadow: 0 0 0 2px rgba(255, 84, 73, 0.35);
}

.contact-form__error {
  grid-column: 2;
  margin: -4px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #ff5449;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-form__radios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 30px;
  min-height: 60px;
  padding: 4px 10px;
  border-radius: 5px;
}

.contact-radio {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.contact-radio__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-radio__mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #d8dadb;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-radio__input:checked + .contact-radio__mark {
  border-color: transparent;
  background-color: transparent;
  background-image: url("/assets/images/company/cat.svg");
}

.contact-radio__input:focus-visible + .contact-radio__mark {
  outline: 2px solid #f99c1b;
  outline-offset: 2px;
}

.contact-radio__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #8e9192;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.contact-form__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding-left: 24px;
  overflow: hidden;
  border: 1px solid #c4c7c7;
  border-radius: 5px;
  background-color: #fff;
}

.contact-form__file-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #8e9192;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-form__file-name.is-selected {
  color: #151515;
}

.contact-form__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form__file-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 195px;
  max-width: 42%;
  height: 60px;
  margin: 0;
  border: 0;
  border-radius: 0 5px 5px 0;
  background-color: #f99c1b;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form__file-btn:hover,
.contact-form__file-btn:focus-visible {
  background-color: #e8890f;
}

.contact-form__file-btn:focus-visible {
  outline: 2px solid #f99c1b;
  outline-offset: 2px;
}

.contact-privacy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.contact-privacy__title,
.contact-process__title {
  margin: 0;
  font-size: clamp(22px, 1.35vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: #151515;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.contact-privacy__tr {
  display: grid;
  grid-template-columns: minmax(180px, 410px) minmax(0, 1fr);
  border-bottom: 1px solid #e3e3e3;
}

.contact-privacy__th,
.contact-privacy__td {
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  word-break: keep-all;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.contact-privacy__th {
  border-right: 1px solid #e3e3e3;
  font-weight: 500;
}

.contact-privacy__td {
  font-weight: 400;
}

.contact-privacy__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-privacy__agree {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: min(100%, 320px);
  flex: 1 1 auto;
}

.contact-privacy__question {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  color: #101010;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-privacy__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  border-radius: 5px;
}

.contact-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.contact-check__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-check__mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1.5px solid #c4c7c7;
  border-radius: 50%;
  background-color: #fff;
  box-sizing: border-box;
  position: relative;
}

.contact-check__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background-color: #f99c1b;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.contact-check__input:checked + .contact-check__mark {
  border-color: #f99c1b;
}

.contact-check__input:checked + .contact-check__mark::after {
  opacity: 1;
  transform: scale(1);
}

.contact-check__input:focus-visible + .contact-check__mark {
  outline: 2px solid #f99c1b;
  outline-offset: 2px;
}

.contact-check__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  color: #3a3a3a;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 195px;
  height: 60px;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background-color: #f99c1b;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background-color: #e8890f;
}

.contact-form__submit:focus-visible {
  outline: 2px solid #f99c1b;
  outline-offset: 2px;
}

.contact-form__submit:active {
  transform: translateY(1px);
}

.contact-process {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-top: clamp(24px, 2.5vw, 40px);
  border-top: 1px solid #e3e3e3;
}

.contact-process__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 40px);
  margin: 0;
  padding: clamp(20px, 2.5vw, 32px) clamp(16px, 2vw, 32px);
  list-style: none;
  border-radius: 32px;
  background-color: #f8f8f8;
  box-sizing: border-box;
  width: 100%;
}

.contact-process__item {
  flex: 1 1 0;
  width: 0;
  max-width: 200px;
  min-width: 0;
}

.contact-process__circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 14px);
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: clamp(10px, 1.4vw, 20px) clamp(6px, 0.8vw, 14px);
  border: clamp(4px, 0.45vw, 8px) solid #f99c1b;
  border-radius: 50%;
  background-color: #fff;
  box-sizing: border-box;
  overflow: hidden;
}

.contact-process__circle img {
  display: block;
  width: auto;
  max-width: 55%;
  height: clamp(36px, 4.2vw, 71px);
  object-fit: contain;
}

.contact-process__label {
  font-size: clamp(12px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #f99c1b;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-process__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.contact-process__arrow img {
  display: block;
  width: clamp(16px, 1.8vw, 24px);
  height: clamp(16px, 1.8vw, 24px);
}

@media (max-width: 1023px) {
  .contact-form__pair {
    grid-template-columns: 1fr;
  }

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

  .contact-form__pair .contact-form__row:last-child {
    border-bottom: 0;
  }

  .contact-privacy__tr {
    grid-template-columns: 1fr;
  }

  .contact-privacy__th {
    border-right: 0;
    border-bottom: 1px solid #e3e3e3;
    background-color: #fafafa;
  }

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

  .contact-form__submit {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .contact-form__row,
  .contact-form__row--stack {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form__label-wrap,
  .contact-form__row--stack .contact-form__label-wrap {
    min-height: 0;
    padding-top: 0;
  }

  .contact-form__error {
    grid-column: 1;
  }

  .contact-form__radios {
    min-height: 0;
    padding: 0;
    gap: 14px 20px;
  }

  .contact-form__file {
    padding-left: 16px;
  }

  .contact-form__file-btn {
    width: 120px;
    max-width: 46%;
    font-size: 16px;
  }

  .contact-form__input {
    height: 52px;
    padding: 0 16px;
  }

  .contact-process__list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 28px 20px;
  }

  .contact-process__item {
    flex: 0 0 auto;
    width: min(56vw, 180px);
    max-width: 180px;
  }

  .contact-process__circle {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-width: 6px;
    padding: 18px 12px;
    gap: 12px;
  }

  .contact-process__circle img {
    max-width: 60%;
    height: 52px;
  }

  .contact-process__label {
    font-size: 16px;
  }

  .contact-process__arrow {
    transform: rotate(90deg);
  }

  .contact-process__arrow img {
    width: 20px;
    height: 20px;
  }

  .contact-check__text,
  .contact-privacy__question {
    font-size: 16px;
  }
}
