/* 상단 인트로 */
.franchise-hero {
  width: 100%;
  height: 800px;
  background: #1e2b56;
  position: relative;
}

.franchise-hero-bg {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(30, 43, 86, 0.7) 60%, rgba(30, 43, 86, 0.95) 100%),
    url('/images/surgery/frenchise-bg-70ec4ed12e4ffd1bc1e118c252115b0c.jpg') center center/cover no-repeat;
}

/* 진료과별 배경 이미지 변경 필요!! */
.franchise-hero-bg.DERMATOLOGY {
  background:
    linear-gradient(90deg, rgba(30, 43, 86, 0.7) 60%, rgba(30, 43, 86, 0.95) 100%),
    url('/images/surgery/frenchise-bg-70ec4ed12e4ffd1bc1e118c252115b0c.jpg') center center/cover no-repeat;
}

.franchise-hero-bg.PLASTIC_SURGERY {
  background:
    linear-gradient(90deg, rgba(30, 43, 86, 0.7) 60%, rgba(30, 43, 86, 0.95) 100%),
    url('/images/surgery/frenchise-bg-70ec4ed12e4ffd1bc1e118c252115b0c.jpg') center center/cover no-repeat;
}

.franchise-hero-bg.WOMEN_CLINIC {
  background:
    linear-gradient(90deg, rgba(30, 43, 86, 0.7) 60%, rgba(30, 43, 86, 0.95) 100%),
    url('/images/surgery/frenchise-bg-70ec4ed12e4ffd1bc1e118c252115b0c.jpg') center center/cover no-repeat;
}

.franchise-hero-bg.HAIR {
  background:
    linear-gradient(90deg, rgba(30, 43, 86, 0.7) 60%, rgba(30, 43, 86, 0.95) 100%),
    url('/images/surgery/frenchise-bg-70ec4ed12e4ffd1bc1e118c252115b0c.jpg') center center/cover no-repeat;
}

.franchise-hero-content {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 50%;
}

.franchise-hero-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
}

.franchise-hero-divider {
  width: 3px;
  height: 90px;
  background: #fff;
  margin-bottom: 32px;
}

.franchise-hero-content p {
  font-size: 32px;
  color: #fff;
}

.franchise-slogan {
  background: #fff;
  padding: 120px 0 40px 0;
  text-align: center;
}

/* 슬로건 */
.slogan-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
}

.slogan-quote {
  font-size: 56px;
  color: #1e2b56;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  line-height: 1;
}

.slogan-title {
  font-size: 2rem;
  color: #1e2b56;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.slogan-title b {
  font-weight: 700;
  font-size: 2.1rem;
}

.franchise-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 32px;
  max-width: 90%;
  margin: 0 auto;
}

.icon-box {
  background: #fff;
  padding: 61px 60px 79px;
  text-align: center;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #333;
  border: none;
}

.icon-box:hover {
  background: #1E2B56;
  color: #fff;
  border-radius: 0 80px 0 0;
  position: relative;
}

.icon-svg {
  margin-bottom: 18px;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-svg img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0.2) contrast(1);
  transition: filter 0.3s ease;
}

.icon-box:hover .icon-svg img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(1) contrast(1);
}

.icon-label {
  font-size: 24px;
  font-weight: 500;
  margin-top: 8px;
  color: inherit;
  word-break: keep-all;
  line-height: 1.4;
}

/* 가맹점 바로가기 */
.franchise-quick {
  background: rgba(255, 255, 255, 0.8) url('/images/dermatology/frenchise-go-7186b0d892b93beef5ef8f7ab805a7ed.jpg') no-repeat right top;
  background-size: cover;
  padding: 120px 0;
  text-align: center;
  position: relative;
  margin-top: 100px;
}

.franchise-quick::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.franchise-quick>* {
  position: relative;
  z-index: 1;
}

.franchise-quick h4 {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  margin-bottom: 120px;
}

.franchise-quick-btns {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-top: 0;
}

.quick-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 320px;
  min-height: 120px;
  border: 1.5px solid #595857;
  border-radius: 12px;
  transition: box-shadow 0.2s, border 0.2s;
}

.branch-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.branch-location {
  font-size: 20px;
  font-weight: 700;
  color: #595857;
}

/* CONTACT US */
.franchise-contact {
  position: relative;
  background: none;
  padding: 120px 0 80px 0;
  min-height: 520px;
  overflow: hidden;
  text-align: center;
  margin-bottom: 100px;
}

.franchise-contact-bg {
  position: absolute;
  inset: 0;
  background: url('/images/dermatology/frenchise-contack-cc7a9f8b385c6cf5a9ae162e274d95be.jpg') no-repeat center center / cover;
  z-index: 0;
}

.franchise-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 43, 86, 0.7);
  /* 어두운 오버레이 */
  z-index: 1;
}

.franchise-contact-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.franchise-contact h4 {
  text-align: center;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 48px;
}

#franchiseForm {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group label {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
  display: block;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 18px;
  border-radius: 4px;
  margin-bottom: 0;
}

.form-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 1.5px solid #fff;
  background: transparent;
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.form-group input[type="checkbox"]:checked {
  background: transparent;
}

.form-group input[type="checkbox"]:checked::before {
  content: '\2714';
  display: block;
  color: #fff;
  font-size: 16px;
  position: absolute;
  top: -4px;
  left: 3px;
}

.form-group input[type="checkbox"]::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
}

.phone-group {
  display: flex;
  gap: 8px;
}

.phone-group input {
  width: 33%;
}

.agree-group label {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 16px;
  gap: 8px;
}

.agree-detail {
  color: #fff;
  text-decoration: underline;
  margin-left: 6px;
  font-size: 15px;
}

.submit-btn {
  width: 100%;
  padding: 6px 0;
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 4px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s, color 0.2s;
}

.submit-btn:hover {
  background: #fff;
  color: #1e2b56;
}

.franchise-contact-info {
  color: #fff;
  font-size: 17px;
  margin-top: 36px;
  text-align: center;
}

.franchise-contact-info b {
  font-weight: 700;
  color: #fff;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
  .franchise-hero {
    height: 400px;
  }
  .franchise-hero-content h2 {
    font-size: 32px;
  }
  .franchise-hero-content p {
    font-size: 20px;
  }

  /* 슬로건 */
  .franchise-slogan {
    padding: 60px 20px 30px;
  }
  .franchise-icons {
    gap: 24px;
    margin-top: 60px;
  }
  .icon-box {
    padding: 32px 20px 36px;
  }
  .icon-label {
    font-size: 18px;
  }
  .icon-svg {
    width: 90px;
    height: 90px;
  }
  .franchise-quick {
    padding: 60px 0;
    margin-top: 60px;
  }
  .franchise-quick h4 {
    font-size: 32px;
    margin-bottom: 60px;
  }
  .franchise-quick-btns {
    gap: 40px;
  }
  .quick-branch {
    min-height: 100px;
  }
  .branch-location {
    font-size: 16px;
  }
  .franchise-contact {
    padding: 60px 0 40px 0;
    min-height: 320px;
  }
  .franchise-contact-inner {
    max-width: 95vw;
  }
  .franchise-contact h4 {
    font-size: 28px;
    margin-bottom: 28px;
  }
  .submit-btn {
    font-size: 16px;
    padding: 10px 0;
  }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
  .franchise-hero {
    padding: 0 16px;
    height: 220px;
  }
  .franchise-hero-content {
    transform: translate(-30%, -50%);
  }
  .franchise-hero-content h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .franchise-hero-divider {
    height: 40px;
    width: 2px;
    margin-bottom: 16px;
  }
  .franchise-hero-content p {
    font-size: 12px;
  }
  .slogan-inner {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
  }
  .slogan-title {
    font-size: 1.1rem;
  }
  .slogan-title b {
    font-size: 1.2rem;
  }
  .slogan-quote {
    font-size: 28px;
  }

  /* 슬로건 */
  .franchise-slogan {
    padding: 30px 16px;
  }
  .franchise-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 18px;
    margin-top: 24px;
  }
  .icon-box {
    padding: 18px 8px 18px;
    width: 100%;
    min-width: 0;
    max-width: 320px;
    margin: 0 auto;
  }
  .icon-label {
    font-size: 14px;
  }
  .icon-svg {
    width: 48px;
    height: 48px;
  }

  /* 가맹점 바로가기 */
  .franchise-quick {
    padding: 30px 16px;
    margin-top: 30px;
  }
  .franchise-quick h4 {
    font-size: 20px;
    margin-bottom: 24px;
  }
  .franchise-quick-btns {
    flex-direction: column;
    gap: 16px;
  }
  .quick-branch {
    width: 100%;
    min-width: 0;
    max-width: 320px;
    margin: 0 auto;
    padding: 18px 0 10px 0;
  }
  .branch-location {
    font-size: 14px;
  }
  .franchise-contact {
    padding: 30px 0 20px 0;
    min-height: 180px;
    margin-bottom: 40px;
  }
  .franchise-contact-inner {
    max-width: 100vw;
    padding: 0 16px;
  }
  .franchise-contact h4 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .form-group label {
    font-size: 13px;
  }
  .form-group input[type="text"],
  .form-group input[type="tel"] {
    font-size: 13px;
    padding: 7px 8px;
  }
  .phone-group input {
    font-size: 13px;
  }
  .agree-group label {
    font-size: 12px;
  }
  .agree-detail {
    font-size: 12px;
  }
  .submit-btn {
    font-size: 13px;
    padding: 7px 0;
  }
  .franchise-contact-info {
    font-size: 12px;
    margin-top: 18px;
  }
}

@media (max-width: 480px) {
  .franchise-icons {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }
}

/* 개인정보취급방침 모달 */
.privacy-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.privacy-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.privacy-modal-header {
  background: #1e2b56;
  color: #fff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.privacy-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.privacy-modal-close {
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.privacy-modal-close:hover {
  opacity: 0.7;
}

.privacy-modal-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.privacy-content h4 {
  color: #1e2b56;
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  line-height: 1.4;
}

.privacy-content h4:first-child {
  margin-top: 0;
}

.privacy-content p {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.privacy-content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.privacy-content li {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.privacy-content em {
  color: #666;
  font-style: italic;
  font-size: 12px;
}

.privacy-note {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #1e2b56;
  margin-top: 20px !important;
  font-size: 13px !important;
  color: #555 !important;
}

.privacy-modal-footer {
  padding: 20px 24px;
  text-align: center;
  border-top: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

.privacy-modal-btn {
  background: #1e2b56;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.privacy-modal-btn:hover {
  background: #2a3a6b;
}

/* 모달 스크롤바 스타일 */
.privacy-modal-body::-webkit-scrollbar {
  width: 6px;
}

.privacy-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.privacy-modal-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 반응형 모달 */
@media (max-width: 768px) {
  .privacy-modal-content {
    width: 95%;
    margin: 10% auto;
    max-height: 85vh;
  }
  
  .privacy-modal-header {
    padding: 16px 20px;
  }
  
  .privacy-modal-header h3 {
    font-size: 18px;
  }
  
  .privacy-modal-body {
    padding: 20px;
    max-height: 65vh;
  }
  
  .privacy-modal-footer {
    padding: 16px 20px;
  }
  
  .privacy-content h4 {
    font-size: 15px;
  }
  
  .privacy-content p,
  .privacy-content li {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .privacy-modal-content {
    width: 98%;
    margin: 5% auto;
  }
  
  .privacy-modal-header {
    padding: 12px 16px;
  }
  
  .privacy-modal-body {
    padding: 16px;
  }
  
  .privacy-modal-footer {
    padding: 12px 16px;
  }
}