/**
 * Poll Survey Page Styles
 * 여론조사 서비스 페이지 스타일
 */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  padding: 120px 0 60px;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Common */
.intro-section,
.why-section,
.table-section,
.timeline-section,
.info-section {
  padding: 60px 0;
}

.intro-section {
  background: var(--bg-light);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.icon-badge {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: #e3f2fd;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Introduction Section */
.intro-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.people-illustration {
  margin-bottom: 40px;
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.people-icons {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  position: relative;
}

.person {
  width: 50px;
  height: 60px;
  background: var(--border);
  border-radius: 50% 50% 0 0;
  position: relative;
  transition: all 0.3s ease;
}

.person::before {
  content: '';
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--border);
  border-radius: 50%;
}

.person.active {
  background: #ffa726;
  transform: scale(1.2);
  z-index: 2;
}

.person.active::before {
  background: #ffa726;
}

.speech-bubbles {
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
}

.bubble {
  background: white;
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.intro-desc {
  font-size: 18px;
  color: var(--text);
  line-height: 1.8;
  margin: 0;
}

/* Why Section */
.why-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* Advantages List */
.advantages-list {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.advantage-item:last-child {
  border-bottom: none;
}

.advantage-number {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: #1a4b8c;
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.advantage-item p {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: var(--bg-light);
  padding: 40px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.3);
}

.cta-text {
  color: white;
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
}

.cta-text strong {
  color: #ffa726;
  font-weight: 700;
  font-size: 20px;
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.comparison-table thead {
  background: #1a4b8c;
  color: white;
}

.comparison-table th {
  padding: 15px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  border-right: 1px solid #3366cc;
}

.comparison-table th:last-child {
  border-right: none;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 15px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  border-right: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table td:last-child {
  border-right: none;
}

.table-label {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--primary);
}

.highlight-row {
  background: #fff3cd;
}

.text-center {
  text-align: center;
}

.text-red {
  color: #dc3545;
  font-weight: 600;
}

/* Timeline Section */
.timeline-section {
  background: var(--bg-light);
  padding: 60px 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.timeline-header {
  display: contents;
}

.timeline-header .timeline-period {
  background: #8B1A2B;
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 16px 10px;
  font-size: 15px;
  border-right: 2px solid rgba(255,255,255,0.2);
}
.timeline-header .timeline-period:last-child {
  border-right: none;
}

.timeline-row {
  display: contents;
}

.timeline-bar {
  background: #F5C6C6;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.5);
}

.timeline-empty {
  background: #F8D8D8;
  padding: 20px 10px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
}
.timeline-empty:last-child {
  border-right: none;
}

.span-3-left  { grid-column: span 3; }
.span-3-right { grid-column: span 3; }
.span-6-full  { grid-column: span 6; }

.arrow-both {
  font-size: 16px;
  color: #333;
}

/* Info Section */
.info-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.info-image {
  flex: 0 0 300px;
  text-align: center;
}

.info-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.info-list {
  flex: 1;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.check-icon {
  color: var(--success);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.info-item p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.info-item strong {
  color: var(--primary);
}

.example-list {
  margin: 10px 0 0 0;
  padding-left: 20px;
  list-style: none;
}

.example-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.example-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* CTA Button Section */
.cta-button-section {
  padding: 40px 0;
  text-align: center;
}

.cta-button {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 162, 39, 0.4);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.required {
  color: #dc3545;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-content {
    flex-direction: column;
  }

  .info-image {
    flex: 1;
  }

  .comparison-table {
    font-size: 12px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px;
  }

  .timeline {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .timeline-bar {
    font-size: 12px;
    padding: 14px 6px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: 26px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .advantage-item {
    flex-direction: column;
    text-align: center;
  }

  .cta-text {
    font-size: 16px;
  }

  .modal-content {
    padding: 20px;
  }
}