@charset "utf-8";

/* =========================
   Base
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard", sans-serif;
}

body {
  color: #1d1d1f;
  background: #fff;
}

button,
input,
textarea {
  font-family: "Pretendard", sans-serif;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

/* =========================
   Layout
========================= */

.inner {
  width: 1600px;
  margin: 0 auto;
}

.contact-page {
  padding: 200px 0 160px;
}

/* =========================
   Title
========================= */

.contact-title {
  margin-bottom: 118px;
}

.contact-title h1 {
  margin-bottom: 24px;
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.contact-title p {
  width: 620px;
  color: #888888;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.01em;
}

/* =========================
   Form
========================= */

.contact-form {
  width: 840px;
  margin: 0 auto;
}

.form-group {
  width: 100%;
  margin-bottom: 28px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  width: 416px;
}

.form-group label,
.form-label {
  display: block;
  margin-bottom: 12px;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.form-group label span {
  color: #ff3b30;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fafafa;
  color: #111;
  font-size: 18px;
  font-weight: 400;
  outline: none;
}

input {
  height: 48px;
  padding: 0 16px;
}

textarea {
  height: 190px;
  padding: 16px;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: #b7b7b7;
}

/* =========================
   Inquiry Type
========================= */

.inquiry-group {
  margin-bottom: 40px;
}

.inquiry-group .form-label {
  margin-bottom: 16px;
}

.inquiry-group + .form-row {
  margin-top: 8px;
}

.inquiry-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  height: 45px;
  padding: 0 18px;
  border: 1px solid #dde2ea;
  border-radius: 999px;

  background: #f7f8fb;
  color: #1f2b45;

  font-size: 18px;
  font-weight: 400;
  line-height: 1;

  transition: all 0.25s ease;
}

.inquiry-btn.active {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

.inquiry-btn.active img {
  filter: brightness(0) invert(1);
}

.inquiry-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.inquiry-btn.partnership {
  border-color: #E0E7FF;
  background: #EEF2FF;
  color: #312C85;
}

.inquiry-btn.sample {
  border-color: #A7F3D0;
  background: #ECFDF5;
  color: #059669;
}

.inquiry-btn.other {
  color: #6B7280;
}

/* =========================
   Error
========================= */

.error-text {
  margin-top: 12px;
  color: #ff3b30;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

/* =========================
   File Upload
========================= */

.file-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.file-btn {
  width: 130px;
  height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;

  color: #525252;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.file-btn input {
  display: none;
}

.file-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.file-required {
  color: #ff3b30;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.file-info {
  color: #b1b1b1;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

/* =========================
   Attached Files
========================= */

.attached-files {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 28px;
}

.attached-files.show {
  display: flex;
}

.attached-file {
  width: 100%;
  height: 48px;
  padding: 0 12px;

  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.attached-file-info {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #404040;
  font-size: 14px;
  font-weight: 400;
}

.attached-file-info img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.attached-file-info em {
  color: #999;
  font-size: 13px;
  font-style: normal;
}

.attached-file-remove {
  width: 20px;
  height: 20px;

  border-radius: 50%;
  background: #f4f5f7;

  color: #9a9a9a;
  font-size: 16px;
  line-height: 1;
}

.attached-file-remove:hover {
  background: #F2F4F7;
  color: #667085;
}

/* =========================
   Submit
========================= */

.submit-area {
  display: flex;
  justify-content: center;
  margin-top: 58px;
}

.submit-area button {
  width: 240px;
  height: 56px;

  border-radius: 8px;
  background: #1d1d1f;

  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* =========================
   Responsive - Tablet
========================= */

@media (max-width: 1700px) {
  .inner {
    width: calc(100% - 80px);
  }
}

@media (max-width: 1024px) {
  .contact-page {
    padding: 100px 0;
  }

  .contact-title {
    margin-bottom: 80px;
  }

  .contact-title h1 {
    font-size: 48px;
  }

  .contact-form {
    width: 100%;
    max-width: 840px;
  }
}

/* =========================
   Responsive - Mobile
========================= */

@media (max-width: 768px) {
  .inner {
    width: 100%;
    max-width: none;
    padding: 0 16px;
  }

  .contact-page {
    padding: 100px 0 80px;
  }

  .contact-title {
    margin-bottom: 48px;
  }

  .contact-title h1 {
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  .contact-title p {
    width: 100%;
    font-size: 14px;
    line-height: 1.45;
    color: #888888;
  }

  .contact-title p br {
    display: none;
  }

  .contact-form {
    width: 100%;
    max-width: none;
  }

  .form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-group,
  .form-group {
    width: 100%;
    margin-bottom: 24px;
  }

  .form-group label,
  .form-label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
  }

  input {
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    border-radius: 7px;
  }

  textarea {
    height: 118px;
    padding: 16px 14px;
    font-size: 16px;
    border-radius: 7px;
  }

  input::placeholder,
  textarea::placeholder {
    font-size: 16px;
  }

  .inquiry-group {
    margin-bottom: 28px;
  }

  .inquiry-group .form-label {
    margin-bottom: 16px;
  }

  .inquiry-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 4px;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .inquiry-list::-webkit-scrollbar {
    display: none;
  }

  .inquiry-list:active {
    cursor: grabbing;
  }

  .inquiry-btn {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 13px;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }

  .inquiry-btn img {
    width: 16px;
    height: 16px;
  }

  .form-row:has(.inquiry-code) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .form-row:has(.inquiry-code) .form-group {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
  }

  .form-row:has(.inquiry-code) .error-text {
    width: calc(200% + 8px);
    max-width: calc(100vw - 32px);
    white-space: normal;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .attached-files {
    gap: 10px;
    margin: 20px 0;
  }

  .attached-file {
    height: 44px;
    padding: 0 10px;
  }

  .attached-file-info {
    gap: 8px;
    font-size: 13px;
  }

  .attached-file-info em {
    font-size: 13px;
  }

  .file-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-top: 22px;
  }

  .file-btn {
    width: 119px;
    height: 48px;
    margin-bottom: 18px;
    font-size: 14px;
  }

  .file-required {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
  }

  .file-info {
    width: 100%;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
  }

  .submit-area {
    margin-top: 20px;
  }

  .submit-area button {
    width: 100%;
    height: 56px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 500;
  }
}
