/* 문의 화면. 노트북에서는 안내 패널과 폼을 나란히 두어 입력 흐름을 한눈에 보여준다. */

.contact-main {
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
}

.contact-wrap {
  width: min(100%, 1320px);
  min-height: calc(100svh - 64px);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) 24px clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.72fr);
  gap: 28px;
  align-items: stretch;
}

/* ── 안내 패널 ── */

.contact-hero {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 121, 0, 0.34);
  border-radius: 24px;
  background: #fff1e5;
  box-shadow: 0 24px 60px rgba(255, 121, 0, 0.10);
}

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

.contact-hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 680px;
  padding: 42px 36px 34px;
  display: flex;
  flex-direction: column;
}

.contact-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.contact-hero__title {
  margin: 0;
  color: #1c2434;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.contact-hero__desc {
  max-width: 29ch;
  margin: 0;
  color: rgba(28, 36, 52, 0.72);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
}

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

.contact-hero__response-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #07b868;
  box-shadow: 0 0 0 4px rgba(7, 184, 104, 0.12);
}

.contact-hero__logo {
  width: 210px;
  height: 58px;
  margin-top: auto;
  position: relative;
  opacity: 0.9;
}

.contact-hero__logo-icon {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46px;
  height: 58px;
}

.contact-hero__logo-text {
  position: absolute;
  left: 57px;
  top: 14px;
  width: 153px;
  height: auto;
}

/* ── 문의 폼 ── */

.contact-form {
  min-width: 0;
  padding: 34px 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border: 1px solid #e3e5e8;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  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: 20px;
  border-bottom: 1px solid #eceef0;
}

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

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

.contact-form__required span,
.contact-label span {
  color: #ff7900;
}

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

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

.contact-form__grid--options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px;
  border-radius: 16px;
  background: #f8f9fb;
}

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

.contact-label {
  display: block;
  margin: 0 0 8px;
  color: #262c36;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: 1px solid #d9dde2;
  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, background-color 0.18s ease;
}

.contact-input {
  height: 46px;
  padding: 0 14px;
}

.contact-textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

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

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

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

/* ── 선택 영역 ── */

.contact-option-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

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

.contact-check {
  position: relative;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e0e3e7;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.contact-check:hover {
  border-color: rgba(255, 121, 0, 0.58);
  background: #fffaf5;
}

.contact-check:has(.contact-check__box:checked) {
  border-color: rgba(255, 121, 0, 0.72);
  background: #fff7ef;
}

.contact-check__box {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-check__mark {
  width: 17px;
  height: 17px;
  display: grid;
  flex: 0 0 17px;
  place-items: center;
  border: 1.5px solid #a4aab3;
  border-radius: 5px;
  background: #fff;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-check__mark::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.contact-check__box:checked + .contact-check__mark {
  border-color: #ff7900;
  background: #ff7900;
  box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.12);
}

.contact-check__box:checked + .contact-check__mark::after {
  opacity: 1;
}

.contact-check__box:focus-visible + .contact-check__mark {
  outline: 3px solid rgba(13, 141, 246, 0.28);
  outline-offset: 2px;
}

.contact-check__text {
  min-width: 0;
  overflow: hidden;
  color: #555d69;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 제출 영역 ── */

.contact-submit {
  padding-top: 2px;
  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-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: #ff7900;
  box-shadow: 0 10px 24px rgba(255, 121, 0, 0.24);
  color: #fff;
  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:active {
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .contact-wrap {
    grid-template-columns: minmax(250px, 0.62fr) minmax(0, 1.38fr);
    gap: 20px;
  }

  .contact-hero__inner {
    padding: 34px 28px 30px;
  }

  .contact-form {
    padding: 30px;
  }

}

@media (min-width: 901px) and (max-height: 900px) {
  .contact-wrap {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .contact-hero__inner {
    min-height: 0;
    padding: 34px 30px 28px;
  }

  .contact-form {
    padding: 26px 30px 24px;
    gap: 16px;
  }

  .contact-form__intro {
    padding-bottom: 14px;
  }

  .contact-form__grid {
    gap: 12px 16px;
  }

  .contact-form__grid--options {
    padding: 14px 16px;
  }

  .contact-label {
    margin-bottom: 6px;
  }

  .contact-input {
    height: 42px;
  }

  .contact-textarea {
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .contact-check {
    min-height: 36px;
    padding: 6px 9px;
  }

  .contact-submit__btn {
    min-height: 44px;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .contact-wrap {
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .contact-hero__inner {
    padding: 26px 24px 22px;
  }

  .contact-hero__copy {
    gap: 10px;
  }

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

  .contact-form {
    padding: 20px 24px 18px;
    gap: 12px;
  }

  .contact-form__intro {
    padding-bottom: 10px;
  }

  .contact-form__title {
    margin-top: 4px;
    font-size: 23px;
  }

  .contact-form__grid--options {
    padding: 11px 12px;
  }

  .contact-textarea {
    min-height: 60px;
  }
}

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

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

  .contact-hero__title br {
    display: none;
  }

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

  .contact-hero__logo {
    width: 160px;
    height: 44px;
    margin-top: 26px;
  }

  .contact-hero__logo-icon {
    width: 35px;
    height: 44px;
  }

  .contact-hero__logo-text {
    left: 44px;
    top: 10px;
    width: 116px;
  }
}

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

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

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

  .contact-hero__title {
    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: 23px;
  }

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

  .contact-form__grid--options {
    padding: 16px;
    gap: 20px;
  }

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

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

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