/* 문의 페이지 — 좌측 소개 + 우측 상담 폼 */
body.contact-page {
  background: #f4f6f9;
}

body.contact-page .inner-main {
  width: min(1180px, calc(100% - var(--site-gutter, 40px)));
  margin-top: 28px;
  margin-bottom: 48px;
}

.contact-shell {
  margin: 0;
  scroll-margin-top: 88px;
}

.contact-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.contact-intro h1 {
  margin: 0 0 12px;
  color: #162c4b;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.3;
  word-break: keep-all;
}

.contact-intro__lead {
  margin: 0 0 20px;
  color: #5c6570;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
}

.contact-intro__photo {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e2eaf3;
  background: #eef4fb;
}

.contact-intro__photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.contact-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.contact-points li {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(19, 35, 63, 0.04);
}

.contact-points__icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4ff;
  color: #3c5daa;
}

.contact-points strong {
  color: #162c4b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-points span:last-child {
  color: #737b88;
  font-size: 12px;
  line-height: 1.45;
}

.contact-panel {
  padding: 28px 24px 24px;
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(19, 35, 63, 0.07);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 16px;
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field label,
.contact-consent label {
  color: #162c4b;
  font-size: 13px;
  font-weight: 700;
}

.contact-field .req,
.contact-consent .req {
  color: #e24b4b;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--bidlab-text, #20242c);
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
}

.contact-form textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2313233f' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa3ad;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3c5daa;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.contact-form .is-invalid input,
.contact-form .is-invalid select,
.contact-form .is-invalid textarea,
.contact-consent.is-invalid {
  border-color: #d64545;
}

.contact-form .is-invalid input,
.contact-form .is-invalid select,
.contact-form .is-invalid textarea {
  background: #fff8f8;
}

.contact-error {
  margin: 0;
  color: #d64545;
  font-size: 12px;
  font-weight: 600;
}

.contact-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-count {
  margin-left: auto;
  color: #9aa3ad;
  font-size: 12px;
  font-weight: 600;
}

.contact-lock {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: #737b88;
  font-size: 12px;
  line-height: 1.5;
}

.contact-lock svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #3c5daa;
}

.contact-consent.is-invalid label {
  color: #d64545;
}

.contact-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}

.contact-consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: #3c5daa;
}

.contact-consent a {
  color: #3c5daa;
  font-weight: 700;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: #3c5daa;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.contact-submit:hover:not(:disabled) {
  background: #155fc2;
}

.contact-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.contact-fail {
  margin: 0;
  color: #d64545;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: pre-line;
}

.contact-done {
  padding: 28px 20px;
  margin-bottom: 8px;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.contact-done strong {
  display: block;
  color: #162c4b;
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-done p {
  margin: 0;
  color: #5c6570;
  font-size: 15px;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 36px;
  }

  .contact-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-points li {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 118px;
  }

  .contact-points__icon {
    grid-row: auto;
  }

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

  .contact-panel {
    padding: 32px 28px 28px;
  }
}

@media (max-width: 720px) {
  body.contact-page .inner-main {
    width: calc(100% - 32px);
    margin-top: 16px;
    padding-bottom: 80px;
  }

  .contact-intro h1 {
    font-size: 26px;
  }

  .contact-intro__photo,
  .contact-points {
    display: none;
  }

  .contact-intro__lead {
    margin-bottom: 16px;
    font-size: 14px;
  }
}
