@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --navy: #0d1f3c;
  --navy-mid: #1a3460;
  --red: #c0392b;
  --red-light: #f8eded;
  --green: #1a6b3c;
  --gold: #b8960c;
  --text: #1a1a2e;
  --text-muted: #5a6273;
  --border: #d0d6e0;
  --surface: #f5f7fa;
  --white: #ffffff;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  background-color: #0d1f3c;
  min-height: 100vh;
  padding: 40px 20px;
  line-height: 1.7;
  color: var(--text);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('./assets/bg.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: -1;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.header {
  background-color: var(--navy);
  background-image: url('./assets/bg.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 48px 40px 40px;
  text-align: center;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 60, 0.72);
}

.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.header p {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.header-rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto;
  position: relative;
  z-index: 1;
}

.content {
  padding: 48px 40px;
}

.explainer {
  border: 2px solid #c2cad8;
  border-top: 5px solid var(--navy);
  border-radius: 2px;
  padding: 32px;
  margin-bottom: 36px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(13, 31, 60, 0.07);
}

.explainer h2 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.explainer > p {
  color: var(--text-muted);
  font-size: 0.975rem;
  margin-bottom: 24px;
}

.key-points {
  background: #edf0f5;
  border-left: 4px solid var(--navy-mid);
  padding: 20px 24px;
  margin: 20px 0;
  border-radius: 0 2px 2px 0;
}

.key-points h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

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

.key-points li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}

.key-points li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--navy-mid);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 14px;
}

.key-points.concerns {
  border-left-color: var(--red);
}

.key-points.concerns h3 {
  color: var(--red);
}

.key-points.concerns li::before {
  background: var(--red);
}

.deadline-notice {
  background: #fffbea;
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text);
}

.deadline-notice strong {
  color: var(--navy);
}

.images-section {
  display: flex;
  gap: 12px;
  margin: 32px 0;
}

.images-section img {
  width: 50%;
  height: 320px;
  object-fit: contain;
  border-radius: 2px;
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
}

.button-container {
  display: flex;
  justify-content: flex-start;
  margin: 28px 0;
}

.pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease;
}

.pdf-button:hover {
  background-color: var(--navy-mid);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.understanding-checkbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 20px 24px;
  margin: 28px 0;
}

.understanding-checkbox label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.understanding-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  margin-top: 2px;
  flex-shrink: 0;
}

.email-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 32px;
  margin: 28px 0;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

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

.recipients-section h3 {
  color: var(--navy);
  margin-bottom: 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

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

.recipient-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.recipient-item:hover {
  border-color: var(--navy-mid);
}

.recipient-item.selected {
  border-color: var(--navy);
  background: #f0f4fa;
}

.recipient-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  margin-top: 3px;
  flex-shrink: 0;
  pointer-events: none;
}

.recipient-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.recipient-email {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.95rem;
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form-group textarea {
  height: 280px;
  resize: vertical;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn {
  padding: 11px 28px;
  border: none;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Source Sans 3', sans-serif;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-mid);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--surface);
}

.btn-disabled,
.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

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

.modal-content {
  background-color: var(--white);
  margin: 15% auto;
  padding: 40px;
  border-radius: 2px;
  width: 80%;
  max-width: 480px;
  text-align: center;
  border-top: 4px solid var(--green);
}

.modal-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.close {
  color: var(--text-muted);
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .content {
    padding: 28px 20px;
  }

  .header {
    padding: 36px 24px 28px;
  }

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

  .explainer {
    padding: 24px 20px;
  }

  .email-form {
    padding: 24px 20px;
  }

  .images-section {
    flex-direction: column;
  }

  .images-section img {
    width: 100%;
    height: 220px;
  }

  .action-buttons {
    justify-content: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}