:root {
  --bg: #efeff4;
  --surface: #f8f8fc;
  --card: #ffffff;
  --line: #d8d8e8;
  --text: #1f2340;
  --muted: #64698a;
  --primary: #6f69ea;
  --primary-strong: #5750d2;
  --accent: #2f5fb6;
  --shadow: 0 14px 34px rgba(55, 52, 108, 0.13);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 3% 12%, rgba(111, 105, 234, 0.2), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(47, 95, 182, 0.15), transparent 28%),
    linear-gradient(180deg, #f4f5fb 0%, #ececf5 100%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo,
.lab-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.brand-logo {
  filter: drop-shadow(0 8px 14px rgba(111, 105, 234, 0.3));
}

.brand-copy h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.55rem;
}

.brand-copy p {
  margin: 0.08rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.container {
  width: min(1100px, 92vw);
  margin: 1.35rem auto 3rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
}

.lang-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  border-color: #b8b5ff;
  background: #ececff;
}

.tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 0.52rem 0.78rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-content {
  display: none;
  padding: 1.05rem;
}

.tab-content.active {
  display: block;
}

.identity-box {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.9rem;
}

.identity-box h3 {
  margin: 0 0 0.65rem;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 0.9rem;
}

.consent-text h2 {
  margin-top: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
}

.consent-text h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
}

.consent-text p,
.consent-text li {
  line-height: 1.52;
}

.consent-action {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.btn {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 0.58rem 0.9rem;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.create-header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.create-header p {
  margin: 0.28rem 0 0.85rem;
  color: var(--muted);
}

.observation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem 0.9rem;
}

label {
  display: block;
  font-weight: 700;
  color: #2b3154;
}

label.lang-pt:not(.manual-required):has(input[required])::after,
label.lang-pt:not(.manual-required):has(select[required])::after,
label.lang-pt:not(.manual-required):has(textarea[required])::after {
  content: " (obrigat\00F3rio)";
  color: #c02828;
  font-size: 0.88em;
  font-weight: 800;
}

label.lang-en:not(.manual-required):has(input[required])::after,
label.lang-en:not(.manual-required):has(select[required])::after,
label.lang-en:not(.manual-required):has(textarea[required])::after {
  content: " (required)";
  color: #c02828;
  font-size: 0.88em;
  font-weight: 800;
}

.required-tag {
  color: #c02828;
  font-size: 0.88em;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid #c9cce2;
  border-radius: 9px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.photo-field {
  display: block;
}

.photo-field + .photo-field {
  margin-top: -0.2rem;
}

.form-feedback {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: #3b478a;
}

.form-feedback.success {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  text-align: center;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 800;
  color: #233184;
  background: #ececff;
  border: 1px solid #bfc2ff;
  border-radius: 12px;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .brand-logo,
  .lab-logo {
    height: 46px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .observation-form {
    grid-template-columns: 1fr;
  }

  .identity-grid {
    grid-template-columns: 1fr;
  }
}

