@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --ink: #45372f;
  --muted: #83766d;
  --terra: #b97850;
  --terra-dark: #965b3b;
  --cream: #f6efe8;
  --line: #eadfd5;
  --white: #fffdfa;
  --green: #477a60;
  --red: #c84e48;
  --yellow: #d6a32c;
  --blue: #3985c9
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: #fbf8f4;
  color: var(--ink);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6
}

a {
  color: var(--terra-dark);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.topbar {
  height: 82px;
  padding: 0 max(calc((100% - 1160px)/2), 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border-bottom: 1px solid var(--line)
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--terra);
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 2px
}

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

.topbar nav {
  display: flex;
  align-items: center;
  gap: 25px
}

.topbar nav a {
  color: var(--ink);
  font-size: 13px
}

.topbar nav .nav-cta {
  background: var(--terra);
  color: white;
  padding: 10px 18px;
  border-radius: 7px
}

.nav-user {
  font-size: 12px;
  color: var(--muted)
}

.container {
  max-width: 1160px;
  margin: auto;
  padding: 36px 24px 70px
}

.hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 35px;
  padding: 35px 0 65px
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--terra);
  font-weight: 700
}

.hero h1,
.form-intro h1,
.dashboard-head h1,
.section-heading h1 {
  font: 600 clamp(38px, 5vw, 60px)/1.08 'Playfair Display', serif;
  margin: 16px 0;
  color: var(--ink)
}

h1 em {
  color: var(--terra);
  font-weight: 500
}


.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 20px 0;
}

.social-links a {
    color: inherit;
    font-size: 25px;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-links a:hover {
    color: #b77b5c;
    transform: translateY(-4px);
}


.hero-copy p,
.form-intro p {
  max-width: 530px;
  color: var(--muted);
  font-size: 16px
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 7px;
  padding: 12px 20px;
  font: 600 13px 'DM Sans';
  cursor: pointer;
  text-decoration: none !important
}

.primary {
  background: var(--terra);
  color: white
}

.primary:hover {
  background: var(--terra-dark)
}

.outline {
  border: 1px solid var(--terra);
  color: var(--terra-dark);
  background: transparent
}

.light {
  background: white;
  color: var(--terra-dark)
}

.full {
  width: 100%
}

.small {
  padding: 8px 13px;
  font-size: 12px
}

.hero-art {
  min-height: 350px;
  background: var(--cream);
  border-radius: 48% 48% 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden
}

.art-circle {
  width: 210px;
  height: 210px;
  border: 2px solid #d8b59e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--terra);
  font: 150px 'Playfair Display';
  background: #f9f2eb
}

.art-caption {
  font: italic 18px 'Playfair Display';
  text-align: center;
  color: var(--terra-dark);
  margin-top: 20px
}

.section {
  padding: 25px 0 65px
}

.section-heading {
  text-align: center;
  margin-bottom: 30px
}

.section-heading h2,
.cta-band h2 {
  font: 600 34px 'Playfair Display';
  margin: 8px 0
}

.cards {
  display: grid;
  gap: 18px
}

.three {
  grid-template-columns: repeat(3, 1fr)
}

.card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 25px #68452b08
}

.card h3 {
  font: 600 19px 'Playfair Display'
}

.card p,
.muted {
  color: var(--muted)
}

.icon {
  font-size: 30px;
  color: var(--terra)
}

.cta-band {
  background: var(--terra);
  border-radius: 12px;
  padding: 30px 38px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.cta-band .eyebrow {
  color: #f5dfd0
}

.cta-band h2 {
  margin-bottom: 0
}

.footer {
  background: var(--cream);
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 12px
}

.footer strong {
  font: 600 22px 'Playfair Display';
  color: var(--terra)
}

.form-shell {
  max-width: 900px;
  margin: 10px auto;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 35px;
  align-items: start
}

.form-shell.wide {
  max-width: 1000px;
  display: block
}

.form-intro {
  padding: 20px 0
}

.form-intro h1 {
  font-size: 42px
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.form h3 {
  font: 600 20px 'Playfair Display';
  margin: 12px 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600
}

.form input,
.form select,
.form textarea,
.admin-edit input,
.admin-edit select,
.admin-edit textarea,
.inline-form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #dfd4ca;
  border-radius: 6px;
  background: #fffdfa;
  color: var(--ink);
  font: 14px 'DM Sans';
  outline: none
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px #b978501c
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px
}

.field-grid.four {
  grid-template-columns: repeat(4, 1fr)
}

.upload-field {
  background: var(--cream);
  padding: 15px;
  border-radius: 8px
}

.upload-field small {
  color: var(--muted)
}

.upload-field img {
  display: block;
  max-width: 110px;
  max-height: 110px;
  border-radius: 50%;
  margin-top: 12px;
  object-fit: cover
}

.required {
  color: var(--red)
}

.check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  font-weight: 400 !important
}

.check input {
  width: auto;
  margin-top: 4px
}

.notice {
  background: var(--cream);
  border-left: 3px solid var(--terra);
  padding: 12px;
  margin-top: 25px;
  font-size: 12px;
  color: var(--muted)
}

.alert {
  padding: 12px 15px;
  border-radius: 7px;
  margin-bottom: 12px;
  font-size: 13px
}

.alert.error {
  background: #fae9e7;
  color: #9c3933
}

.alert.success {
  background: #e8f3ec;
  color: #356b4c
}

.alert.warning {
  background: #fff3d9;
  color: #85651d
}

.narrow {
  max-width: 480px;
  margin: 25px auto 50px
}

.center {
  text-align: center
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 28px
}

.dashboard-head h1 {
  font-size: 42px;
  margin: 8px 0
}

.dashboard-head p {
  color: var(--muted);
  margin: 0
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 24px
}

.stats.four {
  grid-template-columns: repeat(4, 1fr)
}

.stat {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column
}

.stat span {
  color: var(--muted);
  font-size: 12px
}

.stat strong {
  font: 600 32px 'Playfair Display';
  color: var(--terra)
}

.stat.highlight {
  border-color: #e5c18c
}

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px
}

.tabs a {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px
}

.tabs a.active {
  color: var(--terra-dark);
  border-bottom: 2px solid var(--terra);
  font-weight: 700
}

.request-list {
  display: grid;
  gap: 15px
}

.request-card {
  padding: 22px
}

.request-top {
  display: flex;
  justify-content: space-between;
  gap: 15px
}

.request-top h2 {
  font: 600 20px 'Playfair Display';
  margin: 7px 0 0
}

.request-top p {
  margin: 2px 0
}

.priority {
  font-size: 12px;
  font-weight: 700
}

.priority.baixa {
  color: var(--blue)
}

.priority.media {
  color: var(--yellow)
}

.priority.alta {
  color: var(--red)
}

.status {
  display: inline-block;
  background: #f2eee9;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px;
  color: #66594f
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: #faf6f1;
  padding: 15px;
  border-radius: 8px;
  margin: 17px 0
}

.details-grid div {
  display: flex;
  flex-direction: column
}

.details-grid small {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted)
}

.details-grid strong {
  font-size: 12px
}

.match-box {
  background: #f7f0e9;
  padding: 12px 15px;
  border-radius: 7px;
  font-size: 13px
}

.match-box p {
  margin: 3px 0
}

.admin-edit {
  display: grid;
  grid-template-columns: 1fr 1.2fr 2fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 15px
}

.admin-edit label {
  font-size: 11px;
  font-weight: 600
}

.admin-edit textarea {
  resize: vertical
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px
}

.table-wrap {
  overflow-x: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px
}

th,
td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap
}

th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px
}

.inline-form {
  display: flex;
  gap: 7px;
  align-items: center
}

.inline-form select {
  width: auto;
  padding: 7px
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px
}

.profile-summary h2 {
  font: 600 24px 'Playfair Display';
  margin: 0
}

.avatar {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--terra);
  font: 40px 'Playfair Display';
  overflow: hidden;
  flex-shrink: 0
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

@media(max-width:760px) {
  .topbar {
    padding: 0 16px;
    height: 72px
  }

  .topbar nav {
    gap: 10px
  }

  .topbar nav a {
    font-size: 11px
  }

  .nav-user {
    display: none
  }

  .container {
    padding: 25px 16px 45px
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 25px 0 45px
  }

  .hero-art {
    min-height: 270px
  }

  .three {
    grid-template-columns: 1fr
  }

  .cta-band {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column
  }

  .form-shell {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .form-intro {
    padding-bottom: 0
  }

  .field-grid {
    grid-template-columns: 1fr
  }

  .field-grid.four {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats.four {
    grid-template-columns: repeat(2, 1fr)
  }

  .dashboard-head {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column
  }

  .dashboard-head h1 {
    font-size: 34px
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .admin-edit {
    grid-template-columns: 1fr 1fr
  }

  .admin-edit .notes {
    grid-column: 1/-1
  }

  .request-top {
    flex-direction: column
  }

  .profile-summary {
    align-items: flex-start
  }

  .tabs {
    overflow: auto
  }

  .tabs a {
    white-space: nowrap
  }

  .art-circle {
    width: 160px;
    height: 160px;
    font-size: 110px
  }
}

.field-feedback {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400
}

.field-feedback.loading {
  color: var(--terra)
}

.field-feedback.success {
  color: var(--green)
}

.field-feedback.error {
  color: var(--red)
}

.professional-fields {
  display: flex;
  flex-direction: column;
  gap: 15px
}

.professional-fields[hidden] {
  display: none
}

.field-title {
  display: block;
  font-size: 12px;
  margin-bottom: 8px
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px
}

.choice {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  background: #faf6f1;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  font-weight: 500 !important
}

.choice input {
  width: auto !important;
  margin: 0
}

.field-feedback {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400
}

.field-feedback.loading {
  color: var(--terra)
}

.field-feedback.success {
  color: var(--green)
}

.field-feedback.error {
  color: var(--red)
}

@media(max-width:760px) {
  .choice-grid {
    grid-template-columns: 1fr
  }
}

.professional-admin-list {
  display: grid;
  gap: 15px
}

.professional-admin-card {
  padding: 20px
}

.professional-admin-head {
  display: flex;
  align-items: center;
  gap: 15px
}

.professional-admin-head img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream)
}

.professional-admin-main h2 {
  font: 600 21px 'Playfair Display';
  margin: 0
}

.professional-admin-main p {
  margin: 4px 0
}

.professional-admin-card>p {
  font-size: 13px
}

.professional-admin-card .inline-form label {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px
}

.professional-admin-card .inline-form select {
  max-width: 190px;
  padding: 8px;
  border: 1px solid #dfd4ca;
  border-radius: 6px;
  background: #fffdfa
}

/* ===== Etapa 2 — componentes novos ===== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--terra);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px
}

.nav-notif {
  position: relative
}

.priority {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600
}

.priority-alta {
  background: #fde8e6;
  color: var(--red)
}

.priority-media {
  background: #fef6e0;
  color: #a67c00
}

.priority-baixa {
  background: #e8f0ea;
  color: var(--green)
}

.status-aprovado,
.status-concluido,
.status-agendado {
  background: #e8f0ea;
  color: var(--green)
}

.status-recusado,
.status-cancelado {
  background: #fde8e6;
  color: var(--red)
}

.status-buscando,
.status-selecionado,
.status-andamento {
  background: #e8f2fa;
  color: var(--blue)
}

.status-aguardando,
.status-em_analise,
.status-confirmacao {
  background: #fef6e0;
  color: #a67c00
}

.vagas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px
}

.vaga-card {
  background: #faf6f1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px
}

.vaga-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px
}

.match-badge {
  background: var(--terra);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap
}

.match-reasons {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 10px
}

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

.notif-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line)
}

.notif-item:last-child {
  border-bottom: 0
}

.notif-item.unread {
  background: #faf6f1;
  margin: 0 -16px;
  padding: 14px 16px;
  border-radius: 8px
}

.notif-item strong {
  display: block;
  margin-bottom: 2px
}

.notif-item p {
  margin: 0 0 4px;
  font-size: 14px
}

.notif-actions {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex-shrink: 0
}

.stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px
}

.stars label {
  cursor: pointer
}

.stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.stars span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 600;
  color: var(--muted)
}

.stars input:checked+span,
.stars label:hover span {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra)
}

.footer-links {
  display: flex;
  gap: 16px;
  margin: 8px 0
}

.footer-links a {
  color: var(--muted);
  font-size: 13px
}

.prose h3 {
  margin-top: 24px;
  font-size: 17px
}

.prose ul {
  padding-left: 20px
}

.prose li {
  margin-bottom: 6px
}

.content-page .panel {
  padding: 28px
}

.inline,
.inline-form.inline {
  display: inline
}

form.inline {
  display: inline
}

.request-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center
}

.request-card {
  margin-bottom: 14px
}

@media(max-width:760px) {
  .vagas-grid {
    grid-template-columns: 1fr
  }

  .notif-item {
    flex-direction: column
  }

  .stars {
    flex-wrap: wrap
  }
}