/* Video Guide Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 40px 30px;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #231815;
  margin: 0 0 24px 0;
  text-align: center;
}

.modal-text {
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

.intro-text {
  font-size: 16px;
  font-weight: 600;
  color: #f15a21;
  margin: 0 0 20px 0;
  text-align: center;
}

.description-text {
  margin: 0 0 24px 0;
  text-align: center;
  color: #555;
}

.version-info {
  background-color: #f9f9f9;
  border-left: 4px solid #f15a21;
  padding: 16px;
  margin: 24px 0;
  border-radius: 4px;
}

.version-label {
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #231815;
}

.version-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.version-list li {
  margin: 6px 0;
  color: #555;
}

.instruction-box {
  background-color: #fff8f3;
  border: 1px solid #f5d5c8;
  border-radius: 6px;
  padding: 20px;
  margin: 24px 0;
  text-align: center;
}

.instruction-box p {
  margin: 8px 0;
  color: #333;
  line-height: 1.5;
}

.instruction-box .highlight {
  font-size: 16px;
  color: #f15a21;
  margin: 12px 0;
}

.apology-text {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin: 24px 0 0 0;
}

.help-section {
  margin-top: 24px;
}

.help-link {
  display: block;
  text-decoration: none;
  padding: 16px;
  background-color: #f0f0f0;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.help-link:hover {
  background-color: #f15a21;
  color: #ffffff;
  border-color: #f15a21;
}

.help-link h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: inherit;
}

.help-link:hover h3 {
  color: #ffffff;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #eee;
}

.modal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.hide-modal-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
  margin-right: 8px;
}

.checkbox-label {
  font-size: 13px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
}

.btn-close-modal {
  background-color: #f15a21;
  color: #ffffff;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.btn-close-modal:hover {
  background-color: #d94a11;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    width: 95%;
  }

  .modal-body {
    padding: 30px 20px;
  }

  .modal-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .modal-text {
    font-size: 13px;
  }

  .intro-text {
    font-size: 15px;
  }

  .instruction-box {
    padding: 16px;
  }

  .version-info {
    padding: 12px;
  }

  .help-link {
    padding: 12px;
  }

  .help-link h3 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 100%;
    width: calc(100% - 20px);
    margin: 10px;
    border-radius: 6px;
  }

  .modal-body {
    padding: 24px 16px;
  }

  .modal-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .modal-text {
    font-size: 12px;
  }

  .intro-text {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .description-text {
    margin-bottom: 16px;
  }

  .version-info {
    padding: 12px;
    margin: 16px 0;
  }

  .version-list {
    padding-left: 18px;
  }

  .version-list li {
    margin: 4px 0;
  }

  .instruction-box {
    padding: 14px;
    margin: 16px 0;
  }

  .instruction-box p {
    margin: 6px 0;
  }

  .instruction-box .highlight {
    font-size: 14px;
    margin: 10px 0;
  }

  .help-section {
    margin-top: 16px;
  }

  .modal-footer {
    padding: 16px 20px;
  }

  .modal-footer-inner {
    flex-direction: column;
    gap: 12px;
  }

  .btn-close-modal {
    padding: 10px 24px;
    font-size: 13px;
    width: 100%;
  }

  .checkbox-label {
    font-size: 12px;
  }
}
