/* ── Bulletin tab navigation ───────────────────────────────────────────── */
.bulletin-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #e4eaf0;
}

.bulletin-menu a {
  text-decoration: none;
  color: #5a6a7a;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  transition: background 0.2s, color 0.2s;
  border: 1px solid transparent;
}

.bulletin-menu a:hover {
  background: #f0f5fa;
  color: #1a2b40;
}

#b1 {
  color: #1a2b40;
  font-weight: 700;
  border-bottom: 2px solid #4CAF50;
  border-radius: 0;
  padding-bottom: 8px;
}

#b1:hover {
  background: transparent;
  color: #1a2b40;
}

/* ── Two-column page layout ─────────────────────────────────────────────── */
.bulletin-page-wrapper {
  max-width: 1240px;
  margin: 36px auto 60px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

/* ── Form container ─────────────────────────────────────────────────────── */
.bulletin-form-container {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 31, 54, 0.11);
  overflow: hidden;
}

/* ── Info panel (right column) ──────────────────────────────────────────── */
.bulletin-info-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 31, 54, 0.11);
  overflow: hidden;
  position: sticky;
  top: 24px;
}

.bulletin-info-header {
  background: linear-gradient(135deg, #001428 0%, #002244 100%);
  padding: 26px 28px;
  border-bottom: 3px solid #4CAF50;
}

.bulletin-info-header h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 5px;
  letter-spacing: 0.2px;
}

.bulletin-info-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  margin: 0;
  line-height: 1.5;
}

.bulletin-info-body {
  padding: 24px 28px 28px;
}

.info-section {
  margin-bottom: 22px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #4CAF50;
  margin-bottom: 10px;
}

.info-section p {
  font-size: 13px;
  color: #4a5a6a;
  line-height: 1.7;
  margin: 0 0 8px;
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #3a4a5a;
  line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1px solid #f0f4f8;
}

.info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4CAF50;
  margin-top: 5px;
  flex-shrink: 0;
}

.info-divider {
  height: 1px;
  background: #edf1f6;
  margin: 18px 0;
}

.info-example-box {
  background: #f4f8fb;
  border-left: 3px solid #4CAF50;
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
}

.info-example-box p {
  font-size: 12.5px;
  color: #5a6a7a;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* ── Form header (dark bar) ─────────────────────────────────────────────── */
.bulletin-form-header {
  background: linear-gradient(135deg, #001428 0%, #002244 100%);
  padding: 30px 40px;
  border-bottom: 3px solid #4CAF50;
}

.bulletin-form-header h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}

.bulletin-form-header p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.5;
}

/* ── Form body ──────────────────────────────────────────────────────────── */
.bulletin-form-body {
  padding: 36px 40px 40px;
}

.bulletin-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Field group ────────────────────────────────────────────────────────── */
.field-group {
  margin-bottom: 22px;
}

.field-group label {
  display: block;
  font-weight: 600;
  color: #1a2b40;
  font-size: 13.5px;
  margin-bottom: 7px;
  letter-spacing: 0.15px;
}

.field-group input[type="text"],
.field-group input[type="number"],
.field-group textarea,
.field-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #dce4ed;
  border-radius: 8px;
  font-size: 14px;
  color: #2c3e50;
  background: #fafcfe;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  border-color: #4CAF50;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.14);
}

.field-group textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}

.field-group textarea#prompt,
.field-group textarea#project_details {
  min-height: 160px;
}

/* ── Field hint ─────────────────────────────────────────────────────────── */
.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #7d8fa0;
  line-height: 1.5;
}

/* ── Select custom arrow ────────────────────────────────────────────────── */
.field-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234CAF50' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Submit button ──────────────────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #001428 0%, #002244 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 8px;
}

.btn-submit:hover {
  opacity: 0.87;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ── Flash messages ─────────────────────────────────────────────────────── */
.flashes {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.flash.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.flash.error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6c6;
}

/* ── Loading overlay ────────────────────────────────────────────────────── */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.loading-card {
  background: #fff;
  border-radius: 14px;
  padding: 40px 48px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-card p {
  color: #1a2b40;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.loading-card .loading-note {
  color: #6b7a8d;
  font-size: 13px;
  font-weight: 400;
}

.spinner {
  margin: 24px auto 0;
  width: 44px;
  height: 44px;
  border: 4px solid #e4eaf0;
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .bulletin-page-wrapper {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .bulletin-info-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .bulletin-form-header,
  .bulletin-form-body {
    padding: 24px 20px;
  }

  .bulletin-info-header,
  .bulletin-info-body {
    padding: 20px;
  }

  .bulletin-menu a {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}
