@import url('../_shared/mdnet-modules-theme.css');

:root {
  --mdnet-primary: #004d55;
  --mdnet-secondary: #009eae;
  --mdnet-accent: #0ec4d6;
  --mdnet-dark: #00353b;
  --mdnet-light: #ebf6f7;
  --mdnet-border: #cfe5e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 28px 14px;
  font-family: var(--font-body);
  color: #1f2937;
  background:
    radial-gradient(circle at 0% 0%, rgba(0,158,174,0.2) 0%, transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(14,196,214,0.16) 0%, transparent 32%),
    linear-gradient(160deg, #ebf6f7 0%, #f8fbff 40%, #eef6f8 100%);
}

.form-container {
  background: rgba(255, 255, 255, 0.95);
  max-width: 980px;
  margin: auto;
  padding: 28px 32px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(5px);
}

.brand-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--mdnet-primary);
  letter-spacing: 0.8px;
}

.back-home {
  text-decoration: none;
  color: var(--mdnet-primary);
  font-weight: 700;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 8px 14px;
  background: #eff6ff;
}

.back-home:hover {
  background: #dbeafe;
}

h2 {
  margin: 0;
  text-align: left;
  color: var(--mdnet-dark);
  font-size: 1.8rem;
}

.intro-text {
  margin: 8px 0 18px;
  color: #475569;
  line-height: 1.5;
}

.alert {
  background: #fffbeb;
  border-left: 5px solid #f59e0b;
  padding: 14px;
  margin-bottom: 22px;
  border-radius: 10px;
  line-height: 1.65;
}

fieldset {
  border: 1px solid #dbeafe;
  background: #ffffff;
  padding: 18px;
  margin-bottom: 22px;
  border-radius: 12px;
}

legend {
  font-weight: 800;
  color: var(--mdnet-primary);
  font-size: 0.95rem;
  padding: 0 8px;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  color: #334155;
}

label::after {
  content: attr(data-required);
  color: #dc2626;
  margin-left: 3px;
}

label:has(+ input[required])::after,
label:has(+ select[required])::after,
label:has(+ textarea[required])::after {
  content: " *";
  color: #dc2626;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px;
  margin-top: 4px;
  border: 1px solid var(--mdnet-border);
  border-radius: 8px;
  font-size: 14px;
  background: #f8fafc;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--mdnet-secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  background: #fff;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

button {
  width: 100%;
  background: linear-gradient(135deg, var(--mdnet-secondary) 0%, var(--mdnet-primary) 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 16px rgba(30,58,138,0.24);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(30,58,138,0.28);
}

button.loading {
  background: #94a3b8 !important;
  cursor: not-allowed;
  box-shadow: none;
}

#msg {
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
}

h3 {
  margin-top: 22px;
  margin-bottom: 12px;
  padding-top: 14px;
  border-top: 2px solid #bfdbfe;
  color: var(--mdnet-primary);
  font-size: 16px;
}

small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 5px;
  font-style: italic;
  line-height: 1.5;
}

#diasProtestoContainer {
  margin-top: 16px;
  padding: 14px;
  background: #f8fbff;
  border-radius: 10px;
  border-left: 4px solid var(--mdnet-secondary);
}

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .form-container {
    padding: 18px;
    border-radius: 12px;
  }

  .brand-top {
    flex-direction: column;
    align-items: flex-start;
  }

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