/* 대지무역 견적 신청 앱 — style.css 위에 얹는 화면 전용 스타일 */

body.app { background: var(--cream); }

/* 앱 머리말: 얇게 */
.app-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.app-head-in {
  max-width: 720px;
  margin: 0 auto;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-head-in .brand { gap: 9px; }
.app-head-in .brand b { font-size: 20px; }
.app-head-in .brand span { font-size: 11.5px; }
.app-head-in .head-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.head-home {
  font-size: 14px;
  color: #4d535e;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.head-home:hover { color: var(--navy); border-color: var(--yellow); }
.head-tel {
  display: inline-flex;
  align-items: center;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 2px;
}
.head-tel:hover { background: var(--navy); color: #fff; }

/* 앱 본문 */
.app-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}
.app-intro { margin-bottom: 22px; }
.app-intro .sec-num { margin-bottom: 10px; }
.app-intro h1 {
  font-size: clamp(25px, 6vw, 33px);
  line-height: 1.38;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.app-intro p {
  font-size: 15.5px;
  color: #4d535e;
  margin: 0;
}
.app-intro .quick {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.app-intro .quick li {
  font-size: 13px;
  color: #3d434e;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 11px;
  position: relative;
  padding-left: 20px;
}
.app-intro .quick li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--yellow);
  transform: translateY(-50%) rotate(45deg);
}

/* 폼 카드 */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 10px solid var(--yellow);
  padding: 26px 24px 26px;
  box-shadow: 0 14px 34px rgba(11, 18, 32, 0.07);
}
.form-card > h2 {
  font-size: 19px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.form-card > .form-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
}

.field { margin-bottom: 20px; }
.field > label,
.field > .label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: -0.02em;
}
.field .req {
  color: #c0392b;
  font-weight: 700;
  margin-left: 2px;
}
.field .hint {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid #d9d5ca;
  border-radius: 2px;
  padding: 12px 13px;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 229, 0, 0.45);
}
.field textarea { min-height: 86px; resize: vertical; }
.field .row-inline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: #4d535e;
  margin-top: 9px;
}
.field .row-inline input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--navy); flex: none; margin: 0; }
.field.disabled input { background: #f1efe9; color: #9aa0aa; }

/* 차종: 두 칸 버튼 */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.seg label {
  position: relative;
  display: block;
  border: 1px solid #d9d5ca;
  background: #fbfaf7;
  text-align: center;
  padding: 13px 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: #3d434e;
  cursor: pointer;
  border-radius: 2px;
}
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg input:checked + span {
  color: var(--navy);
}
.seg label:has(input:checked) {
  background: #fff;
  border-color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--yellow);
  color: var(--navy);
}

/* 사진 올리기 */
.photo-box {
  border: 1px dashed #c9c4b6;
  background: #fbfaf7;
  padding: 18px 16px;
  text-align: center;
}
.photo-box input[type="file"] {
  width: 100%;
  font-size: 14.5px;
  color: #4d535e;
}
.photo-box input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--yellow);
  border: 0;
  border-radius: 2px;
  padding: 9px 14px;
  margin-right: 10px;
  cursor: pointer;
}
.photo-box .photo-note {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
}
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.photo-preview:empty { display: none; }
.photo-preview figure {
  width: 74px;
  height: 74px;
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 10px;
  text-align: center;
  background: rgba(11, 18, 32, 0.68);
  color: #fff;
  padding: 1px 0;
}

/* 동의 */
.consent {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 20px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.consent-label input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.consent-text {
  font-size: 12.5px;
  color: #5b616c;
  line-height: 1.7;
  background: #faf8f3;
  border: 1px solid var(--line);
  padding: 12px 13px;
  margin: 12px 0 0;
}
.consent-text b { color: #3d434e; }
.consent-text a { color: #1c3a6b; }

/* 보내기 */
.submit-btn {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 2px;
  padding: 17px 20px;
  margin-top: 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.submit-btn:hover { background: #1b2a45; }
.submit-btn:disabled { background: #8b93a3; cursor: default; }
.form-error {
  display: none;
  margin: 12px 0 0;
  font-size: 14px;
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  padding: 10px 12px;
}
.form-error.show { display: block; }

/* 전화 상담: 항상 노출 */
.tel-card {
  background: var(--navy);
  color: #fff;
  padding: 22px 22px 20px;
  margin-top: 18px;
  border-top: 4px solid var(--yellow);
}
.tel-card p.tc-lead {
  font-size: 14px;
  color: #c9cfdb;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.tel-card a.tc-tel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  padding: 14px 18px;
  border-radius: 2px;
}
.tel-card a.tc-tel span.go { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.tel-card .tc-sub {
  font-size: 12.5px;
  color: #8f9aac;
  margin: 12px 0 0;
  line-height: 1.7;
}

/* 신뢰 문구 */
.app-facts {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 18px;
  font-size: 13.5px;
  color: #4d535e;
}
.app-facts b { color: var(--navy); }
.app-facts ul { list-style: none; margin: 0; padding: 0; }
.app-facts li { position: relative; padding-left: 16px; margin-bottom: 6px; }
.app-facts li:last-child { margin-bottom: 0; }
.app-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--yellow);
}

/* 완료 화면 */
.done-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 18px 60px;
}
.done-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 10px solid var(--yellow);
  padding: 30px 26px 28px;
  box-shadow: 0 14px 34px rgba(11, 18, 32, 0.07);
}
.done-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.done-card h1 {
  font-size: clamp(23px, 5.6vw, 29px);
  line-height: 1.4;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.done-card p { font-size: 15.5px; color: #4d535e; }
.done-steps { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.done-steps li {
  border-bottom: 1px solid var(--line);
  padding: 14px 0 14px 30px;
  position: relative;
  font-size: 15px;
  color: #3d434e;
}
.done-steps li b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #9a9382;
  margin-bottom: 2px;
}
.done-steps li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  width: 6px;
  height: 6px;
  background: var(--yellow);
}
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.done-actions .btn-call { background: var(--navy); }
.done-actions .btn-line { border-color: var(--line); }

/* 개인정보처리방침 같은 글 페이지 */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 34px 18px 60px; }
.doc-wrap h1 { font-size: clamp(24px, 5.6vw, 31px); letter-spacing: -0.04em; margin-bottom: 12px; }
.doc-wrap h2 { font-size: 18.5px; letter-spacing: -0.03em; margin: 30px 0 10px; }
.doc-wrap p, .doc-wrap li { font-size: 15px; color: #3d434e; }
.doc-wrap ul { padding-left: 18px; }
.doc-wrap .doc-meta { font-size: 13px; color: var(--muted); }
.doc-wrap table { min-width: 0; font-size: 14.5px; }
.doc-wrap th { width: 30%; }

/* 좁은 화면 */
@media (max-width: 480px) {
  .app-head-in { padding: 11px 15px; }
  .app-head-in .brand span { display: none; }
  .app-main { padding: 20px 15px 34px; }
  .form-card { padding: 22px 17px 22px; border-left-width: 8px; }
  .tel-card { padding: 18px 17px 17px; }
  .tel-card a.tc-tel { font-size: 20px; }
}
