/* 문의 화면. 공통 최소 입력과 캡처·파일 첨부를 한 흐름에 배치한다. */

.contact-main {
  min-height: calc(100svh - 64px);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 121, 0, 0.09), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.contact-wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) 24px clamp(64px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.contact-hero {
  position: sticky;
  top: 88px;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(255, 121, 0, 0.28);
  border-radius: 24px;
  background: #fff2e7;
  box-shadow: 0 22px 60px rgba(128, 65, 16, 0.10);
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 380px;
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
}

.contact-hero__eyebrow,
.contact-form__eyebrow {
  color: #e56d00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.contact-hero__title {
  margin: 14px 0 18px;
  color: #1b2230;
  font-size: clamp(36px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.contact-hero__desc {
  max-width: 29ch;
  margin: 0;
  color: #59606c;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.72;
  word-break: keep-all;
}

.contact-hero__response {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 121, 0, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #653413;
  font-size: 13px;
  font-weight: 700;
}

.contact-hero__response-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #08ae64;
  box-shadow: 0 0 0 4px rgba(8, 174, 100, 0.12);
}

.contact-form {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(18, 28, 45, 0.08);
}

.contact-form__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eceef0;
}

.contact-form__title {
  margin: 7px 0 0;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.contact-form__required {
  margin: 0 0 4px;
  flex-shrink: 0;
  color: #747b86;
  font-size: 12px;
  font-weight: 600;
}

.contact-form__required span,
.contact-label > span,
.contact-privacy__agreement strong {
  color: #ef5f00;
}

.contact-form__grid {
  display: grid;
  gap: 20px;
}

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

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

.contact-label {
  display: block;
  margin: 0 0 8px;
  color: #292f38;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-label small {
  margin-left: 5px;
  color: #8a919d;
  font-size: 11px;
  font-weight: 600;
}

.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  border: 1px solid #d8dce2;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #111827;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-input,
.contact-select {
  height: 48px;
  padding: 0 14px;
}

.contact-select {
  padding-right: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 20px;
}

.contact-textarea {
  min-height: 210px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: #a0a6af;
}

.contact-input:hover,
.contact-select:hover,
.contact-textarea:hover {
  border-color: #b6bcc5;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: #ff7900;
  box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.13);
}

.contact-field__hint {
  margin: 7px 0 0;
  color: #7a828d;
  font-size: 12px;
  line-height: 1.55;
}

.errorlist {
  margin: 7px 0 0;
  padding: 0;
  color: #c43f35;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}

.contact-alerts {
  display: grid;
  gap: 8px;
}

.contact-alert {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #cdebdc;
  border-radius: 10px;
  background: #f0fbf6;
  color: #176b47;
  font-size: 14px;
  line-height: 1.55;
}

.contact-alert--error {
  border-color: #f0c9c5;
  background: #fff4f3;
  color: #9b3028;
}

.contact-privacy__details > summary::-webkit-details-marker {
  display: none;
}

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

.contact-upload {
  min-height: 136px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px dashed #c8cdd5;
  border-radius: 12px;
  background: #fafbfc;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-upload:focus-visible,
.contact-upload.is-dragover {
  border-color: #ff7900;
  background: #fff8f1;
  box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.12);
  outline: none;
}

.contact-upload__icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: #fff0e3;
  fill: none;
  stroke: #e56d00;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-upload__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-upload__copy strong {
  color: #303640;
  font-size: 14px;
  line-height: 1.45;
}

.contact-upload__copy span,
.contact-upload__help,
.contact-upload__status {
  color: #7c8490;
  font-size: 12px;
  line-height: 1.5;
}

.contact-upload__button {
  padding: 9px 13px;
  border: 1px solid #d5d9df;
  border-radius: 8px;
  background: #fff;
  color: #313741;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.contact-upload__button:hover {
  border-color: #ff7900;
  color: #c75e00;
}

.contact-upload__button:focus-visible {
  outline: 3px solid rgba(255, 121, 0, 0.18);
  outline-offset: 3px;
}

.contact-upload__help,
.contact-upload__status {
  margin: 7px 0 0;
}

.contact-upload__status:empty {
  display: none;
}

.contact-upload__status.is-error {
  color: #c43f35;
  font-weight: 700;
}

.contact-upload__list {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

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

.contact-upload__item {
  min-width: 0;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  background: #fff;
}

.contact-upload__preview,
.contact-upload__file-mark {
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

.contact-upload__preview {
  object-fit: cover;
  background: #f0f1f3;
}

.contact-upload__file-mark {
  display: grid;
  place-items: center;
  background: #fff0e3;
  color: #c75e00;
  font-size: 9px;
  font-weight: 800;
}

.contact-upload__details {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.contact-upload__details strong {
  overflow: hidden;
  color: #343a44;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-upload__details small {
  color: #858c97;
  font-size: 11px;
}

.contact-upload__remove {
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #777f8a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.contact-upload__remove:hover,
.contact-upload__remove:focus-visible {
  background: #fff0ed;
  color: #bd3f32;
  outline: none;
}

.contact-privacy {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f7f8fa;
}

.contact-privacy__agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4f5762;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.contact-privacy__checkbox {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 18px;
  accent-color: #ff7900;
}

.contact-privacy__details {
  margin: 9px 0 0 28px;
  color: #727985;
  font-size: 12px;
  line-height: 1.65;
}

.contact-privacy__details > summary {
  display: inline-block;
  color: #b6530c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.contact-privacy__details > div {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e5e9;
  border-radius: 9px;
  background: #fff;
}

.contact-privacy__details p {
  margin: 0 0 5px;
}

.contact-privacy__details p:last-child {
  margin-bottom: 0;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-submit__note {
  margin: 0;
  color: #7c838e;
  font-size: 12px;
  font-weight: 500;
}

.contact-submit__btn {
  min-width: 150px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: #ff7900;
  box-shadow: 0 10px 24px rgba(255, 121, 0, 0.24);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-submit__btn:hover {
  background: #e56d00;
  box-shadow: 0 12px 28px rgba(255, 121, 0, 0.3);
  transform: translateY(-1px);
}

.contact-submit__btn:focus-visible,
.contact-privacy__details > summary:focus-visible {
  outline: 3px solid rgba(13, 141, 246, 0.28);
  outline-offset: 3px;
}

.contact-submit__btn:disabled {
  background: #b8bdc5;
  box-shadow: none;
  cursor: wait;
  transform: none;
}

@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
  }

  .contact-hero {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .contact-hero__inner {
    min-height: 280px;
  }

  .contact-hero__title br {
    display: none;
  }

  .contact-hero__desc {
    max-width: 52ch;
  }

  .contact-hero__response {
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .contact-wrap {
    padding: 18px 16px 56px;
  }

  .contact-hero,
  .contact-form {
    border-radius: 18px;
  }

  .contact-hero__inner {
    min-height: 250px;
    padding: 28px 24px;
  }

  .contact-hero__title {
    margin-top: 10px;
    font-size: 34px;
  }

  .contact-hero__title br {
    display: initial;
  }

  .contact-form {
    padding: 26px 20px;
    gap: 20px;
  }

  .contact-form__intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-form__title {
    font-size: 24px;
  }

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

  .contact-upload {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
  }

  .contact-upload__button {
    grid-column: 1 / -1;
    text-align: center;
  }

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

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