@charset "utf-8";

/* =========================================
   1. 기본 변수 및 설정
   ========================================= */
:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #ed1b23;      /* KT 레드 (메인 컬러) */
  --primary-hover: #c9161d; /* 버튼 호버 시 진한 레드 */
  --dark: #2c353d;         /* 탑바, 푸터, 아웃라인 버튼 색상 */
  --light: #f5f7fb;
  --border: #e5e7eb;
  --success: #10b981;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Pretendard', system-ui, -apple-system, Segoe UI, Roboto, 'Noto Sans KR', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   2. 상단 고정 띠 배너 (Top Bar)
   ========================================= */
.top-bar {
  position: sticky;        /* 스크롤 시 상단 고정 */
  top: 0;
  z-index: 9999;           /* 항상 맨 위에 보이도록 */
  background-color: var(--dark);
  color: #ffffff;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  .top-bar { font-size: 13px; padding: 10px 0; }
}

/* =========================================
   3. 헤더 (Hero Section)
   ========================================= */
.hero {
  background: linear-gradient(135deg, #eef3ff 0%, #ffffff 60%);
  border-bottom: 1px solid var(--border);
}
.hero__content { padding: 40px 0; text-align: center; }
.hero__logo { height: 42px; margin-bottom: 16px; }
.hero__title { font-size: 28px; font-weight: 800; margin: 0 0 20px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================
   4. 버튼 스타일
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
}

/* 메인 버튼 (빨간색 + 펄스 애니메이션) */
.btn--primary { 
  background: var(--primary); 
  color: #fff;
  animation: pulseRed 2s infinite; 
  border: none;
  box-shadow: 0 0 0 0 rgba(237, 27, 35, 0.7);
}
.btn--primary:hover { background: var(--primary-hover); }

/* 아웃라인 버튼 (진한 회색 배경) */
.btn--outline {
  background-color: var(--dark);
  color: #ffffff;
  border: 1px solid var(--dark);
}
.btn--outline:hover {
  background-color: #1a2025;
  border-color: #1a2025;
}

.btn--full { width: 100%; height: 48px; }

/* 펄스 애니메이션 키프레임 */
@keyframes pulseRed {
  0% { background-color: var(--primary); box-shadow: 0 0 0 0 rgba(237, 27, 35, 0.7); }
  70% { background-color: #f8373f; box-shadow: 0 0 0 10px rgba(237, 27, 35, 0); }
  100% { background-color: var(--primary); box-shadow: 0 0 0 0 rgba(237, 27, 35, 0); }
}

/* =========================================
   5. 프로모션 배너 (이미지 + 텍스트 오버레이)
   ========================================= */
.promo-section {
  background-color: #fdf4e9; /* 연한 크림색 배경 */
  padding-top: 60px;
}

.promo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 60px;
}

/* 왼쪽 텍스트 영역 */
.promo-text { flex: 1; text-align: left; z-index: 2; }
.promo-badge { display: inline-block; font-size: 16px; font-weight: 700; color: #111; margin-bottom: 12px; }
.promo-title { font-size: 42px; font-weight: 800; line-height: 1.25; margin: 0 0 24px; color: #111; }
.promo-title .highlight { color: var(--primary); display: inline-block; }
.promo-desc { font-size: 18px; color: #555; margin-bottom: 32px; line-height: 1.6; }

/* 배너 전용 버튼 */
.btn-promo {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 16px 42px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(237, 27, 35, 0.25);
  transition: all 0.3s ease;
}
.btn-promo:hover { transform: translateY(-3px); background-color: var(--primary-hover); }

/* 오른쪽 이미지 박스 & 오버레이 */
.promo-image-box {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatObj 3s ease-in-out infinite; /* 둥둥 뜨는 효과 */
}

.promo-obj-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}

/* 이미지 위에 올라가는 텍스트 그룹 (위치 수정) */
.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  
  /* 1. 기본적으로 정중앙에 위치시킴 */
  transform: translate(-50%, -50%);
  
  /* 2. [핵심] 여기서 위치를 미세하게 조정하세요! */
  margin-left: 0px;  /* 오른쪽으로 20px 이동 (빨간 티켓 중심 맞추기) */
  margin-top: -10px;  /* 위쪽으로 10px 이동 (살짝 위로 올리기) */
  
  text-align: center;
  color: #fff;
  width: auto;       /* 너비 자동 (글자만큼만 차지하게) */
  min-width: 200px;  /* 최소 너비 확보 */
  z-index: 10;
}

.overlay-badge {
  display: inline-block; background: #fff; color: var(--primary);
  font-size: 13px; font-weight: 800; padding: 4px 10px;
  border-radius: 4px; margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.overlay-month { display: block; font-size: 46px; font-weight: 900; line-height: 1.1; margin-bottom: 4px; text-shadow: 0 2px 10px rgba(168, 14, 21, 0.2); }
.overlay-desc { font-size: 20px; font-weight: 600; opacity: 0.95; letter-spacing: -0.5px; }

@keyframes floatObj {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* 하단 띠 배너 */
.promo-bottom { background-color: var(--dark); color: #fff; padding: 20px 0; text-align: center; }
.promo-bottom__inner { display: flex; align-items: center; justify-content: center; gap: 15px; }
.promo-bottom__text .sub { font-size: 15px; margin: 0; opacity: 0.9; }
.promo-bottom__text .main { font-size: 20px; margin: 0; font-weight: 500; }
.promo-bottom__text strong { font-weight: 800; color: #fff200; }
.promo-bottom__icon, .promo-bottom__deco { font-size: 32px; }

/* 배너 모바일 대응 */
@media (max-width: 768px) {
  .promo-content {
    flex-direction: column;
    text-align: center; /* 전체 틀 가운데 정렬 */
    gap: 30px;
    padding-bottom: 40px;
  }
  
  /* [핵심 수정] 여기서 PC의 왼쪽 정렬을 '가운데'로 강제로 바꿉니다 */
  .promo-text { 
    order: 1; 
    text-align: center; /* ★ 이 줄이 추가되어야 합니다! */
  }

  .promo-image-box { order: 2; margin-top: -20px; }
  
  .promo-title { font-size: 30px; }
  
  /* 버튼 텍스트도 확실하게 가운데로 오도록 설정 */
  .btn-promo { 
    width: 100%; 
    padding: 14px; 
    text-align: center; /* ★ 혹시 모르니 버튼 자체도 가운데 정렬 */
    justify-content: center; /* flex일 경우 대비 */
  }

  .overlay-month { font-size: 36px; }
  .overlay-desc { font-size: 16px; }
  
  .promo-bottom__inner { flex-direction: column; gap: 8px; }
}

/* =========================================
   6. KT 사은품 섹션 (Gift Section)
   ========================================= */
.kt-gift {
  padding: 40px 0;
  background: #fefefe;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.kt-gift__title { text-align: center; font-size: 28px; font-weight: 800; margin-bottom: 30px; color: #333; }
.kt-gift__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.kt-gift__card {
  background: #ffffff; padding: 22px 20px; border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07); border: 1px solid #e2e2e2;
}
.kt-gift__card h3 { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: #222; }
.kt-gift__note { font-size: 13px; color: #888; margin-left: 6px; }

.kt-gift__card ul { list-style: none; padding: 0; margin: 0; }
.kt-gift__card ul li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; }
.kt-gift__card ul li:last-child { border-bottom: none; }
.kt-gift__card .label { font-size: 15px; color: #555; }
.kt-gift__card .amount { font-size: 16px; font-weight: 700; color: var(--primary); }

.kt-gift__note-box {
  background: #ffffff; padding: 22px 18px; border-radius: 12px; margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); border: 1px solid #e5e5e5;
}
.kt-gift__note-box p { font-size: 15px; color: #444; margin-bottom: 8px; line-height: 1.55; }
.kt-gift__note-box strong { color: var(--primary); }
.kt-gift__warn { font-size: 14px; color: #d9534f; margin-top: 10px; }

/* =========================================
   7. 후기 섹션 (Emoji)
   ========================================= */
.section { padding: 40px 0; }
.section--light { background: var(--light); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(17,24,39,0.06); }
.card__body { padding: 24px; }
.card__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.card__emoji { font-size: 24px; line-height: 1; }
.card__text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* =========================================
   8. 혜택 하이라이트 & CTA 박스
   ========================================= */
.offer { text-align: center; }
.offer__title { font-size: 22px; margin: 0 0 8px; font-weight: 800; }
.offer__subtitle { color: var(--success); font-weight: 700; margin-bottom: 16px; }
.offer__list { list-style: none; padding: 0; margin: 0; display: inline-block; text-align: left; }
.offer__list li { margin: 8px 0; }

.section--cta { padding: 60px 0; background: #ffffff; }

.cta-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fe223b 0%, #ed1b23 100%);
  color: #fff; text-decoration: none; padding: 32px 20px;
  border-radius: 20px; box-shadow: 0 10px 25px rgba(237, 27, 35, 0.3);
  max-width: 600px; margin: 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255,255,255,0.1);
}
.cta-box:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4); }

.cta-box__sub { display: block; font-size: 16px; color: #ffcacc; margin-bottom: 20px; font-weight: 600; line-height: 1.2; }
.cta-box__title { display: block; font-size: 28px; font-weight: 800; margin-bottom: 24px; line-height: 1.4; }

.cta-box__action {
  background: #ffffff; color: var(--primary); font-weight: 700;
  padding: 12px 30px; border-radius: 999px; font-size: 18px;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.cta-box__action .arrow { transition: transform 0.2s; }
.cta-box:hover .arrow { transform: translateX(4px); }

/* 미성년자 불가 알림 배지 (수정됨) */
.mascot-badge {
  /* [핵심 수정 1] 스스로 크기를 잡고 가운데로 오도록 설정 */
  display: flex;
  width: fit-content;    /* 내용물만큼만 크기 잡기 */
  margin: 24px auto 0;   /* 위쪽 24px, 좌우 자동(중앙정렬) */
  
  /* 기존 디자인 유지 */
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fef2f2;   /* 연한 붉은 배경 */
  border-radius: 8px;
  border: 1px solid #fee2e2;
}

.mascot-badge__text {
  font-size: 14px;
  color: #991b1b;        /* 붉은색 글씨 */
  font-weight: 600;
}

@media (max-width: 600px) {
  .cta-box__title { font-size: 22px; }
  .cta-box__action { width: 100%; justify-content: center; }
}

/* =========================================
   9. 신청 폼 (Lead Form)
   ========================================= */
.section--form { background: #fafafa; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lead-form { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: 0 6px 18px rgba(17,24,39,0.06); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 600; font-size: 14px; }
input[type="text"], input[type="tel"], select {
  height: 42px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px;
}
.checkbox-row { display: flex; gap: 12px; flex-wrap: wrap; }
.consents { margin-top: 16px; border: none; padding: 0; }
.consents legend { font-weight: 700; margin-bottom: 8px; }
.consent { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.consent:last-child { border-bottom: none; }
.consent a { font-size: 13px; color: var(--primary); text-decoration: underline; }
.form__footnote { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* =========================================
   10. 하단 푸터 (Dark Mode)
   ========================================= */
.footer { padding: 40px 0; background-color: var(--dark); color: #ffffff; font-size: 14px; }
.footer a { color: #ffffff; text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer__list { display: flex; gap: 20px; list-style: none; padding: 0; margin: 12px 0 0; flex-wrap: wrap; color: #d1d5db; }
.footer strong { color: #ffffff; font-weight: 700; }



/* ----------------------------- */
/* 후기 섹션 (수정: 소프트 그레이) */
/* ----------------------------- */

/* 배경을 은은한 회색으로 변경 */
.section--dark {
  background-color: #f9fafb; /* 아주 연한 회색 */
  color: #111111;            /* 글자색은 다시 검정으로 */
  border-top: 1px solid #e5e7eb; /* 위아래 얇은 구분선 추가 */
  border-bottom: 1px solid #e5e7eb;
}

/* 섹션 타이틀 스타일 (검정 글씨) */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #111111;            /* 배경이 밝으니 글자는 진하게 */
  margin: 0 0 40px;
  letter-spacing: -1px;
}

/* 후기 카드 그림자 강화 (배경이 밝아졌으므로 그림자로 구분) */
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb; /* 연한 테두리 */
  box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* 은은한 그림자 */
  transition: transform 0.2s ease;
}

/* 마우스 올렸을 때 살짝 떠오르는 효과 */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: #ed1b23; /* 마우스 올리면 KT 레드 테두리 */
}

/* 모바일 대응 */
@media (max-width: 600px) {
  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
}


/* ----------------------------- */
/* 약관 팝업 (Modal) 스타일 */
/* ----------------------------- */

/* 배경 (어두운 막) - 평소엔 숨김 */
.modal-overlay {
  display: none; /* 기본적으로 안 보임 */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); /* 반투명 검정 배경 */
  z-index: 10000; /* 탑바보다 위에 오게 설정 */
  align-items: center;
  justify-content: center;
}

/* 팝업창 활성화 클래스 */
.modal-overlay.show {
  display: flex; /* 활성화되면 보임 */
}

/* 하얀색 팝업 박스 */
.modal-window {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

/* 팝업 등장 애니메이션 */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 헤더 (제목 + 닫기버튼) */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: #f9fafb;
}
.modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.close-btn {
  background: none; border: none; font-size: 28px; line-height: 1;
  cursor: pointer; color: #555;
}

/* 내용 (스크롤 가능) */
.modal-content {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  max-height: 60vh; /* 화면 높이의 60%까지만 */
  overflow-y: auto; /* 내용 길면 스크롤 생김 */
}

/* 약관보기 링크 스타일 보정 */
.btn-link {
  font-size: 13px; 
  color: #888; 
  text-decoration: underline; 
  cursor: pointer;
  margin-left: auto; /* 우측 끝으로 밀기 */
}

