:root {
  --bg: #f5efe5;
  --surface: rgba(255, 253, 249, 0.94);
  --surface-strong: #fffdf9;
  --text: #1e2430;
  --muted: #5f6472;
  --line: rgba(30, 36, 48, 0.1);
  --primary: #2b2823;
  --primary-dark: #1f1d19;
  --accent: #2b2823;
  --error-bg: #fee7df;
  --error-text: #8b2d18;
  --success-bg: #efe7dd;
  --success-text: #2b2823;
  --shadow: 0 18px 50px rgba(43, 37, 30, 0.12);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(43, 40, 35, 0.16), transparent 34%),
    radial-gradient(circle at right 15%, rgba(43, 40, 35, 0.1), transparent 30%),
    linear-gradient(180deg, #fbf7f0 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

main {
  padding-top: 108px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(251, 247, 240, 0.92), rgba(251, 247, 240, 0.76));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30, 36, 48, 0.08);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 155px;
  height: 40px;
  flex: 0 0 155px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav {
  justify-content: center;
}

.header-spacer {
  width: 100%;
}

.site-nav a,
.footer-nav a {
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--accent);
}

.cadastro-page {
  min-height: calc(100vh - 108px);
  display: flex;
  align-items: center;
  padding: 72px 0 56px;
}

.cadastro-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.cadastro-shell-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 780px;
}

.intro-panel,
.form-wrapper {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro-panel {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(43, 40, 35, 0.98), rgba(31, 29, 25, 0.98));
  color: #f6f1e8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.intro-panel .eyebrow,
.success-card .eyebrow {
  color: #d7cfc2;
}

.intro-panel h1,
.form-wrapper h1,
.form-wrapper h2 {
  margin: 14px 0 12px;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.intro-panel h1,
.form-wrapper h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.form-wrapper h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.intro-panel p,
.form-wrapper > p,
.alert,
label,
input,
select,
button,
.panel-list li,
.footer-bar p {
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.intro-panel p {
  margin: 0 0 24px;
  color: rgba(246, 241, 232, 0.84);
  line-height: 1.7;
}

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

.panel-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(246, 241, 232, 0.84);
  line-height: 1.7;
}

.panel-list li + li {
  margin-top: 12px;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7cfc2;
}

.form-wrapper {
  width: 100%;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 253, 249, 0.98), rgba(255, 248, 238, 0.92));
  backdrop-filter: blur(8px);
}

.form-wrapper > p {
  margin: 0 0 28px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

input,
select,
button {
  width: 100%;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

input,
select {
  padding: 15px 16px;
  border: 1px solid rgba(30, 36, 48, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(43, 40, 35, 0.55);
  box-shadow: 0 0 0 4px rgba(43, 40, 35, 0.14);
  background: #fff;
}

select:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.checkbox-field {
  margin-top: 8px;
}

.checkbox-field label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0;
  font-weight: 500;
  line-height: 1.65;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.recaptcha-field {
  padding-top: 8px;
}

.g-recaptcha {
  display: inline-block;
  max-width: 100%;
}

.alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  line-height: 1.6;
}

.alert.error {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: rgba(139, 45, 24, 0.14);
}

.alert.success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: rgba(43, 40, 35, 0.14);
}

.btn-submit,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-submit {
  border: 0;
  background: var(--primary);
  color: #fff7f2;
  cursor: pointer;
}

.btn-submit:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(43, 40, 35, 0.2);
}

.btn-ghost:hover {
  background: rgba(43, 40, 35, 0.08);
}

.header-cta {
  white-space: nowrap;
}

.success-card {
  text-align: center;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.site-footer {
  padding: 36px 0 44px;
  border-top: 1px solid rgba(30, 36, 48, 0.08);
  background: rgba(255, 252, 246, 0.55);
}

.footer-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px 24px;
}

.footer-bar p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.footer-highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 700;
  color: var(--accent);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-highlight-link:hover {
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.footer-copy {
  font-size: 0.92rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 8px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(43, 40, 35, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(43, 40, 35, 0.08);
  border-color: rgba(43, 40, 35, 0.28);
  color: var(--primary-dark);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  main {
    padding-top: 148px;
  }

  .header-bar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .cadastro-page {
    padding-top: 32px;
  }

  .cadastro-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main {
    padding-top: 190px;
  }

  .cadastro-page {
    padding: 24px 0 40px;
  }

  .intro-panel,
  .form-wrapper {
    padding: 28px 20px;
  }

  .form-wrapper h1,
  .intro-panel h1 {
    font-size: 2.5rem;
  }

  .form-wrapper h2 {
    font-size: 2.1rem;
  }

  .site-nav,
  .footer-nav,
  .success-actions {
    justify-content: center;
  }

  .footer-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .btn-submit,
  .btn-ghost {
    width: 100%;
  }

  .g-recaptcha {
    transform: scale(0.92);
    transform-origin: left top;
  }
}
