/**
 * Election SMS 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.3);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Common */
.intro-section,
.restriction-section,
.features-section {
  padding: 60px 0;
}

.restriction-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: var(--bg-dark);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Introduction Section */
.intro-content {
  max-width: 1000px;
  margin: 0 auto;
}

.sms-interface {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  background: var(--bg-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Phone Mockup */
.phone-mockup {
  flex: 0 0 250px;
  background: white;
  border: 2px solid var(--text);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.phone-screen {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 15px;
  min-height: 400px;
}

.sms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.carrier {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 600;
}

.label {
  background: var(--success);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.message-preview {
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-title {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
}

.message-body {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 10px;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.message-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Web Interface */
.web-interface {
  flex: 1;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.web-header {
  background: var(--bg-light);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 14px;
  color: var(--text-light);
}

.home-icon {
  font-size: 18px;
}

.send-form {
  padding: 20px;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.form-header h3 {
  font-size: 18px;
  color: var(--text);
  margin: 0;
}

.stats {
  display: flex;
  gap: 20px;
}

.stats .orange {
  color: #ff6b35;
  font-size: 13px;
}

.stats .count {
  background: #ff6b35;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 5px;
}

.recipient-info {
  margin-bottom: 20px;
}

.recipient-info label {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buttons button {
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
}

.buttons button:hover {
  background: var(--bg-light);
  border-color: #adb5bd;
}

.message-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 6px;
}

.info-item {
  font-size: 13px;
  color: var(--text-light);
}

.info-item span {
  font-weight: 600;
  color: var(--text);
  margin-left: 5px;
}

.message-compose textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 15px;
}

.options {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.options label {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.checkboxes label {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.send-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-send {
  background: #1a4b8c;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-send:hover {
  background: #2a5298;
  transform: translateY(-2px);
}

.btn-reset {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-reset:hover {
  background: #5a6268;
}

.intro-desc {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  text-align: center;
}

/* Restriction Section */
.restriction-desc {
  font-size: 16px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* CTA Section */
.cta-section {
  padding: 0;
  margin: 0 0 60px;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  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 .highlight {
  color: #ffc107;
  font-weight: 700;
  font-size: 20px;
  text-decoration: underline;
}

/* Features Section */
.highlight-box {
  background: #fff9e6;
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.2);
}

.highlight-box p {
  font-size: 18px;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.highlight-box strong {
  color: #d32f2f;
  font-size: 20px;
}

.features-list {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e9ecef;
}

.feature-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.feature-number {
  display: inline-flex;
  width: 50px;
  height: 50px;
  background: #d32f2f;
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
  padding-top: 5px;
}

.feature-content p {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 15px;
  font-weight: 500;
}

.sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sub-list li {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 8px;
}

.sub-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;
  background: var(--bg-light);
}

.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-button.primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 162, 39, 0.4);
}

.cta-button.secondary {
  background: white;
  color: var(--primary);
  border: 2px solid #1a4b8c;
  box-shadow: 0 2px 10px rgba(30, 58, 95, 0.1);
}

.cta-button.secondary:hover {
  background: #1a4b8c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

/* 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-dark);
  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: 768px) {
  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .sms-interface {
    flex-direction: column;
    padding: 20px;
  }

  .phone-mockup {
    flex: 1;
    max-width: 250px;
    margin: 0 auto;
  }

  .web-interface {
    margin-top: 20px;
  }

  .message-info {
    grid-template-columns: 1fr;
  }

  .buttons {
    flex-direction: column;
  }

  .buttons button {
    width: 100%;
  }

  .options {
    flex-wrap: wrap;
  }

  .highlight-box p {
    font-size: 16px;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-number {
    margin: 0 auto;
  }

  .cta-text {
    font-size: 16px;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .intro-desc,
  .restriction-desc {
    font-size: 14px;
  }

  .cta-box {
    padding: 25px;
  }

  .cta-text {
    font-size: 14px;
  }

  .cta-text .highlight {
    font-size: 16px;
  }

  .highlight-box p {
    font-size: 14px;
  }

  .highlight-box strong {
    font-size: 16px;
  }

  .modal-content {
    padding: 20px;
  }
}