* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.location-text {
  color: #1b14ff;
  font-family: 'Paperlogy', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  padding: 1rem 0;
  background: #fff;
}

.video {
  width: 100%;
}

/* ===== form_section (시안 반영) ===== */
#form_section {
  --brand-yellow: #ffe600;
  --brand-blue: #1e37c9;
  --brand-navy: #1d2a72;

  background-color: var(--brand-navy);
  overflow: hidden;
}

/* 연령대 선택 영역 */
.age-section {
  background-color: #fff;
  padding: 2.4rem 1.5rem 2rem;
  text-align: center;
}

.age-title {
  color: var(--brand-blue);
  font-family: 'Paperlogy', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 5px;
}
.age-description {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.age-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  max-width: 460px;
  margin: 0 auto;
}

.age-btn {
  background-color: var(--brand-yellow);
  color: var(--brand-blue);
  font-family: 'Paperlogy', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  border: 3px solid var(--brand-blue);
  border-radius: 0.9rem;
  padding: 1rem 0.5rem;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.age-btn:active {
  transform: scale(0.97);
}

.age-btn.selected {
  background-color: var(--brand-blue);
  color: #fff;
}

.insurance-row {
  align-items: center;
}

.insurance-row > label {
  width: 6.3rem;
  text-align: left;
}

.insurance-options {
  flex: 1;
  display: flex;
  gap: 0.6rem;
}

.insurance-btn {
  flex: 1;
  min-height: 3.4rem;
  border: none;
  border-radius: 0.6rem;
  background-color: #fff;
  color: var(--brand-blue);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}

.insurance-btn:active {
  transform: scale(0.97);
}

.insurance-btn.selected {
  background-color: var(--brand-yellow);
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 2px var(--brand-blue);
}

/* 상담 신청 폼 */
.inputForm-wrapper {
  background-color: var(--brand-navy);
  padding: 2rem 1rem 2.4rem;
  max-width: 800px;
  margin: 0 auto;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.input-row label {
  flex-shrink: 0;
  width: 3.6rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  word-break: keep-all;
}

.input-row input {
  flex: 1;
  min-width: 0;
  height: 3.4rem;
  padding: 0 1.1rem;
  border: none;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  color: #1a202c;
  background-color: #fff;
  width: 100%;
}

.input-row input::placeholder {
  color: #9aa0b0;
}

.input-row input:focus {
  outline: 2px solid var(--brand-yellow);
}

/* 연락처 010 접두 배지 + 입력 묶음 */
.num-prefix {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.num-prefix > span {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.4rem;
  padding: 0 0.95rem;
  border-radius: 0.6rem;
  background-color: var(--brand-yellow);
  color: var(--brand-blue);
  font-family: 'Paperlogy', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* 개인정보 동의 */
.privacy_box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 0 1.4rem;
  padding-left: 0.2rem;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.privacy-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid #fff;
  border-radius: 0.3rem;
  background-color: transparent;
  position: relative;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.privacy-check input:checked + .checkmark {
  background-color: var(--brand-yellow);
  border-color: var(--brand-yellow);
}

.privacy-check input:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.35rem;
  height: 0.68rem;
  border: solid var(--brand-navy);
  border-width: 0 0.18rem 0.18rem 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.privacy_box .agreeText {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  word-break: auto-phrase;
}

.privacy_box .agreeView {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  text-decoration: underline;
  word-break: auto-phrase;
}

/* 제출 버튼 */
.submit-btn {
  display: block;
  width: 100%;
  cursor: pointer;
  background-color: transparent;
  border: none;
  animation: bottomBtnWiggle 1.2s ease-in-out infinite;
}

.submit-btn:hover {
  filter: brightness(0.96);
}

.submit-btn:active {
  transform: scale(0.99);
}

.cursor {
  cursor: pointer;
}

/* ===== 하단 고정 플로팅 버튼 ===== */
.bottomBtn {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 92%;
  max-width: 500px;
  z-index: 100;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/* form_section이 화면에 보일 때 숨김 처리 */
.bottomBtn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 좌우로 살짝 흔들리는 애니메이션 (내부 이미지에 적용해 중앙 정렬과 분리) */
.bottomBtn img {
  display: block;
  width: 100%;
  animation: bottomBtnWiggle 1.2s ease-in-out infinite;
}

@keyframes bottomBtnWiggle {
  0%,
  100% {
    transform: translateX(-7px);
  }

  50% {
    transform: translateX(7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottomBtn img {
    animation: none;
  }
}

/* ===== 개인정보처리방침 팝업 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem 1.6rem 1.8rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
  -webkit-overflow-scrolling: touch;
}

.modal.show .modal-content {
  transform: none;
}

.modal .close {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #999;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal-title {
  margin-bottom: 1.2rem;
  padding-right: 1.5rem;
  color: #1d2a72;
  font-size: 1.3rem;
  font-weight: 800;
}

.modal-body .privacy-row {
  margin-bottom: 1rem;
}

.modal-body .privacy-row strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1d2a72;
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-body .privacy-row p {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.5;
}

.modal-body .privacy-note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  color: #888;
  font-size: 0.9rem;
  line-height: 1.5;
}
