/* main.css - 인덱스 페이지 전용 스타일 */

/* ─── 공통 유틸 ─── */
.main-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-page .section-title {
  font-size: 50px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 80px;
}

.main-page .section-desc {
  font-size: 26px;
  color: #292A33;
  line-height: 1.2;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── HERO ─── */
.main-page .hero {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 120px;
  overflow: hidden;
}

.main-page .hero-bg {
  position: absolute;
  inset: 0;
}

.main-page .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.main-page .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 20, 60, 0.2) 0%,
      rgba(10, 20, 60, 0.1) 50%,
      rgba(10, 20, 60, 0.5) 100%);
  z-index: 1;
}

.main-page .hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.main-page .hero-text {
  text-align: center;
  color: #fff;
  margin-bottom: 0;
}

.main-page .hero-text h1 {
  font-size: 63px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.main-page .hero-text p {
  font-size: 32px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

/* ─── 히어로 폼 wrapper (hero와 section2 사이에 걸침) ─── */
.main-page .hero-form-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-top: -80px;
}

/* ─── 히어로 폼 카드 ─── */
.main-page .hero-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 1000px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #cbd5e1;
}

.main-page .hero-form-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-page .hero-form-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.main-page .hero-form-row--name {
  align-items: center;
}

.main-page .hero-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #f8fafc;
  outline: none;
  font-family: 'Pretendard', sans-serif;
  transition: all 0.2s;
}

.main-page .hero-input:focus {
  border-color: #2563EB;
  background: #fff;
}

.main-page .hero-input::placeholder {
  color: #94a3b8;
}

.main-page .hero-sex-wrap {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.main-page .hero-sex-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.sr-only:checked+.hero-sex-label {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
}

.main-page .hero-field-tel {
  display: flex;
  gap: 8px;
  width: 100%;
}

.main-page .hero-select {
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  width: 80px;
  flex-shrink: 0;
}

.main-page .hero-form-btn {
  flex-shrink: 0;
  width: 120px;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.4;
  text-align: center;
  transition: background 0.2s;
  font-family: 'Pretendard', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-page .hero-form-btn:hover {
  background: #1d4ed8;
}

/* ─── SECTION 2 - 자동차보험이란? ─── */
.main-page .section2 {
  padding: 80px 0 90px !important;
}

.main-page .con1-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.main-page .con1-item {
  border-radius: 2px;
  overflow: hidden;
}

.main-page .con1-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.3s;
}

.main-page .con1-item:hover img {
  transform: scale(1.04);
}

/* ─── SECTION 3 - 미드배너 ─── */
.main-page .section3 {
  position: relative;
  padding: 110px 0 !important;
  background-image: url('../img/con2_img_01.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main-page .section3-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.main-page .section3 .container {
  position: relative;
  z-index: 2;
}

.main-page .section3-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.main-page .section3-left h2 {
  font-size: 43px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.main-page .section3-left p {
  font-size: 26px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
}

.main-page .sec3-btn {
  flex-shrink: 0;
  padding: 13px 46px;
  border: 2px solid #fff;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Pretendard', sans-serif;
  transition: background 0.2s, color 0.2s;
}

.main-page .sec3-btn:hover {
  background: #fff;
  color: #1a1a2e;
}

/* ─── SECTION 4 - 할인 및 혜택 ─── */
.main-page .section4 {
  padding: 150px 0 !important;
}

.main-page .con3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.main-page .con3-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 300px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.main-page .con3-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* 이미지가 카드 전체를 덮음 */
.main-page .con3-card-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.main-page .con3-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 텍스트 가독성을 위한 하단→상단 그라디언트 */
.main-page .con3-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      rgba(0, 0, 0, 0.55) 100%);
  z-index: 2;
}

.main-page .con3-card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 22px;
  z-index: 3;
}

.main-page .con3-card-title {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.main-page .con3-card-desc {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ─── SECTION 5 - FAQ ─── */
.main-page .section5 {
  padding: 150px 0 !important;
}

.main-page .faq-list {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-page .faq-item {
  border: 2px solid #3B4CB6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s;
}

.main-page .faq-item:hover {
  border-color: #2563EB;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.main-page .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  padding: 20px 25px;
  cursor: pointer;
}

.main-page .faq-q-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #3B4CB6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: 700;
}

.main-page .faq-q-text {
  flex: 1;
  font-size: 30px;
  font-weight: 500;
  color: #222;
}

.main-page .faq-arrow {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.main-page .faq-more {
  display: block;
  text-align: right;
  max-width: 800px;
  margin: 20px auto 0;
  font-size: 20px;
  color: #000;
  transition: color 0.2s;
}

.main-page .faq-more:hover {
  color: #2563EB;
}

/* FAQ 아코디언 답변 */
.main-page .faq-answer {
  display: none;
  padding: 19px 26px;
  font-size: 24px;
  color: #000;
  line-height: 1.4;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.main-page .faq-item.active .faq-answer {
  display: block;
}

.main-page .faq-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.main-page .faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.main-page .faq-item.active {
  border-color: #2563EB;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}