/* 용달의민족.com 첫 화면 사진 + 간편 견적폼 (2026-11-30) — 노랑 #fedd0f */
.main-visual .inner {
  position: relative; isolation: isolate; width: 100%; height: auto; box-sizing: border-box;
  min-height: clamp(680px, 40vw, 768px); padding: 56px 0 64px;
  display: flex; align-items: center; background: #b68f6e;
}
/* 사진: 처음 높이(--hh)로 고정 — 동네 목록·짐 버튼으로 배너가 늘어나도 사진이 커지지 않게, 늘어난 아래는 바닥색 */
.main-visual .inner::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--hh, 100%); z-index: -2;
  background: #d2b59f url(../images/main/main-visual-yellow3.webp?v=20261130) right top / cover no-repeat;
}
.main-visual .inner:after {
  z-index: -1; height: 100%;
  background: linear-gradient(90deg, rgba(18,20,26,.68) 0%, rgba(18,20,26,.52) 34%, rgba(18,20,26,0) 62%);
}
.main-visual .inner .txt { position: relative; z-index: 2; width: 100%; max-width: 840px; box-sizing: border-box; margin: 0 auto; padding: 0 20px; text-align: left; }
.main-visual .inner .txt .mbr { display: block; }
.main-visual .inner .txt h2, .main-visual .inner .txt > p { text-shadow: 0 2px 12px rgba(0,0,0,.28); }
/* 아주 넓은 화면(1920px~, 높이 768 고정): 사진은 원래 비율로 오른쪽, 왼쪽은 사진 왼쪽 끝의 벽·걸레받이·바닥 색으로 이어서 */
@media screen and (min-width: 1920px) {
  .main-visual .inner::before {
    background: url(../images/main/main-visual-yellow3.webp?v=20261130) right top / auto 100% no-repeat,
      linear-gradient(180deg, #c2a68c 0, #cdb099 12.6%, #d2b59f 29.3%, #d6baa6 71%, #cbb09b 72.6%, #ae8663 74.7%, #c19875 78.2%, #cea582 84%, #c39d7d 90.3%, #b68f6e 100%);
  }
}
/* 휴대폰·태블릿: 위에 사진(작업자·손님), 아래로 어둡게 이어지며 글씨와 폼 */
@media screen and (max-width: 890px) {
  .main-visual .inner { display: block; min-height: 0; padding: 250px 0 44px; background: #26211d; }
  .main-visual .inner::before { height: 380px; background-position: 88% top; background-size: cover; }
  .main-visual .inner:after { background: linear-gradient(180deg, rgba(38,33,29,.12) 0, rgba(38,33,29,.3) 140px, rgba(38,33,29,.88) 320px, #26211d 380px, #26211d 100%); }
  .main-visual .inner .txt { text-align: center; padding: 0 16px; }
}

/* ── 간편 견적폼 ── */
.yq-form { margin: 26px 0 0; display: grid; gap: 12px; max-width: 520px; text-align: left; color: #fff; font-size: 16px; }
@media screen and (max-width: 890px) { .yq-form { margin: 24px auto 0; } }
.yq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yq-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.yq-cap { margin: 0 0 8px; font-weight: 700; font-size: 15px; color: #fff; }
.yq-form input[type="text"] { display: block; width: 100%; box-sizing: border-box; height: 58px; border: 2px solid transparent; border-radius: 12px; background: #fff; color: #191f28; padding: 0 16px; font-size: 16px; font-family: inherit; outline: 0; box-shadow: 0 6px 18px -10px rgba(0,0,0,.5); }
.yq-form input[type="text"]::placeholder { color: #8b95a1; }
.yq-form input[type="text"]:focus { border-color: #fedd0f; }
.yq-form input[aria-invalid="true"] { border-color: #ff8a7a; }
.yq-form input.is-picked { background: #fff9d9; font-weight: 700; }
.yq-ac { position: relative; }
/* 동네 목록 — 칸 아래 자리를 차지한다(떠 있으면 아래 고정 띠에 가려 못 누름) */
.yq-ac-list { position: relative; z-index: 30; margin: 4px 0 0; padding: 0; list-style: none; max-height: 360px; overflow: auto; scroll-padding: 40px 0 54px; background: #fff; color: #333d4b; border: 1px solid #e5e8eb; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.14); text-align: left; }
.yq-ac-list[hidden] { display: none; }
.yq-ac-list li { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 10px 14px; cursor: pointer; font-size: 15px; line-height: 1.3; color: #333d4b; }
.yq-ac-list li b { font-weight: 800; color: #191f28; }
.yq-ac-list li small { font-size: 13px; color: #8b95a1; }
.yq-ac-list li mark { background: #ffec70; color: #191f28; padding: 0 1px; }
.yq-ac-list li[aria-selected="true"] { background: #fff9d9; }
@media (hover: hover) { .yq-ac-list li:hover { background: #fff9d9; } }
.yq-ac-list li.ac-empty { display: block; color: #8b95a1; font-size: 13px; line-height: 1.5; cursor: default; }
.yq-ac-list li.ac-empty:hover { background: none; }
.yq-ac-list li.ac-head { position: sticky; top: 0; z-index: 1; display: block; padding: 9px 14px; background: #f8f9fa; border-bottom: 1px solid #eef0f3; color: #4e5968; font-size: 13px; font-weight: 600; cursor: default; }
.yq-ac-list li.ac-head b { color: #191f28; font-weight: 800; }
.yq-ac-list li.ac-head:hover { background: #f8f9fa; }
.yq-ac-list li.ac-more[hidden] { display: none !important; }
.yq-ac-list li.ac-more { position: sticky; bottom: 0; z-index: 1; display: block; padding: 18px 0 9px; background: linear-gradient(rgba(255,255,255,0), #fff 45%); color: #191f28; font-size: 14px; font-weight: 800; text-align: center; cursor: pointer; }
.yq-ac-list li.ac-more span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fedd0f; animation: yq-more 1.4s ease-in-out infinite; }
@keyframes yq-more { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }

/* 연락처 칸: 010 붙박이 + 8자리, 오른쪽에 세로 줄로 나눈 개인정보 동의 */
.yq-phone { position: relative; display: flex; align-items: center; height: 58px; box-sizing: border-box; border: 2px solid transparent; border-radius: 12px; background: #fff; color: #191f28; overflow: hidden; box-shadow: 0 6px 18px -10px rgba(0,0,0,.5); }
.yq-phone:focus-within { border-color: #fedd0f; }
.yq-phone:has(input[aria-invalid="true"]) { border-color: #ff8a7a; }
.yq-phone:has(input.yq-next) { border-color: #fedd0f; background: #fff9d9; animation: yq-next 1.1s ease-in-out infinite; }
.yq-ph-pre { padding: 0 0 0 16px; font-weight: 400; font-size: 18px; line-height: 1; letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: pre; color: #191f28; }
.yq-ph-pre b { font-weight: 800; }
.yq-phone > input { flex: 1; width: 0; min-width: 0; border: 0; height: 100%; background: transparent; color: #191f28; font-size: 18px; font-family: inherit; line-height: 1; padding: 0 12px 0 0; outline: 0; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.yq-phone > input.yq-next { animation: none; box-shadow: none; background: transparent; }
.yq-agree { position: relative; flex: none; display: flex; align-items: center; gap: 6px; margin: 0 14px 0 0; padding-left: 13px; font-size: 13px; font-weight: 600; line-height: 1.2; color: #191f28; white-space: nowrap; cursor: pointer; }
.yq-agree::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 26px; margin-top: -13px; background: #e5e8eb; }
.yq-agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: #fedd0f; cursor: pointer; }
.yq-agree b { color: #c24a00; font-weight: 700; }
.yq-agree-view { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; white-space: nowrap; text-align: left; cursor: pointer; }
.yq-agree-view u { margin-left: 1px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.yq-phone.yq-s > .yq-ph-pre { padding-left: 12px; font-size: 16px; }
.yq-phone.yq-s > input { font-size: 16px; padding-right: 8px; }
.yq-phone.yq-s .yq-agree { gap: 5px; margin-right: 10px; padding-left: 10px; font-size: 12px; }
.yq-phone.yq-s .yq-agree input { width: 18px; height: 18px; }
.yq-phone.yq-stk { overflow: visible; margin-bottom: 34px; }
.yq-phone.yq-stk .yq-agree { position: absolute; left: 2px; top: calc(100% + 12px); margin: 0; padding: 0; color: #fff; font-size: 14px; }
.yq-phone.yq-stk .yq-agree::before { display: none; }
.yq-phone.yq-stk .yq-agree b { color: #fedd0f; font-weight: 800; }
.yq-agree.is-bad { animation: yq-shake .4s ease-in-out; }
.yq-agree.is-bad input { outline: 3px solid #ff8a7a; outline-offset: 2px; }
.yq-agree-txt { margin-top: -4px; font-size: 13px; color: #4e5968; background: #f8f9fa; border-radius: 10px; padding: 12px; line-height: 1.65; }
.yq-agree-txt a { color: inherit; text-decoration: underline; }

/* 짐 종류·견적 받는 방법 (어두운 바탕 위 버튼) */
.yq-chips[hidden], .yq-howbox[hidden] { display: none; }
.yq-chips p { margin: 0 0 8px; font-weight: 700; font-size: 15px; color: #fff; }
.yq-chips div { display: flex; flex-wrap: wrap; gap: 8px; }
.yq-chip { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.45); color: #fff; border-radius: 999px; padding: 9px 15px; font-weight: 700; font-size: 14.5px; font-family: inherit; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
@media (hover: hover) { .yq-chip:hover { border-color: #fedd0f; } }
.yq-chip[aria-pressed="true"] { background: #fedd0f; border-color: #fedd0f; color: #191f28; }
.yq-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.yq-how label { position: relative; cursor: pointer; }
.yq-how input { position: absolute; opacity: 0; }
.yq-how span { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.45); color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; letter-spacing: -.02em; transition: background .15s, border-color .15s; }
@media (hover: hover) { .yq-how label:hover span { border-color: #fedd0f; } }
.yq-how input:checked + span { background: #fedd0f; border-color: #fedd0f; color: #191f28; font-weight: 800; }
.yq-how input:focus-visible + span { outline: 3px solid #fedd0f; outline-offset: 2px; }
@media (max-width: 600px) { .yq-how { gap: 6px; } .yq-how span { height: 46px; font-size: 13px; letter-spacing: -.03em; } }
@media (max-width: 340px) { .yq-how span { font-size: 12px; } }
/* 차례가 온 버튼 묶음: 노란 띠가 왼쪽부터 차례로 */
@keyframes yq-wave { 0%, 22%, 100% { border-color: rgba(255,255,255,.45); box-shadow: 0 0 0 0 rgba(254,221,15,0); } 9% { border-color: #fedd0f; box-shadow: 0 0 0 4px rgba(254,221,15,.5); } }
.yq-chips.yq-turn .yq-chip, .yq-how.yq-turn span { animation: yq-wave 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .35s); }

.yq-msg { margin: 0; background: #fde8e6; color: #b3321f; border-radius: 10px; padding: 9px 13px; font-size: 14px; font-weight: 600; }
.yq-msg:empty { display: none; }
.yq-open { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; margin-top: 4px; border: 0; border-radius: 12px; background: #fedd0f; color: #191f28; font-weight: 800; font-size: 18px; font-family: inherit; cursor: pointer; --go-base: 0 10px 24px -10px rgba(0,0,0,.55); --go-ring: rgba(254,221,15,.55); box-shadow: var(--go-base); }
.yq-open svg { width: 20px; height: 20px; }
@media (hover: hover) { .yq-open:hover { background: #f5d300; } }
.yq-open:active { transform: translateY(1px); }
.yq-open:disabled { opacity: .85; cursor: default; }
.yq-open.is-sending { white-space: nowrap; font-size: 15.5px; padding: 0 8px; opacity: .85; }
.yq-dots { display: inline-block; width: 1.1em; text-align: left; }

/* 차례 안내: 다음에 쓸 칸 노란 테두리 + 퍼지는 빛 */
@keyframes yq-next { 0%, 100% { box-shadow: 0 0 0 0 rgba(254,221,15,0); } 50% { box-shadow: 0 0 0 5px rgba(254,221,15,.75); } }
.yq-form input[type="text"].yq-next { border-color: #fedd0f; background-color: #fff9d9; animation: yq-next 1.1s ease-in-out infinite; }
.yq-form input.yq-next::placeholder { color: #191f28; font-weight: 700; opacity: 1; }
@keyframes yq-step-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.yq-chips.yq-in, .yq-howbox.yq-in { animation: yq-step-in .35s ease-out; }
@keyframes yq-go { 0%, 100% { transform: scale(1); box-shadow: var(--go-base), 0 0 0 0 transparent; } 50% { transform: scale(1.05); box-shadow: var(--go-base), 0 0 0 6px var(--go-ring); } }
.yq-open.yq-go, .yq-sheet-go.yq-go { animation: yq-go 1.3s ease-in-out infinite; }
@keyframes yq-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.yq-msg.yq-shake { animation: yq-shake .4s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  .yq-form input.yq-next, .yq-phone:has(input.yq-next) { animation: none; box-shadow: 0 0 0 3px rgba(254,221,15,.75); }
  .yq-chips.yq-in, .yq-howbox.yq-in, .yq-open.yq-go, .yq-sheet-go.yq-go, .yq-msg.yq-shake, .yq-agree.is-bad, .yq-turn .yq-chip, .yq-turn span, .yq-ac-list li.ac-more span { animation: none !important; }
}
/* 휴대폰: 입력하는 동안(키보드가 떠 있을 때만) 아래 고정 띠를 숨긴다 */
@media (max-width: 767px) { body.yq-kb .mo_bot_menu { display: none !important; } }

/* 접수 완료 창 */
.yq-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 12px; }
.yq-sheet-on .main-visual .inner { z-index: 1000; }
.yq-sheet[hidden] { display: none; }
.yq-sheet-dim { position: absolute; inset: 0; background: rgba(16,18,24,.55); }
.yq-sheet-box { position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; box-sizing: border-box; background: #fff; color: #191f28; border-radius: 22px; padding: 26px 20px 20px; animation: yq-up .25s ease-out; }
@keyframes yq-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.yq-sheet-x { position: absolute; right: 10px; top: 8px; width: 42px; height: 42px; border: 0; background: none; font-size: 30px; line-height: 1; color: #8b95a1; cursor: pointer; }
.yq-done { text-align: center; padding: 18px 6px 4px; display: grid; gap: 10px; justify-items: center; }
.yq-done-ico { width: 56px; height: 56px; border-radius: 50%; background: #fedd0f; color: #191f28; display: grid; place-items: center; }
.yq-done-ico svg { width: 30px; height: 30px; }
.yq-done h3 { margin: 0; font-size: 22px; font-weight: 800; }
.yq-done p { margin: 0; color: #4e5968; line-height: 1.6; }
.yq-done p a { color: #191f28; }
.yq-done .yq-pv { font-size: 12px; }
.yq-sheet-go { margin-top: 6px; width: 100%; height: 54px; border: 0; border-radius: 12px; background: #fedd0f; color: #191f28; font-weight: 800; font-size: 17px; font-family: inherit; cursor: pointer; --go-base: 0 0 0 0 transparent; --go-ring: rgba(254,221,15,.5); }

/* 사이트 기존 규칙(.main-visual .inner .txt p: 흰 글씨 20px)이 폼 안 문단까지 덮지 않게 */
.main-visual .inner .txt .yq-form p { margin: 0; font-size: 15px; line-height: 1.45; color: #fff; text-shadow: none; }
.main-visual .inner .txt .yq-form p.yq-cap { margin: 0 0 8px; font-weight: 700; }
.main-visual .inner .txt .yq-form .yq-chips p { margin: 0 0 8px; font-weight: 700; }
.main-visual .inner .txt .yq-form p.yq-msg { font-size: 14px; color: #b3321f; font-weight: 600; }
.main-visual .inner .txt .yq-form .yq-done p { font-size: 15px; line-height: 1.6; color: #4e5968; }
.main-visual .inner .txt .yq-form .yq-done p.yq-pv { font-size: 12px; }
.main-visual .inner .txt .yq-form .yq-done h3 { color: #191f28; }

/* 접수 버튼 효과: 입체 그림자 · 3초마다 반짝임 · 톡톡 움직이는 → (다 채우면 커졌다 돌아오는 움직임 yq-go 는 그대로) */
.yq-open { position: relative; isolation: isolate; overflow: hidden; border-radius: 10px; font-size: 17px; box-shadow: 0 4px 0 rgba(0,0,0,.16), 0 10px 22px rgba(0,0,0,.12); --go-base: 0 4px 0 rgba(0,0,0,.16), 0 10px 22px rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s; }
.yq-open::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%) no-repeat; background-size: 250% 100%; background-position: 150% 0; animation: yq-shine 3s ease-in-out infinite; pointer-events: none; }
.yq-open svg { animation: yq-arr 1.2s ease-in-out infinite; }
@media (hover: hover) { .yq-open:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.16), 0 14px 28px rgba(0,0,0,.16); } }
.yq-open:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.16), 0 5px 12px rgba(0,0,0,.12); }
.yq-open.is-sending::before, .yq-open.is-sending svg { display: none; }
.yq-sheet-go { position: relative; isolation: isolate; overflow: hidden; box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.yq-sheet-go::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%) no-repeat; background-size: 250% 100%; background-position: 150% 0; animation: yq-shine 3s ease-in-out infinite; pointer-events: none; }
@keyframes yq-shine { 0%, 55% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes yq-arr { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .yq-open::before, .yq-open svg, .yq-sheet-go::before { animation: none; } }

/* 사진 아래 끝을 바닥색으로 부드럽게 — 폼이 늘어나 사진 아래가 드러나도 이음새가 안 보이게 */
.main-visual .inner::before {
  background: linear-gradient(180deg, rgba(182,143,110,0) 78%, #b68f6e 100%),
    #d2b59f url(../images/main/main-visual-yellow3.webp?v=20261130) right top / cover no-repeat;
}
@media screen and (min-width: 1920px) {
  .main-visual .inner::before {
    background: linear-gradient(180deg, rgba(182,143,110,0) 78%, #b68f6e 100%),
      url(../images/main/main-visual-yellow3.webp?v=20261130) right top / auto 100% no-repeat,
      linear-gradient(180deg, #c2a68c 0, #cdb099 12.6%, #d2b59f 29.3%, #d6baa6 71%, #cbb09b 72.6%, #ae8663 74.7%, #c19875 78.2%, #cea582 84%, #c39d7d 90.3%, #b68f6e 100%);
  }
}
@media screen and (max-width: 890px) {
  .main-visual .inner::before { background: #d2b59f url(../images/main/main-visual-yellow3.webp?v=20261130) 88% top / cover no-repeat; }
}

/* 첫 화면 작은 문구: 휴대폰에서는 쉼표 뒤에서 줄바꿈 */
.yq-mbr { display: none; }
@media (max-width: 767px) { .yq-mbr { display: inline; } }

/* 2026-12-03 전화로 받기 고르면 버튼 아래 대표번호 한 줄 */
.yq-tel-note { margin: 12px 0 0; font-size: 16px; font-weight: 700; line-height: 1.4; color: rgba(255,255,255,.92); text-align: center; }
.yq-tel-note b { color: #fedd0f; font-weight: 800; }
.yq-tel-note[hidden] { display: none; }
@media (max-width: 600px) { .yq-tel-note { margin-top: 10px; font-size: 15px; } }
