/* 문의 /ir — 폼 공통 스타일은 common.css (.f-*, .seg) */
body[data-page="ir"] main { background: #faf8f2; }

/* ① 문의 창: 왼쪽 안내 + 오른쪽 폼 */
.ir-top { padding: 9.4rem 0 var(--section-gap); }
.ir-grid { display: grid; grid-template-columns: 26rem 1fr; gap: 5.4rem; align-items: start; }
.ir-info { padding-top: 2rem; }
.ir-info h1 { margin: 0; font-size: 3rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.ir-info .lead { margin: 1.4rem 0 0; font-size: 1.05rem; color: #666; }
.ir-tel { display: flex; align-items: flex-end; gap: 1.6rem; margin-top: 3rem; }
.ir-tel small { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 700; color: var(--yellow-deep); }
.ir-tel b { font-family: var(--font-num); font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ir-tel span { padding-bottom: 0.2rem; font-size: 0.95rem; color: #666; }
.ir-steps { display: flex; align-items: center; gap: 0.9rem; margin: 2.2rem 0 0; padding: 1.6rem 0 1.5rem; border-top: 1px solid #e8e4da; border-bottom: 1px solid #e8e4da; list-style: none; }
.ir-steps li { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.ir-steps li + li::before { content: ""; width: 1.1rem; height: 1px; margin-right: 0.4rem; background: #d6d1c6; }
.ir-steps i { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-num); font-size: 0.75rem; font-weight: 800; background: #fff; border: 1px solid #e3dfd5; }
.ir-steps li:first-child i { background: var(--yellow); border-color: var(--yellow); }
.ir-kinds { margin: 0; padding: 0; list-style: none; }
.ir-kinds li { display: grid; grid-template-columns: 4.9rem 1fr; padding: 1.5rem 0; border-bottom: 1px solid #e8e4da; }
.ir-kinds small { padding-top: 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: .2em; color: var(--yellow-deep); }
.ir-kinds b { display: block; font-size: 1.08rem; font-weight: 700; }
.ir-kinds span { display: block; margin-top: 0.4rem; font-size: 0.92rem; color: #777; }

.ir-card { padding: 3rem 3rem 3.2rem; border-radius: 1.75rem; background: #fff; box-shadow: 0 1.6rem 3.6rem rgba(60, 45, 10, .07); }
.ir-card .seg { margin-bottom: 2rem; }
.ir-btns { display: flex; gap: 0.8rem; }
.ir-btns .f-submit { flex: 1; }
.f-reset { flex-shrink: 0; width: 4.6rem; height: 3.6rem; border: 1px solid #e3dfd5; border-radius: 999px; background: #fff; font-size: 0.9rem; font-weight: 600; color: #555; transition: border-color .4s ease, color .4s ease; }
.f-reset:hover { border-color: #1a1813; color: #1a1813; }
/* 투명에서 불투명으로 */
.ir-card.reveal { transform: none; transition: opacity 1.4s ease; }

/* ② 최근 문의 */
.ir-recent { padding: 0 0 var(--section-gap); }
.rc-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.rc-head .sec-title { font-size: 2.4rem; }
.rc-head .seg { width: 12.4rem; }
.rc-head .seg button { height: 2.5rem; font-size: 0.9rem; }
.rc-card { padding: 1rem 2rem 2rem; border-radius: 1.5rem; background: #fff; box-shadow: 0 1.2rem 3rem rgba(60, 45, 10, .05); }
.rc-table { width: 100%; border-collapse: collapse; }
.rc-table th { padding: 1.1rem 0.5rem; border-bottom: 2px solid #1a1813; text-align: left; font-size: 0.9rem; font-weight: 600; color: #555; }
.rc-table td { padding: 1rem 0.5rem; border-bottom: 1px solid #f0ede6; font-size: 1rem; color: #333; transition: color .45s ease; }
.rc-table tr:last-child td { border-bottom: 0; }
.rc-table th:nth-child(3), .rc-table th:nth-child(4), .rc-table td:nth-child(3), .rc-table td:nth-child(4) { text-align: center; }
.rc-table th:nth-child(1) { width: 17%; }
.rc-table th:nth-child(3) { width: 16%; }
.rc-table th:nth-child(4) { width: 14%; }
.rc-table td:nth-child(3) { color: #777; font-family: var(--font-num); }
.rc-table tbody tr:hover td { color: #1a1813; }
.rc-table tbody tr:hover td:nth-child(3) { color: #333; }
.rc-tag { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; background: #fff0c2; font-size: 0.8rem; font-weight: 700; color: #7a5c08; }
.rc-list { display: none; }
.rc-pager { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1.6rem; }
.rc-pager button { width: 2.6rem; height: 2.6rem; border: 1px solid #e3dfd5; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: #1a1813; background: #fff; transition: border-color .4s ease; }
.rc-pager button:hover:not(:disabled) { border-color: #1a1813; }
.rc-pager button:disabled { color: #ccc; cursor: default; }
.rc-body { transition: opacity .35s ease; }
.rc-body.is-fade { opacity: 0; }

/* ══ 모바일·태블릿 (1100px 이하) — 문의 모바일 시안 기준 ══ */
@media (max-width: 1100px) {
  .ir-top { padding: 104px 0 56px; }
  .ir-grid { grid-template-columns: 1fr; gap: 26px; }
  .ir-info { padding-top: 0; }
  .ir-info h1 { font-size: 30px; }
  .ir-info .lead { margin-top: 12px; font-size: 15px; }
  .ir-tel { align-items: center; gap: 0; margin-top: 26px; }
  .ir-tel small { margin: 0 18px 0 0; font-size: 14px; }
  .ir-tel b { font-size: 30px; }
  .ir-tel span { margin-left: auto; padding: 0; font-size: 14px; }
  .ir-tel > div { display: flex; align-items: center; }
  .ir-steps, .ir-kinds { display: none; }
  .ir-card { padding: 20px 18px 22px; border-radius: 22px; }
  .ir-card .seg { margin-bottom: 18px; }
  .ir-card .f-grid .f-mfull { grid-column: 1 / -1; }
  .f-reset { width: 52px; height: 52px; font-size: 13px; }

  .rc-head { margin-bottom: 16px; }
  .rc-head .sec-title { font-size: 26px; }
  .rc-head .seg { width: auto; padding: 4px; }
  .rc-head .seg button { flex: none; height: 38px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
  .rc-card { padding: 4px 16px 18px; border: 1px solid #ebe8e1; border-radius: 20px; box-shadow: none; }
  .rc-table { display: none; }
  .rc-list { display: block; margin: 0; padding: 0; list-style: none; }
  .rc-list li { padding: 16px 0; border-bottom: 1px solid #f0ede6; }
  .rc-list li:last-child { border-bottom: 0; }
  .rc-list .row1 { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #222; }
  .rc-list .row2 { margin-top: 6px; font-size: 12.5px; color: #999; }
  .rc-tag { padding: 4px 9px; font-size: 11.5px; }
  .rc-pager { margin-top: 10px; }
  .rc-pager button { width: 36px; height: 36px; }
}

/* 폰: 「전화 상담 · 평일 시간」 한 줄 + 번호 크게 한 줄 (좁은 폭에서 글자가 쪼개지지 않게) */
@media (max-width: 600px) {
  .ir-tel { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 0; }
  .ir-tel > div { display: contents; }
  .ir-tel small { grid-row: 1; grid-column: 1; margin: 0; white-space: nowrap; }
  .ir-tel span { grid-row: 1; grid-column: 2; margin: 0; white-space: nowrap; color: #888; }
  .ir-tel span::before { content: "·"; margin: 0 8px; color: #c9c3b4; }
  .ir-tel b { grid-row: 2; grid-column: 1 / -1; font-size: 32px; white-space: nowrap; }
}
