/* --- 기본 레이아웃 및 공통 스타일 (common.css와 겹칠 수 있으나 franchise 특화 스타일 포함) --- */
.content_container {
  width: 1280px;
  margin: 0 auto;
  min-height: 700px;
}

.intro {
    background: #f7f7f7; /* 배경색을 밝게 설정 */
    padding: 80px 0;
    text-align: center;
}

.intro .text div {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
}

/* --- 앵커 버튼 영역 스타일 --- */
.button-area {
  padding: 70px 90px 30px;
  display: grid;
  place-content: center;
  grid-template-columns: repeat(4, 1fr); /* grid-template-columns: 1fr 1fr 1fr 1fr; 과 동일 */
  grid-gap: 2rem; /* 간격을 살짝 줄여서 모던하게 */
}

.button-area a {
  text-decoration: none;
  transition: transform 0.2s ease-in-out; /* 클릭 효과 추가 */
}

.button-area a:active {
    transform: scale(0.98);
}

/* 기본 버튼 스타일 */
.button-area .button {
  border: solid 2px #FF5722; /* 주황색 테두리 */
  border-radius: 12px; /* 둥근 모서리 */
  height: 55px; /* 높이 약간 조정 */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* 은은한 그림자 */
}

/* 버튼 텍스트 스타일 */
.button-area .button .text {
  color: #333;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

/* 활성(현재 위치) 버튼 스타일 */
.button-area .target {
  background-color: #FF5722;
  border-color: #FF5722;
  box-shadow: 0 6px 10px rgba(255, 87, 34, 0.4);
}

.button-area .target .target_text {
  color: #fff;
}

/* 호버 시 스타일 */
.button-area .button:hover {
  background-color: #FF8A65; /* 밝은 주황색 */
  border-color: #FF8A65;
}
.button-area .button:hover .text {
  color: #fff;
}

/* --- 이미지 및 QnA 영역 --- */
.content_container > img {
  width: 100%;
  height: auto;
  display: block;
}

#Accordion_wrap {
  padding: 50px 0 100px;
}

#Accordion_wrap .title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  margin: 30px auto 30px;
  color: #333;
}

.line{
  width: 50px;
  height: 5px; /* 두께 약간 줄임 */
  margin: 60px auto 60px;
  background-color: #FF5722; /* 주황색 라인 */
  border-radius: 5px;
}

.que:first-child{
  border-top: 2px solid #ddd; /* 상단 테두리 두껍게 */
}

.que{
  position: relative;
  padding: 23px 30px;
  cursor: pointer;
  font-size: 1.1rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  transition: background-color 0.2s;
}

.que:hover {
    background-color: #fffaf7; /* 호버 시 아주 연한 주황색 배경 */
}

.que::before{
  display: inline-block;
  content: 'Q.';
  font-size: 1.4rem;
  color: #FF5722; /* 주황색 Q */
  font-weight: 700;
  margin-right: 8px;
}

.que.on>span{
  font-weight: bold;
  color: #E64A19; /* 클릭 시 어두운 주황색 강조 */ 
}

.anw {
  display: none;
  overflow: hidden;
  font-size: 1.1rem;
  background-color: #f7f7f7; /* 배경색 조정 */
  padding: 28px 30px;
  text-align: left;
  line-height: 1.6;
}

.anw::before {
  display: inline-block;
  content: 'A.';
  font-size: 1.3rem;
  font-weight: bold;
  color: #666;
  margin-right: 8px;
}

/* --- Go Top 버튼 스타일 --- */
.goupbtn {
  top: 80%;
  left: calc(94.9% - 30px); /* 1280px 기준에서 오른쪽으로 띄움 */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FF5722; /* 주황색 배경 */
  color: white;
  font-weight: bold;
  border: none;
  position: fixed;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.goupbtn:hover {
  background-color: #E64A19;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- 가맹 상담 폼 영역 (레퍼런스 이미지 기반 스타일) --- */

/* 가맹상담 전체 컨테이너 */
.franchiseinquiry__ContentsT-sc-1e4yuay-2 {
    padding: 100px 0; /* 상하 패딩 증가 */
    background-color: #fff; /* 배경색 제거 (흰색 배경) */
    font-family: 'AppleSDGothicNeo', 'Noto Sans KR', sans-serif; /* 폰트 설정 */
}

/* "가맹상담" 타이틀 */
.franchiseinquiry__ContentsT-sc-1e4yuay-2 .title-wrap {
    text-align: center;
    margin-bottom: 50px; /* 여백 조정 */
}

.franchiseinquiry__ContentsT-sc-1e4yuay-2 .solid-title {
    font-size: 2.5rem; /* 폰트 크기 조정 */
    font-weight: 800; /* 매우 굵게 */
    color: #333; /* 검정색 계열 */
    display: inline-block;
    position: relative;
    padding-bottom: 20px; /* 라인과의 간격 */
    letter-spacing: -0.05em; /* 폰트 간격 좁게 */
}

/* 제목 아래 얇은 라인 (레퍼런스 이미지 반영) */
.franchiseinquiry__ContentsT-sc-1e4yuay-2 .solid-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px; /* 라인 길이 */
    height: 3px; /* 라인 두께 */
    background: #FF5722; /* 주황색 라인 */
    border-radius: 5px;
}

/* 폼 전체 컨테이너 */
.application_form {
    /* 너비 확장 */
    max-width: 100%; 
    width: 100%;
    margin: 0 auto;
    padding: 35px 50px; /* 좌우 패딩을 넓게 설정 */
    background: #fff;
    border-radius: 0; 
    box-shadow: none; 
    border-top: 1px solid #eee; /* 상단 얇은 구분선 */
}

/* "간단 정보 입력 시..." 타이틀 */
.FranchiseeForm__FormTitleWrap-sc-qck8wq-0 {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0; 
    padding-bottom: 20px;
    display: flex; 
    justify-content: space-between;
    align-items: flex-end; /* 아래 정렬 */
}

.FranchiseeForm__FormTitleText-sc-qck8wq-1 {
    font-size: 1.2rem; 
    font-weight: 700;
    color: #333; 
    margin-bottom: 0; 
}

.FranchiseeForm__FormTipText-sc-qck8wq-2 {
    font-size: 0.85rem;
    color: #999; /* 연한 색상 */
    font-weight: 400;
}

.fc_red {
    color: #FF5722;
}

.FranchiseeForm__InputContainer-sc-qck8wq-3 {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* "부동산 / 건물주 입점 제안" 버튼 */
.FranchiseeForm__InputLink-sc-qck8wq-5 {
    display: inline-block;
    float: right; 
    background-color: #f5f5f5; /* 회색 배경 */
    color: #555;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 5px; 
    margin-bottom: 15px;
    transition: background-color 0.2s, color 0.2s;
    font-weight: 500;
}

.FranchiseeForm__InputLink-sc-qck8wq-5:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* 입력 행 스타일 */
.OfferFormRow__Container-sc-38hhuj-0 {
    display: flex;
    align-items: center;
    margin-bottom: 15px; 
    padding: 10px 0;
    border-bottom: 1px solid #f9f9f9; /* 구분선 옅게 */
}
.OfferFormRow__Container-sc-38hhuj-0:last-of-type {
    border-bottom: none; 
}

.OfferFormRow__Container-sc-38hhuj-0 .title {
    width: 150px; /* 라벨 너비 확보 */
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.OfferFormRow__InputGroup-sc-38hhuj-1 {
    flex-grow: 1;
    display: flex;
    gap: 10px; /* 간격 조정 */
    align-items: center;
}

/* 인풋, 셀렉트 박스 스타일 */
.OfferFormRow__InputGroup-sc-38hhuj-1 input[type="text"],
.OfferFormRow__InputGroup-sc-38hhuj-1 select {
    padding: 10px 12px; 
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px; /* 모서리 조정 */
    font-size: 0.95rem;
    box-sizing: border-box;
    width: 100%;
    outline: none; 
    transition: border-color 0.2s, box-shadow 0.2s;
}

.OfferFormRow__InputGroup-sc-38hhuj-1 input[type="text"]:focus,
.OfferFormRow__InputGroup-sc-38hhuj-1 select:focus {
    border-color: #FF5722; /* 포커스 시 주황색 테두리 */
    box-shadow: 0 0 0 1px rgba(255, 87, 34, 0.5); /* 얇은 포커스 그림자 */
}

.OfferFormRow__InputGroup-sc-38hhuj-1 select {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 10px center;
    background-size: 16px; 
    padding-right: 30px; 
    cursor: pointer;
}

.OfferFormRow__InputGroup-sc-38hhuj-1 input[type="text"].w-300 {
    /* 넓어진 폼에서는 이 클래스를 제거하거나 max-width를 더 넓게 설정해야 할 수 있습니다. */
    max-width: 400px; 
}

/* 라디오 버튼 스타일 */
.radio {
    display: inline-flex;
    align-items: center;
    margin-right: 20px; /* 간격 조정 */
}

.radio input[type="radio"] {
    display: none;
}

.radio label {
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px; /* 원형 마커 공간 */
    color: #333;
    font-weight: 400;
}

.radio label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px; /* 원형 마커 크기 */
    height: 15px;
    border: 1px solid #ccc; /* 테두리 더 얇게 */
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s ease;
}

.radio input[type="radio"]:checked + label::before {
    border-color: #FF5722;
    background-color: #FF5722; /* 체크 시 배경색 */
}

.radio input[type="radio"]:checked + label::after {
    content: '';
    position: absolute;
    left: 4px; /* 가운데 정렬 */
    top: 50%;
    transform: translateY(-50%);
    width: 7px; /* 내부 점 크기 */
    height: 7px;
    background-color: #fff; /* 내부 점 색상 */
    border-radius: 50%;
}

/* 개인정보 동의 박스 */
.OfferPolicyBox__FormInfoAgree-sc-13dcf7r-0 {
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff; 
}

.OfferPolicyBox__AccordionTop-sc-13dcf7r-1 {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 20px; /* 패딩 조정 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.OfferPolicyBox__AccordionTop-sc-13dcf7r-1 .check {
    display: flex;
    align-items: center;
}

.OfferPolicyBox__AccordionTop-sc-13dcf7r-1 input[type="checkbox"] {
    margin-right: 10px;
    width: 16px; /* 체크박스 크기 */
    height: 16px;
    accent-color: #FF5722;
    cursor: pointer;
}

.OfferPolicyBox__AccordionTop-sc-13dcf7r-1 label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
}

.OfferPolicyBox__AccordionTop-sc-13dcf7r-1 img {
    transition: transform 0.3s ease;
    width: 18px; /* 화살표 크기 조정 */
    height: 18px;
    /* 경로가 없을 경우를 대비하여 SVG 아이콘으로 대체하는 스타일 제거 또는 적절히 수정 */
}

.OfferPolicyBox__AccordionTop-sc-13dcf7r-1 img.close {
    transform: rotate(0deg);
}

.OfferPolicyBox__AccordionTop-sc-13dcf7r-1.open img.close {
    transform: rotate(-180deg); /* 닫힐 때 위로 향하도록 수정 */
}

.OfferPolicyBox__PolicyWrap-sc-13dcf7r-2 {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px; /* 좌우 패딩 조정 */
    color: #666;
}

.OfferPolicyBox__PolicyWrap-sc-13dcf7r-2.open {
    max-height: 500px;
    padding: 10px 20px 20px;
    border-top: 1px solid #f0f0f0;
}

.OfferPolicyBox__PolicyList-sc-13dcf7r-3 {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 15px;
}

.OfferPolicyBox__PolicyItem-sc-13dcf7r-4 {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 8px;
    line-height: 1.5;
}


/* 신청하기 버튼 */
.FranchiseeForm__BtnContainer-sc-qck8wq-4 {
    text-align: center;
    margin-top: 50px;
}

.FranchiseeForm__FranchiseInquiryBtn-sc-qck8wq-6 button {
    background-color: #FF5722; /* 주황색 버튼 */
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 0; /* 패딩 조정 */
    border: none;
    border-radius: 8px; /* 둥근 모서리 */
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 250px; /* 너비 조정 */
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3); /* 그림자 강조 */
}

.FranchiseeForm__FranchiseInquiryBtn-sc-qck8wq-6 button:hover {
    background-color: #E64A19;
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.4);
}

/* 아코디언 토글 화살표 이미지 경로 수정 */
/* (이미지 경로를 알 수 없으므로 스타일만 유지) */
.OfferPolicyBox__AccordionTop-sc-13dcf7r-1 img {
    /* content: url('/assets/img/icons/btn-arrow-down.svg'); */
    filter: invert(50%) sepia(100%) saturate(1000%) hue-rotate(330deg) brightness(90%) contrast(90%); /* 주황색으로 필터 */
}

/* --- Go Top 버튼 (기존 유지하되 위치 조정) --- */
.goupbtn {
  /* 레퍼런스 이미지에서 버튼이 작고 흰색으로 보임 */
  top: auto;
  bottom: 30px; /* 하단에서 띄우기 */
  left: auto;
  right: 30px; /* 오른쪽에서 띄우기 */
  width: 50px;
  height: 50px;
  border-radius: 50%; /* 완전한 원 */
  background-color: #fff; /* 흰색 배경 */
  border: 1px solid #ddd; /* 얇은 테두리 */
  color: #555; /* 회색 텍스트 */
  position: fixed;
  z-index: 100;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-indent: -9999px; /* "Top" 텍스트 숨김 */
  overflow: hidden;
  transition: all 0.2s ease;
}

.goupbtn::after {
    content: '↑'; /* 화살표 아이콘 */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    line-height: 1;
    color: #FF5722; /* 주황색 화살표 */
    text-indent: 0;
}

.goupbtn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* --- 미디어 쿼리 (반응형) --- */

@media screen and (max-width:1024px) {
  
  .content_container {
    width: 100%;
  }

  /* 폼 영역 반응형 조정 */
  .franchiseinquiry__ContentsT-sc-1e4yuay-2 {
      padding: 60px 0;
  }

  .franchiseinquiry__ContentsT-sc-1e4yuay-2 .solid-title {
      font-size: 2.0rem;
      padding-bottom: 15px;
  }
    .franchiseinquiry__ContentsT-sc-1e4yuay-2 .solid-title::after {
      width: 50px;
      height: 2px;
  }

  .application_form {
      padding: 25px 20px;
      margin: 0; /* 모바일에서 폼이 전체 너비를 사용하도록 마진 제거 */
  }

  .FranchiseeForm__FormTitleWrap-sc-qck8wq-0 {
      flex-direction: column;
      align-items: flex-start;
  }
  .FranchiseeForm__FormTipText-sc-qck8wq-2 {
      margin-top: 5px;
  }

  .OfferFormRow__Container-sc-38hhuj-0 {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .OfferFormRow__Container-sc-38hhuj-0 .title {
    width: 100%;
    margin-bottom: 5px;
    font-size: 0.9rem;
  }
    
  .OfferFormRow__InputGroup-sc-38hhuj-1 {
      flex-direction: column;
      width: 100%;
      gap: 8px;
  }
  
  .OfferFormRow__InputGroup-sc-38hhuj-1 input[type="text"],
  .OfferFormRow__InputGroup-sc-38hhuj-1 select {
      height: 38px;
      font-size: 0.9rem;
  }

  .FranchiseeForm__InputLink-sc-qck8wq-5 {
      padding: 5px 12px;
  }
    
  .OfferPolicyBox__AccordionTop-sc-13dcf7r-1 {
      padding: 15px 20px;
  }

  .OfferPolicyBox__PolicyWrap-sc-13dcf7r-2.open {
      padding: 10px 20px 20px;
  }

  .FranchiseeForm__FranchiseInquiryBtn-sc-qck8wq-6 button {
      font-size: 1.05rem;
      padding: 12px 0;
      max-width: 280px;
  }

  .goupbtn {
    bottom: 20px;
    right: 20px;
  }
}


@media screen and (max-width:768px) {
  
  .content_container {
    width: 100%;
  }

  .goupbtn {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
    .goupbtn::after {
        font-size: 1.3rem;
    }

  /* 가맹 상담 폼: 모바일 최적화 */
  .franchiseinquiry__ContentsT-sc-1e4yuay-2 .solid-title {
      font-size: 1.8rem;
  }
  
  .FranchiseeForm__FormTitleText-sc-qck8wq-1 {
      font-size: 1.1rem;
  }
  
  .FranchiseeForm__FranchiseInquiryBtn-sc-qck8wq-6 button {
      padding: 12px 30px;
      font-size: 1rem;
      max-width: 200px;
  }
}

/* 기본(PC)용: 그대로 사용 */
.button-area {
  padding: 70px 90px 30px;
  display: grid;
  place-content: center;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 2rem;
}

/* ===== 반응형 수정 ===== */

/* 태블릿 ~ 작은 노트북 (가로 1024px 이하) → 2컬럼 */
@media screen and (max-width: 1024px) {
  .button-area {
    padding: 40px 24px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 1.2rem;
  }

  .button-area .button {
    height: 50px;
  }

  .button-area .button .text {
    font-size: 1rem;
  }
}

/* 모바일 (가로 768px 이하) → 1컬럼 */
@media screen and (max-width: 768px) {
  .button-area {
    padding: 32px 16px 20px;
    grid-template-columns: 1fr;      /* 한 줄에 한 개씩 */
    grid-gap: 0.9rem;
  }

  .button-area a {
    width: 100%;
  }

  .button-area .button {
    height: 48px;
    border-radius: 10px;
  }

  .button-area .button .text {
    font-size: 0.95rem;
    white-space: nowrap;             /* 버튼 텍스트 한 줄 유지 */
  }
}
