/* DigitalEDU Reporte Palestra Eventos - CSS do Formulário Público */

.digitaledu-palestras-form-container {
  --brand: #002b7a;
  --accent: #009600;
  --border: #e5e7eb;
  --ink: #0b1324;
  --success: #e7f6e9;
  --error: #fde8e8;
  --success-border: #c3e6cb;
  --error-border: #f5c6cb;
  padding: 40px 20px;
  background: #f5f7fa;
  min-height: 100vh;
}

.digitaledu-palestras-form-container .container {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  padding: 40px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.form-header h1 {
  color: var(--brand);
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-header .subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 15px;
}

.info-obrigatorio {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 10px;
}

.info-report-count {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 12px;
  margin-top: 15px;
  color: #0369a1;
  font-size: 14px;
}

.evento-info-box {
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  text-align: left;
}

.evento-info-item {
  flex: 1;
  min-width: 200px;
  padding: 8px 0;
  color: #333;
  font-size: 14px;
}

.evento-info-item strong {
  color: var(--brand);
  margin-right: 8px;
}

.obrigatorio {
  color: #dc2626;
  font-weight: 700;
}

.alert {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-warning h3 {
  margin-top: 0;
  color: #92400e;
}

.form-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  color: var(--brand);
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px 15px;
  margin-bottom: 20px;
}

.form-group {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1/-1;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
  font-family: inherit;
}

.form-group input[readonly] {
  background: #f7fafc;
  color: #475569;
  cursor: not-allowed;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 43, 122, 0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.error-message {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
  display: none;
}

.error-message.show {
  display: block;
}

.radio-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.radio-row label {
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.radio-row input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.termo-aceite {
  margin: 30px 0;
}

.aceite-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.aceite-wrap input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.aceite-text {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
  cursor: pointer;
}

.aceite-text a {
  color: var(--brand);
  text-decoration: underline;
}

.termo-compartilhamento {
  margin: 30px 0;
}

.termo-compartilhamento-label {
  display: block;
  margin-bottom: 15px;
  color: var(--brand);
  font-size: 16px;
}

.termo-compartilhamento-texto {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.termo-compartilhamento-texto p {
  margin: 0 0 12px 0;
}

.termo-compartilhamento-texto p:last-child {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--border);
}

.btn-submit {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-width: 180px;
}

.btn-submit:hover:not(:disabled) {
  background: #007a00;
  transform: translateY(-1px);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-cancel {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, border-color 0.2s;
}

.btn-cancel:hover {
  background: #f9fafb;
  border-color: var(--brand);
}

/* Modal de Sucesso */
.rp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.rp-modal-backdrop.show {
  display: flex;
}

.rp-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  width: min(560px, 92vw);
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
}

.rp-ok {
  background: var(--success);
  border: 1px solid var(--success-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.rp-ok h4 {
  margin: 10px 0;
  color: #155724;
  font-size: 20px;
}

.rp-ok p {
  margin: 5px 0;
  color: #155724;
}

.rp-code {
  font-weight: 700;
  border: 2px solid #1d9500;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  margin: 15px 0;
  font-size: 16px;
}

.rp-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rp-close {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  font-size: 16px;
}

.rp-close:hover {
  background: #007a00;
}

.rp-btn-secondary {
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  font-size: 16px;
}

.rp-btn-secondary:hover {
  background: #5a6268;
}

/* Responsivo */
@media (max-width: 768px) {
  .digitaledu-palestras-form-container .container {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-group {
    grid-column: span 1;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-submit,
  .btn-cancel {
    width: 100%;
  }
}
