* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: 1.2em;
  opacity: 0.9;
}

.content {
  padding: 40px;
}

.explainer {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border-left: 5px solid #e74c3c;
}

.explainer h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.explainer p {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.key-points {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.key-points h3 {
  color: #e74c3c;
  margin-bottom: 15px;
}

.key-points ul {
  list-style: none;
  padding-left: 0;
}

.key-points li {
  padding: 5px 0;
  position: relative;
  padding-left: 25px;
}

.key-points li::before {
  content: "•";
  color: #e74c3c;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.understanding-checkbox {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
}

.understanding-checkbox label {
  font-size: 1.2em;
  color: #856404;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.understanding-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #ffc107;
}

.email-form {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.3s ease;
}

.email-form.enabled {
  opacity: 1;
  pointer-events: auto;
}

.recipients-section {
  margin-bottom: 30px;
}

.recipients-section h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.recipients-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.recipient-item {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.recipient-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recipient-item.selected {
  border-color: #667eea;
  background: #f8f9ff;
}

.recipient-item input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.recipient-name {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 5px;
}

.recipient-email {
  color: #6c757d;
  font-size: 0.9em;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group textarea {
  height: 300px;
  resize: vertical;
  font-family: monospace;
  font-size: 0.9em;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
  transform: none;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pdf-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.pdf-button:hover {
  background-color: #0056b3;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 30px;
  border-radius: 15px;
  width: 80%;
  max-width: 500px;
  text-align: center;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h3 {
  color: #28a745;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}
@media (min-width: 600px) {
  .recipients-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    margin: 10px;
    border-radius: 10px;
  }

  .content {
    padding: 20px;
  }

  .header h1 {
    font-size: 2em;
  }

  .action-buttons {
    flex-direction: column;
  }

  @media (max-width: 480px) {
    .form-group input,
    .form-group textarea {
      font-size: 1em;
      padding: 10px;
    }

    .btn {
      font-size: 1em;
      padding: 12px 20px;
    }

    .header h1 {
      font-size: 1.5em;
    }

    .header p {
      font-size: 1em;
    }

    .modal-content {
      width: 90%;
      padding: 20px;
    }

    .content {
      padding: 15px;
    }
  }
}

/*
.counter-footer {
  text-align: center;
  padding: 15px;
  font-weight: bold;
  background: #f8f9fa;
  color: #2c3e50;
  border-top: 2px solid #e9ecef;
  margin: 30px auto 0;
  width: 20%;
}
*/