/* ================================================
   Seoul BD Dental - Treatment Detail Page Styles
   전문센터 상세 페이지 스타일
   ================================================ */

/* ■ Treatment Hero */
.treatment-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-16)) 0 var(--space-16);
  overflow: hidden;
}

.treatment-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.treatment-hero .hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1510 50%, #0a0a0a 100%);
}

.treatment-hero .hero-content {
  max-width: 800px;
}

.treatment-hero .hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.treatment-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
}

.badge-accent {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.treatment-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.treatment-hero .hero-desc {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.treatment-hero .hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.treatment-hero .stat-item {
  text-align: center;
}

.treatment-hero .stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.treatment-hero .stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.treatment-hero .hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ■ Treatment Types Grid */
.treatment-types {
  padding: 6rem 0;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 640px) {
  .types-grid {
    grid-template-columns: 1fr;
  }
}

.type-card {
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease;
}

.type-card:hover {
  transform: translateY(-5px);
}

.type-card.featured {
  border: 2px solid #C9A962;
}

.type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #8B5A2B 0%, #C9A962 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
}

.type-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.2), rgba(201, 169, 98, 0.2));
  border-radius: 50%;
  font-size: 1.5rem;
  color: #C9A962;
  margin-bottom: 1.25rem;
}

.type-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.type-desc {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.type-features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.type-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.type-features i {
  color: #C9A962;
  font-size: 0.75rem;
}

.type-recommend {
  padding: 0.75rem;
  background: rgba(139, 90, 43, 0.1);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.type-recommend strong {
  color: #C9A962;
}

/* ■ Why Us Grid */
.why-us {
  padding: 6rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  padding: 2rem;
}

.why-num {
  font-size: 2rem;
  font-weight: 800;
  color: #C9A962;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ■ Process Timeline - Premium Horizontal Card */
.process-section {
  padding: 6rem 0;
}

.process-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 0 30px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.process-wrapper::-webkit-scrollbar {
  height: 8px;
}

.process-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.process-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  min-width: 1100px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  text-align: center;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px 24px;
  min-height: 300px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
  transform: translateY(-10px);
  border-color: rgba(201, 169, 98, 0.5);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.step-num,
.step-number {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover .step-num,
.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(201, 169, 98, 0.5);
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: none;
}

.step-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
  flex: 1;
}

.step-time {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid rgba(201, 169, 98, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: auto;
}

@media (max-width: 1200px) {
  .process-timeline {
    grid-template-columns: repeat(5, 220px);
    min-width: auto;
    width: max-content;
  }
}

@media (max-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(5, 200px);
  }
  .process-step {
    padding: 24px 18px;
    min-height: 260px;
  }
}

/* ■ FAQ Section */
.faq-section {
  padding: 6rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #C9A962;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.faq-answer a {
  color: #C9A962;
  text-decoration: underline;
}

/* ■ CTA Section */
.cta-section {
  padding: 6rem 0;
}

.cta-wrapper {
  padding: 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), rgba(var(--color-accent-rgb), 0.1));
}

.cta-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-wrapper > p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.cta-note i {
  margin-right: 0.5rem;
}

/* ■ Highlight Section (교정, 소아치과 등) */
.highlight-banner {
  padding: 3rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 16px;
  text-align: center;
  color: white;
}

.highlight-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.highlight-banner p {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* ■ Doctor Highlight */
.doctor-highlight {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.doctor-highlight-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.doctor-highlight-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.doctor-highlight-info p {
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.doctor-highlight-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.doctor-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* ■ Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  padding: 1.5rem;
  text-align: center;
}

.benefit-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.2), rgba(201, 169, 98, 0.2));
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: #C9A962;
}

.benefit-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ■ Responsive */
@media (max-width: 768px) {
  .treatment-hero {
    min-height: auto;
    padding: calc(80px + var(--space-8)) 0 var(--space-12);
  }
  
  .treatment-hero .hero-stats {
    gap: 1.5rem;
  }
  
  .treatment-hero .stat-num {
    font-size: 2rem;
  }
  
  .cta-wrapper {
    padding: 2rem;
  }
  
  .doctor-highlight {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================
   ■ Interactive Horizontal Stepper
   인터랙티브 가로 스텝퍼 스타일
   ================================================ */

.interactive-stepper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* 프로그레스 바 */
.stepper-progress {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-track {
  position: absolute;
  inset: 0;
}

.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8B5A2B, #C9A962);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 스텝 네비게이션 */
.stepper-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}

.stepper-nav::-webkit-scrollbar {
  display: none;
}

.step-nav-item {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.step-nav-item:hover {
  background: rgba(139, 90, 43, 0.1);
  border-color: rgba(201, 169, 98, 0.3);
}

.step-nav-item.active {
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.2), rgba(201, 169, 98, 0.15));
  border-color: #C9A962;
}

.step-nav-item.completed {
  background: rgba(139, 90, 43, 0.1);
  border-color: rgba(139, 90, 43, 0.5);
}

.step-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.step-nav-item:hover .step-icon {
  color: #C9A962;
}

.step-nav-item.active .step-icon {
  background: linear-gradient(135deg, #8B5A2B, #C9A962);
  color: white;
  box-shadow: 0 4px 15px rgba(201, 169, 98, 0.4);
}

.step-nav-item.completed .step-icon {
  background: #8B5A2B;
  color: white;
}

.step-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.step-nav-item:hover .step-label,
.step-nav-item.active .step-label {
  color: #C9A962;
}

.step-nav-item.completed .step-label {
  color: rgba(255, 255, 255, 0.7);
}

/* 스텝 컨텐츠 패널 */
.stepper-content {
  position: relative;
  min-height: 350px;
}

.step-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-panel.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.step-panel-inner {
  padding: 2.5rem;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.step-number {
  font-size: 0.875rem;
  font-weight: 700;
  color: #C9A962;
  letter-spacing: 0.1em;
}

.step-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(139, 90, 43, 0.2);
  border-radius: 50px;
  font-size: 0.8125rem;
  color: #C9A962;
}

.step-panel-inner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.step-panel-inner > p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* 스텝 상세 리스트 */
.step-details {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.step-details li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.step-details li i {
  color: #C9A962;
  font-size: 0.875rem;
}

/* 스텝 하이라이트 */
.step-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.15), rgba(201, 169, 98, 0.1));
  border-left: 3px solid #C9A962;
  border-radius: 0 8px 8px 0;
}

.step-highlight i {
  color: #C9A962;
  font-size: 1.125rem;
}

.step-highlight span {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* 스와이프 힌트 (모바일) */
.swipe-hint {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  animation: swipeHint 2s ease-in-out infinite;
}

@keyframes swipeHint {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .interactive-stepper {
    padding: 1rem 0;
  }
  
  .stepper-nav {
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0 0.5rem 0.5rem;
    margin: 0 -1rem 1.5rem;
  }
  
  .step-nav-item {
    min-width: 85px;
    padding: 0.875rem 0.5rem;
  }
  
  .step-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
  
  .stepper-content {
    min-height: auto;
  }
  
  .step-panel-inner {
    padding: 1.5rem;
  }
  
  .step-panel-inner h3 {
    font-size: 1.25rem;
  }
  
  .step-details {
    grid-template-columns: 1fr;
  }
  
  .swipe-hint {
    display: flex;
  }
}

@media (max-width: 480px) {
  .step-nav-item {
    min-width: 75px;
  }
  
  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
