/* ==========================================================================
   stop&loss — 상담 신청(contact.html) 전용 스타일

   contact.html 하나만 이 파일을 싣는다. 모든 클래스에 ct- 접두사를 붙여
   공용 style.css · 요금제 · 관리자 화면과 충돌할 자리를 없앴다 —
   여기를 통째로 지워도 다른 페이지는 픽셀 하나 안 바뀐다.

   왜 다시 만들었나
     예전 화면은 다른 페이지와 똑같은 회색 머리띠(.page-hero)라 이 페이지만의
     인상이 없었고, 히어로 설명 두 줄 + 오른쪽 안내 여섯 항목을 다 읽은 뒤에야
     폼에 닿았다. 정작 해야 할 일(이름 · 연락처 적기)이 화면 밖으로 밀려 있었다.
     지금은 첫 화면에 폼이 통째로 들어온다 — 왼쪽은 문장 하나, 오른쪽은 신청서.

   스크롤 아래에는 아무것도 없다
     한때 여기 절차 안내(.ct-below · .ct-ledger)와 링크 패널(.ct-aside · .ct-links)이
     있었지만 통째로 지웠다. 절차는 신청한 뒤 연락으로 알려주면 되는 내용이고,
     페이지 이동 링크는 헤더와 푸터가 이미 들고 있다. 그 규칙들을 되살리려거든
     먼저 '이 화면에서 해야 할 한 가지'가 밀려나지 않는지부터 따질 것.

   색은 새로 만들지 않았다. 전부 style.css 토큰과 히어로 색분산 계열이다.
     배경 #040407(--bg) · 청록 #3de9ff(--primary) · 적 #ff2d5c · 보라 #b48cff
   ========================================================================== */

/* ---------- 1. 히어로 무대 ---------- */

/*
 * 헤더 아래에서 시작해 화면 높이를 채운다. 헤더 뒤로 파고들지 않는 이유는
 * 이 페이지의 헤더가 홈과 달리 불투명하기 때문이다 — 겹치면 배경 두 장이
 * 겹쳐 보인다. 사이트 배경색이 히어로와 같아서 이음매는 생기지 않는다.
 */
.ct-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h, 64px));
  min-height: calc(100dvh - var(--header-h, 64px));
  padding: 36px 0 52px;
  background: var(--bg, #040407);
}

/* 오로라 세 덩이. 캔버스도 JS도 쓰지 않는다 — 이 페이지가 무거워질 이유가 없다. */
.ct-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/*
 * filter: blur() 를 쓰지 않는다. 760px 짜리 요소에 블러를 걸고 scale 을
 * 애니메이션하면 저사양 PC 에서 곧바로 프레임이 떨어진다. radial-gradient 의
 * 투명 정지점만으로도 충분히 부드럽고 비용이 거의 없다.
 */
.ct-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.ct-blob-1 {
  top: -22%;
  left: -14%;
  width: min(62vw, 780px);
  height: min(62vw, 780px);
  background: radial-gradient(circle, rgba(61, 233, 255, .17), rgba(61, 233, 255, .05) 46%, transparent 70%);
  animation: ct-drift-a 26s ease-in-out infinite;
}

.ct-blob-2 {
  top: -6%;
  right: -18%;
  width: min(58vw, 720px);
  height: min(58vw, 720px);
  background: radial-gradient(circle, rgba(255, 45, 92, .15), rgba(255, 45, 92, .04) 46%, transparent 70%);
  animation: ct-drift-b 31s ease-in-out infinite;
}

.ct-blob-3 {
  bottom: -32%;
  left: 26%;
  width: min(66vw, 820px);
  height: min(66vw, 820px);
  background: radial-gradient(circle, rgba(180, 140, 255, .13), rgba(180, 140, 255, .04) 46%, transparent 70%);
  animation: ct-drift-c 23s ease-in-out infinite;
}

@keyframes ct-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(7%, 5%, 0) scale(1.1); }
}

@keyframes ct-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50%      { transform: translate3d(-6%, 7%, 0) scale(1); }
}

@keyframes ct-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-5%, -6%, 0) scale(1.12); }
}

/* 72px 격자. 가장자리는 마스크로 지워 화면 밖에서 잘린 티가 나지 않게 한다. */
.ct-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 28%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 42%, #000 28%, transparent 80%);
}

/* 미세 그레인. 그라데이션의 띠(banding)를 덮는다. */
.ct-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ct-hero-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  width: 100%;
}

/* ---------- 2. 왼쪽 카피 ---------- */

.ct-copy { min-width: 0; }

.ct-copy .breadcrumb { margin-bottom: 14px; }

.ct-title {
  margin-top: 6px;
  font-size: clamp(30px, 6.4vw, 46px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.035em;
  color: #fff;
}

.ct-lead {
  max-width: 30ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/*
 * 신뢰 표시 세 알약.
 * 예전에는 이 내용이 오른쪽 안내 패널의 문단이었다. 문장으로 늘어놓으면
 * 읽어야 할 글이 늘고, 정작 세 가지 사실(빠르다 · 가입 불필요 · 무료)은
 * 그 문단 어딘가에 묻힌다. 낱말로 줄여야 눈에 걸린다.
 */
.ct-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ct-pills li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9999px;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ct-pills li::before {
  content: '';
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- 3. 폼 카드 ---------- */

/*
 * 요금제 페이지의 유리 카드와 같은 문법(반투명 + 블러 + 머리카락 테두리 +
 * 상단 반사선)이다. 이 페이지만의 새 재질을 만들면 사이트 안에서 혼자 낯설어진다.
 *
 * 기본값은 불투명(--surface)이고 반투명 + 블러는 @supports 안에서만 켠다.
 * 순서를 뒤집으면 blur 미지원 브라우저에서 오로라가 글자 뒤로 그대로 비쳐
 * 입력값이 안 읽힌다.
 */
.ct-card {
  position: relative;
  min-width: 0;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  box-shadow: 0 30px 76px rgba(0, 0, 0, .58);
}

@supports ((backdrop-filter: blur(28px)) or (-webkit-backdrop-filter: blur(28px))) {
  .ct-card {
    background: rgba(11, 11, 18, .62);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    backdrop-filter: blur(28px) saturate(1.2);
  }
}

/* 카드 윗변을 스치는 빛 한 줄. 유리라는 인상을 만드는 것이 이 1px 이다. */
.ct-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
}

.ct-card-head { margin-bottom: 18px; }

.ct-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}

.ct-card-desc {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ct-form {
  display: grid;
  gap: 14px;
}

/* 이름 · 연락처는 넓은 화면에서 나란히 선다(반응형 절). */
.ct-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

/* 라벨 줄 — 필수 표시와 형식 안내를 좌우로 벌린다.
   형식 안내를 placeholder 에만 두면 값을 입력하는 순간 사라진다. */
.ct-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ct-opt {
  color: rgba(255, 255, 255, .38);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* 입력칸 — 포커스는 청록 링, 오류는 적색 링. 사이트 공통 .input 위에 덧칠한다. */
.ct-card .input {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .12);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ct-card .input::placeholder { color: rgba(255, 255, 255, .3); }

.ct-card .input:focus {
  border-color: rgba(61, 233, 255, .6);
  background: rgba(61, 233, 255, .045);
  box-shadow: 0 0 0 3px rgba(61, 233, 255, .13);
}

.ct-card .input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 92, 122, .12);
}

.ct-card .textarea {
  min-height: 108px;
  line-height: 1.65;
  resize: vertical;
}

/* 다크 배경의 -webkit-autofill 흰 배경 보정. 로그인 카드와 같은 처리다. */
.ct-card .input:-webkit-autofill,
.ct-card .input:-webkit-autofill:hover,
.ct-card .input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #101019 inset;
  box-shadow: 0 0 0 1000px #101019 inset;
  transition: background-color 999999s ease-out;
}

.ct-card .field-error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.5;
}

.ct-card .field-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.ct-card .field-foot .field-error { margin-top: 0; }

.ct-card .char-count {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .32);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

/* 동의 줄. 입력칸들과 재질을 갈라 '읽고 판단하는 것'임을 눈으로 알린다. */
.ct-card .checkbox {
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  transition: border-color .15s ease;
}

.ct-card .checkbox input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--primary);
}

/* 동의를 빼고 눌렀을 때. 문구만으로는 어디를 봐야 하는지 모른다. */
.ct-card .checkbox input.is-invalid { outline: 2px solid var(--danger); outline-offset: 2px; }

.ct-card .btn-primary {
  min-height: 50px;
  margin-top: 2px;
  font-size: 15px;
}

.ct-form-note {
  color: rgba(255, 255, 255, .35);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

/*
 * 개인정보처리방침 링크.
 *
 * 이 규칙이 없으면 링크가 보이지 않는다. style.css 의 기본 a 는 color: inherit ·
 * text-decoration: none 이라, 링크가 이 문단의 회색(.35)을 그대로 물려받아
 * 옆 글자와 한 글자도 다르지 않게 된다 — 있는데 아무도 못 누르는 상태다.
 */
.ct-form-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ct-form-note a:hover { color: #fff; }

/* 동의 문구 안의 강조(수집 항목 · 보유 기간). 법정 고지 항목이라 훑을 때 걸려야 한다. */
.ct-card .checkbox b { color: var(--text-soft); font-weight: 600; }

/* ---------- 4. 반응형 ---------- */

@media (min-width: 560px) {
  .ct-hero { padding: 44px 0 60px; }
  .ct-card { padding: 30px 28px; }
  /* 이름 · 연락처를 한 줄에. 연락처 placeholder 를 짧게 둔 이유가 이것이다 —
     긴 안내를 넣으면 이 폭에서 말줄임으로 잘린다(형식 안내는 라벨 옆에 있다). */
  .ct-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .ct-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: 56px;
  }

  .ct-card { padding: 34px 32px; }
}

@media (min-width: 1280px) {
  .ct-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 72px; }
}

/* 세로가 짧은 화면에서는 여백을 줄여 첫 화면에 폼을 담는다. */
@media (max-height: 780px) and (min-width: 1024px) {
  .ct-hero { padding: 28px 0 36px; }
  .ct-card { padding: 26px 28px; }
  .ct-form { gap: 12px; }
  .ct-lead { margin-top: 10px; }
  .ct-pills { margin-top: 16px; }
}

/* ---------- 5. 접근성: 모션 최소화 ---------- */

/*
 * 오로라는 그대로 흐른다. 성능을 위해 창 애니메이션을 꺼 둔 Windows PC 가
 * 브라우저를 통해 전부 reduce 로 보고되기 때문이다 — 그 신호로 배경을 멈추면
 * 정작 주 사용자가 정지 화면을 보게 된다. 메인 히어로 · 로그인 · 요금제와 같은 규칙이다.
 * 대신 DOM 쪽 전환만 끈다.
 */
@media (prefers-reduced-motion: reduce) {
  .ct-card .input,
  .ct-card .checkbox { transition: none; }
}