* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  font-family:"Noto Sans KR", sans-serif, ; 
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}



.container {
  background-color: transparent;
  background-image: url("/image/top_dog1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  padding: 50px 20px 50px; /* 위쪽 넉넉히, 아래는 강아지 고려 */
  text-align: center;
  position: relative;
}

.container-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-direction:column;
}

@media (max-width: 768px) {
  .container {
    background-position: center top;
    padding: 30px 20px 30px;
  }
}


.logo {
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
margin-bottom: 30px;
}

.hero-text {
  text-align: left;
  margin-bottom: 50px;
}

.hero-text h2,
#main_t {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}



#main_t {
    font-size: 28px;
  font-weight: 700;
  color: #fff;
  position: relative; 

}

.hero-text p,
#mainsub_t {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin-top: 8px;
}


    /* .container h2 {
      color: #fff;
      font-size: 24px;
      margin-bottom: 10px;
    }

    .container p {
      color: #D4E8FF;
      font-size: 16px;
      margin-bottom: 40px;
    } */

    .form-wrapper {
      max-width: 800px;
      background-color: #fff;
      margin: -3%  auto;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      position: relative;  
      z-index: 20;
    }

.hero {
  background: #0072ce;
  color: white;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 14px;
}


 .tabs {
 display: flex;
 height: 40px;
 }

 .tab {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  font-size: 18px;
  font-weight: bold;
   cursor: pointer;
  }

  .tab.active {
      background-color: #fff;
      color: #000;
    }

   .tab.inactive {
      background-color: #999;
      color: #fff;
    }
    

  .form-content {
      display: flex;
      flex-wrap: wrap;
      padding: 30px;
      gap: 20px;
    }

    .form-group {
      flex: 1 1 45%;
      text-align: left;
    }

    .form-group label {
      font-size: 14px;
      font-weight: 500;
      display: block;
      margin-bottom: 8px;
    }

    .form-group input[type="text"] {
      width: 100%;
      padding: 12px;
      border-radius: 8px;
      font-size: 14px;
      border: none;
      background-color: #f5f5f5;
    }
/* 
    .form-group.small {
      display: flex;
      align-items: center;
      gap: 10px;
    } */

    .unit {
      font-size: 14px;
    }

 .input-with-unit {
  position: relative;
  width: 100%;
}

.input-with-unit input {
  width: 100%;
  padding: 12px 40px 12px 12px; /* 오른쪽 여백 확보 */
  border: none;
  border-radius: 10px;
  font-size: 14px;
  background-color: #f5f5f5;
  color: #333;

}

/* 기존 input + 버튼 */
.input-with-button {
  position: relative;
  width: 100%;
}

.input-with-button input {
  width: 100%;
  padding: 12px 80px 12px 12px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  background-color: #f5f5f5;
  color: #333;
}

/* 인증 버튼: input 안 오른쪽 위치 */
.verify-button-inside {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 4px 7px;
  font-size: 14px;
  background-color: #0076FF;
  color: #ffF;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

/* 체크박스 스타일 개선 */
.custom-consent {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #0076FF;
}

.custom-consent input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #0076FF;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

.custom-consent input[type="checkbox"]:checked::after {
  content: "✔";
  font-size: 12px;
  color: #0076FF;
  position: absolute;
  top: -2px;
  left: 2px;
}

/* 약관 링크 */
.custom-consent a {
  color: #0076FF;
  text-decoration: underline;
  font-weight: 500;
}


.unit-label {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #333;
  font-weight: 500;
  pointer-events: none;
}
    /* .radio-group {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .radio-group label {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 14px;
    } */

.verify-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 인증번호 입력 필드 + 타이머 + 확인 버튼 */
.verify-code-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.verify-box input[type="text"] {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  background-color: #f5f5f5;
  color: #333;
}

.verify-code-group input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
}

#timerDisplay {
  min-width: 50px;
  font-size: 14px;
  color: #0076FF;
}

#verifyCodeBtn {
  padding: 8px 12px;
  background-color: #0076FF;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* 모바일 대응 */
@media (max-width: 480px) {
.verify-code-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.verify-code-group input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  background-color: #f5f5f5;
}

#timerDisplay {
  min-width: 50px;
  font-size: 14px;
  font-weight: bold;
  color: #0076FF;
}

  .verify-button-inside {
    padding: 8px;
    font-size: 13px;
  }
}
.verify-button {
  background-color: #0076FF;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  height: 44px; /* input 높이와 맞춤 */
  cursor: pointer;
  white-space: nowrap;
}

#verifySubmitBtn,
#resendBtn {
  background-color: #0076FF;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 5px;
}

#verifySubmitBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#resendBtn {
  background-color: #999;
}

    .consent {
      font-size: 13px;
      color: #0076FF;
      margin-top: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .consent input {
      accent-color: #0076FF;
    }

    .consent a {
      color: #0076FF;
      text-decoration: underline;
      cursor: pointer;
    }

    .submit-button {
      width: 90%;
      max-width: 300px;
      margin: 30px auto 20px;
      padding: 7px;
      background-color: #0076FF;
      color: white;
      font-size: 16px;
      font-weight: bold;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      display: block;
    }

    @media screen and (max-width: 768px) {
      .form-group {
        flex: 1 1 100%;
      }
    }

/* 모달 입력 스타일 */
.modal-input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f5f5f5;
}
    /* 모달 스타일 */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: rgba(0, 0, 0, 0.6);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 999;
    }

    .modal {
      background: white;
      border-radius: 10px;
      max-width: 500px;
      width: 80%;
      padding: 20px;
      text-align: left;
    }

    .modal h3 {
      margin-bottom: 15px;
      font-size: 18px;
    }

    .modal p {
      font-size: 14px;
      color: #333;
    }

    .modal-close {
      margin-top: 20px;
      text-align: right;
    }

    .modal-close button {
      background-color: #0076FF;
      color: #fff;
      border: none;
      padding: 8px 12px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      margin-left: 40%;
    }

    /* 모달 크기 조정 */
.modal.large {
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  background-color: #fff;
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}


/* 헤더 */
.modal-header h3 {
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 12px;
  line-height: 1.5;
  border-bottom: 4px solid #0076FF;
  padding: 10px;
  color: #333;
}

.term-box {
  border: 1px solid #e2e2e2;
  border-radius: 5px;
}

.term-section h4 
{
  color: #0076FF;
  font-weight: bold;
}

.term-title-with-radio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
  flex-wrap: wrap;
}

.term-title-with-radio h4 {
  font-size: 15px;
  font-weight: bold;
  color: #0064d2;
  margin: 0;
  white-space: nowrap;
}

.term-title-with-radio .radio-inline {
  display: flex;
  gap: 16px;
}

@media screen and (max-width: 480px) {
  .term-title-with-radio {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* 스크롤 영역 */
.modal-body-scroll {
  overflow-y: auto;
  padding: 12px 8px 0;
  max-height: 45vh;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.modal-body-scroll section {
  margin-bottom: 20px;
}

.modal-body-scroll h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-body-scroll ul {
  list-style: disc;
  margin-left: 20px;
  margin-top: 8px;
  padding-left: 5px;
}

/* 라디오 버튼 */
.radio-group {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 20px;
  font-size: 14px;
}

/* 하단 버튼 */
.modal-footer {
  text-align: center;
  margin-top: 20px;
}


.all-agree {
  margin: 0 auto;
}

.modal-footer button {
  background-color: #0076FF;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
}

#closePhoneModal {
  float: right;
  font-size: 20px;
  margin-bottom: 10px;
  border: none;
  background-color: #fff;
}

.verify-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}


.insurance-form {
  background: white;
  padding: 20px;
  /* border-radius: 10px; */
  /* margin-top: 15px; */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insurance-form input,
.insurance-form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.radio-group {
  display: flex;
  gap: 35%;
  align-items: center;
  margin-top: 5%;
}

/* 라디오 그룹: 양쪽으로 잘 정렬되도록 */
.radio-inline {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* 라디오 버튼 라벨 */
.custom-radio {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* 기본 라디오 숨기기 */
.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-mark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background-color: white;
}

/* 라디오 외곽 원
.radio-mark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #0076FF;
  border-radius: 50%;
  background-color: #fff;
} */
/* 
/* 선택 시 내부 원 표시 */
.custom-radio input[type="radio"]:checked + .radio-mark::after {
  content: "";
  position: absolute;
  /* top: 3px;
  left: 3px; */
  width: 8px;
  height: 8px;
  background-color: #0076FF;
  border-radius: 50%;
} 



/* 모바일 대응 */
@media screen and (max-width: 480px) {
  .radio-inline {
    flex-direction: column;
    align-items: flex-start;
  }
}
.custom-radio input:checked ~ .radio-mark {
  border-color: #0076FF;
  background-color: white;
}

.custom-radio input:checked ~ .radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #0076FF;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.checkbox {
  font-size: 12px;
  text-align: left;
}

.insurance-form button {
  padding: 12px;
  background: #0072ce;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

/* Benefit Intro */
.benefit-intro {
  padding: 40px 20px;
  text-align: center;
}

.benefit-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* .box {
  background: #eef4fd;
  padding: 20px;
  border-radius: 10px;
} */

/* 기본 스타일 (PC 기준) */
.illness {
  padding: 40px 20px;
  text-align: center;
}

.illness-visual img {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;

}

/* 모바일 반응형 대응 */
@media screen and (max-width: 768px) {
  .illness-visual img {
    width: 100%;        /* 화면 거의 꽉 차게 */
    /* max-width: 400px;  최대 너비 제한 */
  }
}

@media screen and (max-width: 480px) {
  .illness-visual img {
    width: 90%;
    max-width: 320px;  /* 소형 모바일 */
  }
}


/* Extra Benefits */
.extra-benefits {
  /* padding: 5% 20px; */
  background: #fff;
  text-align: center;
}

.con1_text {
  margin-bottom: 3%;
  font-size: 25px;
  font-weight: 500;
  margin-top: 8%;

}

.con2_text {
 margin-bottom: 3%;
  font-size: 25px;
  font-weight: 500;
  color: #f14545;
  margin-top: 5%;
}


.extra-benefits div.grid2 h3{
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.extra-benefits div.grid2 p{
  font-size: 16px;
}



.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.grid2 {
display: grid;
gap: 24px;  
justify-content: center;
grid-template-columns: 1fr;
    justify-items: center;
}

.grid3 {
  display: grid;
  gap: 24px;
  justify-content: center;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 700px;
  margin: 0 auto;
}

.icon {
  max-width: 60%;
}


.card {
  background-color: #A3D4FF;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: white;
  transition: transform 0.3s ease;
   width: 300px;
}

.cardv {
  background-color: #A3D4FF;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: white;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 300px;
}

@media (max-width: 480px) {
  .grid3 {
    grid-template-columns: 1fr;
  }

  .cardv {
    max-width: 90%;
  }

}


.card:hover {
  transform: translateY(-4px);
}

.card1 {
  padding: 24px;
  border-radius: 20px;
  background-color: #A3D4FF;
  color: white;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 12px;
  
}

.card2 {
  padding: 24px;
  border-radius: 20px;
  background-color: #A3D4FF;
  color: white;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 12px;

}

.card3 {
  padding: 24px;
  border-radius: 20px;
  background-color: #A3D4FF;
  color: white;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 12px;
}



.card4 {
  padding: 24px;
  border-radius: 20px;
  background-color: #ff7166;
  color: white;
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 12px;
}

.card5 {
  padding: 24px;
  border-radius: 20px;
  background-color: #ffc466;
  color: white;
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 12px;
}

.card6 {
  padding: 24px;
  border-radius: 20px;
  background-color: #ffa766;
  color: white;
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 12px;
}

.card7{
  padding: 24px;
  border-radius: 20px;
  background-color: #ff7166;
  color: white;
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 12px;
}

.card7 img {
  margin: 20px 0;
}

.card3 img {
  max-width: 70%;
}

.card.red {
  background: #f14545;
}

.card.yellow {
  background: #f6a623;
}

.card.orange {
  background: #ff8c42;
}

/* 공통 wrapper */
.content-wrap {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.discount-info,
.accident-cover {
  padding: 60px 20px;
}

.discount-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
}


.discount-icon {
  width: 80px;
  flex-shrink: 0;
}

.discount-head .text-box h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.discount-head .sub {
  font-size: 15px;
  color: #555;
  margin-top: 6px;
}

/* 기존 박스 스타일 유지 */
.benefit-box {
  background: #d8ecff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.benefit-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.benefit-box p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}


/* 🔵 풀푸터 스타일 */
.main-footer {
  background-color: #0072ce;
  color: #fff;
  padding: 30px 20px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;

  width: 100vw;              /* 전체 뷰포트 너비로 확장 */
  margin: 0;                 /* 외부 여백 제거 */
  padding-bottom: 40px;      /* 아래 공간 확보 */
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 20px 0;
  width: 100%;
}

.footer-info p {
  font-size: 13px;
color: #fff;
  margin: 10px 0;
}

.footer-note {
  margin-top: 10px;
    color: #a5bbe5;
}


.footer-note .copyright {
  margin-top: 5px;
  font-size: 12px;
}


.cont_text {
    font-weight: 400;
    font-size: 12px;
}

.cont_box01 {
    padding: 25px;
    background-color: #F8F8F8;
}

.cont_table {
    font-size: 12px;
    line-height: 240%;
    border: 0;
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
    text-align: left;
}

.cont_table .one {
    background-color: #eee;
    text-align: center;
    height: 50px;
    color: #333;
    font-weight: bold;
}

#cont_table td{
    padding: 10px;
    border: 1px solid #333;
    box-sizing: border-box;
    width: 33.333%;
}


/* ✅ 반응형 */
@media screen and (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-info p,
  .footer-note p {
    font-size: 12px;
  }
}

/* ✅ 반응형 처리 */
@media (max-width: 600px) {
  .discount-head {
    flex-direction: column;
    text-align: center;
  }

  .discount-icon {
    width: 60px;
  }

  .discount-head .text-box h2 {
    font-size: 20px;
  }

  .discount-head .sub {
    font-size: 14px;
  }
}
/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
}

/* 전체 박스 스타일 */
.guide-box {
  display: inline-flex;
  align-items: center;
  background-color: #0072ce;
  border-radius: 24px;
  padding: 20px 30px;
  color: #fff;
  text-decoration: none;
  gap: 16px;
  transition: background-color 0.3s ease;
}

.guide-box:hover {
  background-color: #005bb8;
}

/* 이미지 아이콘 */
.guide-icon {
  width: 48px;
  height: auto;
}

/* 텍스트 영역 */
.guide-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.guide-text strong {
  font-size: 18px;
  font-weight: 700;
}

.guide-text span {
  font-size: 14px;
  font-weight: 400;
}


@media (max-width: 480px) {
  .guide-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .guide-text {
    align-items: center;
  }

  .guide-icon {
    width: 40px;
  }

  .guide-text strong {
    font-size: 16px;
  }

  .guide-text span {
    font-size: 13px;
  }
}
/* 반응형 */
@media screen and (min-width: 768px) {
  .benefit-boxes,
  .grid  {
    flex-direction: row;
    display: flex;
    justify-content: space-between;
  }

  .grid2 {
    flex-direction: row;
    display: flex;
  }

  /* .box, .card {
    flex: 1;
    margin: 0 10px;
  } */

  .illness-visual ul {
    gap: 20px;
  }
}
