/* RCD(누전차단기) 교체 전용 스타일 */

body { 
  background: #f8fafc; 
  margin: 0;
  padding: 0;
}

.rcd-main { 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 0 16px; 
}

@media (max-width: 768px) {
  .rcd-main {
    padding: 0 8px;
  }
}

/* Hero Section */
.rcd-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 767px) {
  .rcd-hero {
    padding: 2rem 1rem;
    margin: 1rem 0;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content {
    text-align: center;
    order: 1;
  }
  
  .hero-cards {
    order: 2;
  }
}

@media (min-width: 768px) {
  .rcd-hero {
    grid-template-columns: 1fr 1fr;
    padding: 4rem 3rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  text-align: center;
  word-break: keep-all;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin: 0 0 2rem 0;
  }
  
  .hero-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-card {
    padding: 1.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons a {
    min-width: auto;
    width: 100%;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem 0;
  line-height: 1.5;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons a {
  flex: 1;
  min-width: 150px;
  text-align: center;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

/* 긴급 교체 신청 버튼 */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

/* 사고 사례 보기 버튼 */
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.hero-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .hero-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.hero-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

/* 공통 카드 스타일 */
.card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 1rem 0;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  text-align: center;
  margin: 0 0 3rem 0;
}

/* 위험 사례 섹션 */
.danger-cases {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
}

.cases-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.case-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid;
}

.case-card.fire {
  border-left-color: #4f46e5;
}

.case-card.shock {
  border-left-color: #f59e0b;
}

.case-card.malfunction {
  border-left-color: #8b5cf6;
}

.case-header {
  margin-bottom: 1.5rem;
}

.case-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.case-location {
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.case-content h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.case-content p {
  color: #6b7280;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.case-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.case-content li {
  color: #6b7280;
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.case-content li:before {
  content: "•";
  color: #4f46e5;
  position: absolute;
  left: 0;
  font-weight: 700;
}

.case-result {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #4f46e5;
}

.case-result p {
  margin: 0;
  font-size: 0.9rem;
}

/* 교체 필요성 섹션 */
.necessity-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

.necessity-item {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.necessity-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.necessity-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
}

.necessity-item p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.necessity-stats {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.necessity-stats span {
  font-size: 0.85rem;
  color: #9ca3af;
}

.necessity-stats strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: #4f46e5;
}

/* 체크리스트 섹션 */
.checklist-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .checklist-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.checklist-category {
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid;
}

.checklist-category.urgent {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #f87171;
}

.checklist-category.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fbbf24;
}

.checklist-category.normal {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #4ade80;
}

.checklist-category h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.checklist-category.urgent h3 {
  color: #4f46e5;
}

.checklist-category.warning h3 {
  color: #d97706;
}

.checklist-category.normal h3 {
  color: #059669;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  accent-color: #4f46e5;
}

.checklist-item span {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 교체 절차 섹션 */
.process-timeline {
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

@media (min-width: 768px) {
  .process-timeline::before {
    left: 3rem;
  }
}

.process-step {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 6rem;
}

@media (min-width: 768px) {
  .process-step {
    padding-left: 8rem;
  }
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

@media (min-width: 768px) {
  .step-number {
    left: 1rem;
    width: 4rem;
    height: 4rem;
  }
}

.step-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
}

.step-content p {
  color: #6b7280;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.step-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-content li {
  color: #6b7280;
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.step-content li:before {
  content: "✓";
  color: #059669;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* RCD 교체 신청 버튼 */
.rcd-cta-wrapper {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.rcd-cta-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.rcd-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.4);
}

/* 교체 사례 */
.replacement-cases {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
}

.replacement-case {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #059669;
}

.replacement-case .case-header h4 {
  color: #059669;
}

.case-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.case-info:last-of-type {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.info-value {
  color: #6b7280;
  font-size: 0.9rem;
  text-align: right;
}

.case-result {
  background: #f0fdf4;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid #059669;
  margin-top: 1rem;
}

/* FAQ 섹션 */
.faq-section {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-list details {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.faq-list summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.faq-list summary:hover {
  background: #f9fafb;
}

.faq-list details[open] summary {
  background: #f3f4f6;
}

.faq-content {
  padding: 1.5rem;
}

.faq-content p {
  color: #374151;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.faq-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.faq-content li {
  color: #6b7280;
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.faq-content li:before {
  content: "•";
  color: #4f46e5;
  position: absolute;
  left: 0;
  font-weight: 700;
}

.faq-content h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin: 1rem 0 0.5rem 0;
}

/* 최종 CTA 섹션 */
.cta-section {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 20px;
  margin: 2rem 0;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem 0;
}

.cta-btn {
  background: white;
  color: #4f46e5;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* 반응형 조정 */
@media (max-width: 767px) {
  .rcd-main {
    padding: 0 12px;
  }
  
  .card {
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.15;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .process-step {
    padding-left: 5rem;
  }
  
  .step-number {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

/* 푸터 스타일 */
.main-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #e2e8f0;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-section p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin: 0.5rem 0;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.footer-contact {
  margin-top: 1.5rem;
}

.footer-contact p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* 푸터 반응형 */
@media (max-width: 768px) {
  .footer-container {
    padding: 2rem 1.5rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-section {
    text-align: center;
  }
}