:root {
  --bg: #0e1014;
  --card: #151823;
  --line: #232a42;
  --text: #f5f6fa;
  --muted: #9aa3b2;
  --accent: #3b79ff;
  --danger: #ff4d4f;
  --success: #27c693;
  --yellow: #ffb020;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

h1, h2, h3 {
  color: var(--text);
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #1e212d;
  color: var(--text);
  font-size: 14px;
}

textarea {
  resize: vertical;
}

section {
  margin-top: 30px;
}

.row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.row > * {
  flex: 1;
  min-width: 250px;
}

.buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button, .btn, .btn-green {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background-color: var(--accent);
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover, .btn:hover {
  background-color: #2a66db;
}

.btn-green {
  background-color: var(--success);
}

.btn-green:hover {
  background-color: #1ebd86;
}

.topbar {
  padding: 20px;
  display: flex;
  justify-content: flex-start;
  background-color: var(--panel);
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

.nav-buttons .btn {
  background-color: var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  color: white;
}

.nav-buttons .btn:hover {
  background-color: #2a66db;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: var(--card);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--line);
  width: 80%;
  border-radius: 10px;
}

.modal-content h3 {
  margin-top: 0;
}

.email-entry {
  background: #1f232e;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  color: white;
}

.email-entry button {
  margin-top: 8px;
  margin-right: 6px;
}

.form-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.form-section .column {
  flex: 1;
  min-width: 300px;
}

/* Make input & select smaller */
input, select, textarea {
  font-size: 13px;
  padding: 8px 10px;
}

/* Section titles spacing */
section h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

/* General spacing fix */
.row, .form-group {
  margin-bottom: 15px;
}

 .section-content {
    display: none;
    padding-top: 10px;
  }

  .section-content.open {
    display: block;
  }

  .section-toggle {
    display: flex;
    justify-content: space-between;
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    width: 100%;
  }

  .toggle-icon {
    transition: transform 0.3s ease;
  }

  .section-content.open + .toggle-icon {
    transform: rotate(90deg);
  }
