:root {
  --wine: #730012;
  --wine-dark: #430008;
  --cream: #F3EFE6;
  --sage: #D8E0CC;
  --rose: #E8D6D6;
  --rose-card: #F1DAD4;
  --method-rose: #C98D96;
  --text: #2A1A1A;
  --white: #ffffff;
}

/* RESET BÁSICO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* AJUSTE DAS ÂNCORAS DO MENU */
section[id] {
  scroll-margin-top: 95px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 230, 0.96);
  border-bottom: 1px solid rgba(115, 0, 18, 0.12);
  backdrop-filter: blur(8px);
}

.header-content {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--wine);
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  background: black;
}

.brand strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-style: italic;
}

.brand span {
  display: block;
  font-size: 12px;
}

/* MENU */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--wine);
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover {
  color: var(--wine-dark);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--wine);
  border: 1px solid rgba(115, 0, 18, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

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

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

.btn-light {
  background: var(--cream);
  color: var(--wine);
}

.btn-light:hover {
  background: var(--white);
}

.btn-outline {
  border: 1px solid rgba(243, 239, 230, 0.7);
  color: var(--cream);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn.full {
  width: 100%;
}

/* BOTÕES MENORES SOMENTE NO MENU SUPERIOR */

.nav .btn.btn-menu-small {
  padding: 6px 10px !important;
  font-size: 11px !important;
  min-height: 30px !important;
  height: 30px !important;
  line-height: 1 !important;
  border-radius: 999px !important;
}

.nav .btn.btn-menu-small:hover {
  transform: none;
}

.nav .btn.btn-menu-small:hover {
  transform: none;
}

/* HERO COM CARROSSEL */
.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--wine);
  color: var(--cream);
}

.carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(67, 0, 8, 0.52),
    rgba(115, 0, 18, 0.36),
    rgba(115, 0, 18, 0.14)
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  color: var(--wine);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero .eyebrow {
  color: var(--sage);
}

.hero h1,
.hero-content h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--cream);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.38);
  max-width: 760px;
}

.hero p,
.hero-content p {
  font-size: 18px;
  max-width: 620px;
  color: rgba(243, 239, 230, 0.94);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* CARD DA FOTO DA DRA NO BANNER */
.hero-card {
  position: relative;
  z-index: 3;
  background: rgba(243, 239, 230, 0.92);
  color: var(--wine);
  border-radius: 24px;
  padding: 16px;
  text-align: center;
  max-width: 310px;
  margin-left: auto;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.logo-showcase {
  border-radius: 18px;
  background: black;
  padding: 16px;
  display: grid;
  place-items: center;
}

.doctor-showcase {
  background: var(--rose);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 4.5;
}

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

.logo-showcase img {
  max-height: 210px;
  object-fit: contain;
}

.doctor-showcase img {
  max-height: none;
  object-fit: cover;
}

.hero-card h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  margin-top: 14px;
  font-size: 26px;
}

.hero-card p {
  color: rgba(115, 0, 18, 0.85);
  font-size: 14px;
  text-shadow: none;
}

/* SEÇÕES */
.section {
  padding: 82px 0;
}

.narrow {
  max-width: 760px;
  text-align: center;
}

.section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 5vw, 50px);
  color: var(--text);
  margin-bottom: 18px;
  text-align: center;
}

.section p {
  font-size: 17px;
}

.section-subtitle {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

/* SEÇÃO ACOLHIMENTO MELHORADA */
.acolhimento-section {
  padding: 65px 0 60px;
  background: var(--cream);
}

.acolhimento-content {
  max-width: 1080px;
}

.acolhimento-content h2 {
  margin-bottom: 22px;
}

.acolhimento-content p {
  max-width: 980px;
  margin: 0 auto 14px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.acolhimento-content p:last-of-type {
  margin-bottom: 5px;
}

.acolhimento-btn {
  margin-top: 5px;
}

/* METODOLOGIA NOVA */
.method-section {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: var(--cream);
}

.method-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(243, 239, 230, 0.16),
      rgba(243, 239, 230, 0.04)
    ),
    url("../img/metodologia.jpg");
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

.method-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
}

.method-panel {
  width: min(470px, 100%);
  background: rgba(201, 141, 150, 0.95);
  color: var(--white);
  padding: 48px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.method-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.method-panel h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
  margin-bottom: 22px;
  color: var(--white);
}

.method-intro {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 26px;
  color: var(--white);
}

.method-list {
  display: grid;
  gap: 24px;
}

.method-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.method-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.method-item h3 {
  color: var(--white);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.method-item p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
}

/* SEÇÃO SERVIÇOS */
.section-help {
  background: var(--cream);
}

/* 3 CARDS POR LINHA */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.help-card {
  min-height: 330px;
  background: var(--rose-card);
  border: 2px solid rgba(115, 0, 18, 0.28);
  border-radius: 26px;
  padding: 30px 26px;
  box-shadow: 0 22px 45px rgba(115, 0, 18, 0.06);
  transition: 0.25s ease;
}

.help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 55px rgba(115, 0, 18, 0.12);
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  color: var(--wine);
}

.service-icon svg {
  width: 54px;
  height: 54px;
  stroke: var(--wine);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 18px;
}

.help-card p {
  color: #1d1111;
  font-size: 16px;
  line-height: 1.55;
}

/* OUTRAS SEÇÕES */
.section-sage {
  background: var(--sage);
}

.section-rose {
  background: var(--rose);
}

/* CARDS PADRÃO */
.cards {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

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

.card {
  background: var(--white);
  border: 1px solid rgba(115, 0, 18, 0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card h3 {
  color: var(--wine);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  margin-bottom: 8px;
}

.number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--wine);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 18px;
}

/* SOBRE */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.about-image {
  background: var(--cream);
  padding: 22px;
  border-radius: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.doctor-photo {
  width: 100%;
  min-height: 340px;
  max-height: 520px;
  object-fit: cover;
  border-radius: 24px;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 36px auto 0;
  display: grid;
  gap: 18px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(115, 0, 18, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  background: var(--white);
  color: var(--wine);
  border: none;
  padding: 22px 26px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-question span {
  font-size: 26px;
  font-weight: 700;
  color: var(--wine);
  transition: 0.2s;
}

.faq-answer {
  display: none;
  padding: 0 26px 24px;
  color: var(--text);
}

.faq-answer p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

/* FOOTER */
.footer {
  background: var(--wine-dark);
  color: var(--cream);
  padding: 58px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
  background: black;
  margin-bottom: 14px;
}

.footer h3 {
  margin-bottom: 12px;
  font-family: Georgia, 'Times New Roman', serif;
}

/* BARRA INFERIOR */
.bottom-bar {
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
}

/* WHATSAPP COM IMAGEM */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  background: transparent;
  padding: 0;
  border-radius: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.whatsapp-float img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* PÁGINA DE AGENDAMENTO */
.appointment-page {
  background: var(--wine);
  min-height: calc(100vh - 82px);
}

.appointment-hero {
  padding: 70px 0;
  color: var(--cream);
}

.appointment-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.appointment-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.appointment-hero p {
  font-size: 18px;
  max-width: 620px;
  color: rgba(243, 239, 230, 0.86);
}

.alert {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(243, 239, 230, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.appointment-form {
  background: var(--cream);
  color: var(--text);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.appointment-form h2 {
  color: var(--wine);
  margin-bottom: 20px;
  font-family: Georgia, 'Times New Roman', serif;
}

.appointment-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 700;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  border: 1px solid rgba(115, 0, 18, 0.22);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  background: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-message {
  margin-top: 14px;
  font-weight: 700;
}

.form-message.ok {
  color: #146c2e;
}

.form-message.erro {
  color: #b00020;
}

/* RESPONSIVO */
@media (max-width: 1000px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {

  .header-content {
    min-height: 76px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand span {
    font-size: 11px;
  }

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

  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 22px;
    border-bottom: 1px solid rgba(115, 0, 18, 0.14);
  }

  .nav.open {
    display: flex;
  }

  .nav-simple {
    position: static;
    display: flex;
    padding: 0;
    border: 0;
  }

  .hero-carousel {
    min-height: auto;
    padding: 70px 0;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(67, 0, 8, 0.56),
      rgba(115, 0, 18, 0.36)
    );
  }

  .hero-grid,
  .about-grid,
  .appointment-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .method-section {
    min-height: auto;
  }

  .method-bg {
    opacity: 0.35;
  }

  .method-content {
    width: 100%;
  }

  .method-panel {
    width: 100%;
    padding: 48px 24px;
    background: rgba(201, 141, 150, 0.94);
  }

  .method-panel h2 {
    font-size: 40px;
  }

  .method-item {
    grid-template-columns: 38px 1fr;
  }

  .method-icon {
    width: 38px;
    height: 38px;
  }

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

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

  .help-card {
    min-height: auto;
  }

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

  .hero-card {
    max-width: 260px;
    margin: 25px auto 0;
    padding: 14px;
  }

  .logo-showcase {
    padding: 12px;
  }

  .doctor-showcase {
    padding: 0;
  }

  .logo-showcase img {
    max-height: 170px;
  }

  .doctor-showcase img {
    max-height: none;
  }

  .hero-card h2 {
    font-size: 23px;
  }

  .hero-card p {
    font-size: 13px;
  }

  .doctor-photo {
    min-height: 300px;
  }

  .whatsapp-float,
  .whatsapp-float img {
    width: 58px;
    height: 58px;
  }

  .footer {
    padding-bottom: 90px;
  }
}
/* =========================================================
   PAINEL ADMINISTRATIVO - DRA. VERÔNICA ROCHA
========================================================= */

.psi-admin-login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #F3EFE6, #E8D6D6);
}

.psi-admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.psi-admin-login-box {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  padding: 34px 30px;
  box-shadow: 0 22px 60px rgba(67, 0, 8, 0.15);
  border: 1px solid rgba(115, 0, 18, 0.12);
  text-align: center;
}

.psi-admin-login-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #000;
}

.psi-admin-login-box h1 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #730012;
  font-size: 30px;
  margin-bottom: 6px;
}

.psi-admin-login-box p {
  font-size: 14px;
  color: #5c4545;
  margin-bottom: 28px;
}

.psi-admin-login-form {
  display: grid;
  gap: 18px;
}

.psi-admin-login-form label {
  display: grid;
  gap: 8px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: #2A1A1A;
}

.psi-admin-login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(115, 0, 18, 0.22);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  background: #fff;
  outline: none;
}

.psi-admin-login-form input:focus {
  border-color: #730012;
  box-shadow: 0 0 0 3px rgba(115, 0, 18, 0.08);
}

.psi-admin-login-form button {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: #730012;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 8px;
}

.psi-admin-login-form button:hover {
  background: #430008;
  transform: translateY(-1px);
}

.psi-admin-msg-erro {
  background: #ffe5e8;
  color: #9b0017;
  border: 1px solid rgba(155, 0, 23, 0.25);
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 14px;
}

.psi-admin-page {
  background: #F3EFE6;
  color: #2A1A1A;
  min-height: 100vh;
}

.psi-admin-header {
  background: rgba(243, 239, 230, 0.96);
  border-bottom: 1px solid rgba(115, 0, 18, 0.14);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

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

.psi-admin-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.psi-admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #730012;
  text-decoration: none;
}

.psi-admin-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: #000;
}

.psi-admin-brand strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1.1;
}

.psi-admin-brand span {
  display: block;
  font-size: 12px;
  color: #730012;
}

.psi-admin-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.psi-admin-user {
  font-weight: 800;
  color: #730012;
  font-size: 13px;
}

.psi-admin-btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.psi-admin-btn-site {
  background: #fff;
  color: #730012;
  border: 1px solid rgba(115, 0, 18, 0.18);
}

.psi-admin-btn-sair {
  background: #730012;
  color: #fff;
}

.psi-admin-main {
  padding: 34px 0 60px;
}

.psi-admin-title {
  margin-bottom: 28px;
}

.psi-admin-title p {
  color: #730012;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 8px;
}

.psi-admin-title h1 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #2A1A1A;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.psi-admin-msg-sucesso {
  background: #e8f7ee;
  color: #14532d;
  border: 1px solid rgba(20, 83, 45, 0.18);
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.psi-admin-toolbar {
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(115, 0, 18, 0.10);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: 0 12px 30px rgba(67, 0, 8, 0.06);
}

.psi-admin-search-form {
  display: flex;
  gap: 10px;
}

.psi-admin-search-form input {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(115, 0, 18, 0.18);
  padding: 0 14px;
  outline: none;
  font-size: 14px;
}

.psi-admin-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  white-space: nowrap;
}

.psi-admin-btn-primary {
  background: #730012;
  color: white;
}

.psi-admin-btn-light {
  background: #fff;
  color: #730012;
  border: 1px solid rgba(115, 0, 18, 0.18);
}

.psi-admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.psi-admin-summary-card {
  background: #fff;
  border: 1px solid rgba(115, 0, 18, 0.10);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(67, 0, 8, 0.06);
}

.psi-admin-summary-card small {
  display: block;
  color: #6b4b4b;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.psi-admin-summary-card strong {
  display: block;
  font-size: 30px;
  color: #730012;
  font-family: Georgia, 'Times New Roman', serif;
}

.psi-admin-table-card {
  background: #fff;
  border: 1px solid rgba(115, 0, 18, 0.10);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(67, 0, 8, 0.08);
  overflow: hidden;
}

.psi-admin-table-header {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(115, 0, 18, 0.10);
}

.psi-admin-table-header h2 {
  color: #730012;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
}

.psi-admin-table-wrap {
  overflow-x: auto;
}

.psi-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}

.psi-admin-table th {
  background: #730012;
  color: #fff;
  padding: 14px 12px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.psi-admin-table td {
  border-bottom: 1px solid #eee;
  padding: 14px 12px;
  vertical-align: top;
  font-size: 14px;
}

.psi-admin-table tr:nth-child(even) td {
  background: #fbf8f2;
}

.psi-admin-paciente strong {
  display: block;
  color: #2A1A1A;
  margin-bottom: 4px;
}

.psi-admin-paciente span,
.psi-admin-small {
  display: block;
  color: #624b4b;
  font-size: 12px;
  line-height: 1.4;
}

.psi-admin-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.psi-tag-pendente {
  background: #fff1d6;
  color: #9a4b00;
}

.psi-tag-confirmado {
  background: #dcfce7;
  color: #166534;
}

.psi-tag-cancelado {
  background: #ffe4e6;
  color: #9f1239;
}

.psi-tag-neutro {
  background: #e5e7eb;
  color: #374151;
}

.psi-admin-observacoes {
  max-width: 260px;
  color: #4a3434;
  line-height: 1.5;
}

.psi-admin-acoes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.psi-admin-status-form {
  margin: 0;
}

.psi-admin-btn-acao {
  border: none;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.psi-admin-btn-confirmar {
  background: #dcfce7;
  color: #166534;
}

.psi-admin-btn-pendente {
  background: #fff1d6;
  color: #9a4b00;
}

.psi-admin-btn-cancelar {
  background: #ffe4e6;
  color: #9f1239;
}

.psi-admin-empty {
  padding: 30px;
  background: #fff;
  border-radius: 18px;
  text-align: center;
  color: #730012;
  font-weight: 800;
}

@media (max-width: 900px) {
  .psi-admin-header-content {
    flex-direction: column;
    align-items: stretch;
  }

  .psi-admin-brand {
    justify-content: center;
    text-align: center;
  }

  .psi-admin-header-actions {
    justify-content: center;
  }

  .psi-admin-search-form {
    flex-direction: column;
  }

  .psi-admin-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .psi-admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .psi-admin-brand strong {
    font-size: 22px;
  }
}

/* AJUSTES DO PAINEL - AÇÕES COM SELECT E MODAL */

.psi-admin-table {
  min-width: 1250px;
}

.psi-admin-select-acao {
  min-height: 36px;
  border: 1px solid rgba(115, 0, 18, 0.22);
  border-radius: 999px;
  padding: 0 12px;
  color: #730012;
  font-weight: 800;
  background: #fff;
  outline: none;
}

.psi-admin-btn-aplicar {
  min-height: 36px;
  border: none;
  border-radius: 999px;
  padding: 0 12px;
  background: #730012;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  margin-left: 6px;
}

.psi-admin-acao-form {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.psi-modal-reagendar {
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 26, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.psi-modal-reagendar.aberto {
  display: flex;
}

.psi-modal-box {
  width: min(440px, 100%);
  background: #F3EFE6;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(115, 0, 18, 0.18);
}

.psi-modal-box h2 {
  color: #730012;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  margin-bottom: 8px;
}

.psi-modal-box p {
  color: #4a3434;
  font-size: 15px;
  margin-bottom: 20px;
}

.psi-modal-box label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 800;
  color: #2A1A1A;
}

.psi-modal-box input,
.psi-modal-box select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(115, 0, 18, 0.22);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.psi-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.psi-modal-btn-cancelar,
.psi-modal-btn-salvar {
  min-height: 42px;
  border-radius: 999px;
  border: none;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}

.psi-modal-btn-cancelar {
  background: #fff;
  color: #730012;
  border: 1px solid rgba(115, 0, 18, 0.18);
}

.psi-modal-btn-salvar {
  background: #730012;
  color: #fff;
}
/* AJUSTE PARA REMOVER BARRA HORIZONTAL DO PAINEL */

.psi-admin-table {
  min-width: 1000px;
}

.psi-admin-table th,
.psi-admin-table td {
  padding: 12px 10px;
}

.psi-admin-table-wrap {
  overflow-x: auto;
}

@media (min-width: 1200px) {
  .psi-admin-table {
    min-width: 100%;
  }
}

/* CALENDÁRIO PERSONALIZADO DE AGENDAMENTO */

.psi-calendar-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.psi-calendar-wrapper input[type="text"] {
  width: 100%;
}

.psi-calendar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: #fff;
  border: 1px solid rgba(115, 0, 18, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(67, 0, 8, 0.18);
  padding: 16px;
  z-index: 999999;
  display: none;
}

.psi-calendar.aberto {
  display: block;
}

.psi-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.psi-calendar-header button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #730012;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.psi-calendar-title {
  font-weight: 900;
  color: #730012;
  text-transform: capitalize;
}

.psi-calendar-week,
.psi-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.psi-calendar-week span {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: #730012;
}

.psi-calendar-day {
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f8f5ef;
  color: #2A1A1A;
  font-weight: 800;
  cursor: pointer;
}

.psi-calendar-day:hover {
  background: #E8D6D6;
}

.psi-calendar-day.vazio {
  background: transparent;
  cursor: default;
}

.psi-calendar-day.indisponivel {
  background: #ffe4e6;
  color: #b00020;
  cursor: not-allowed;
  text-decoration: line-through;
  border: 1px solid rgba(176, 0, 32, 0.25);
}

.psi-calendar-day.selecionado {
  background: #730012;
  color: #fff;
}

.psi-calendar-day.passado {
  opacity: 0.35;
  cursor: not-allowed;
}

/* =========================================================
   CONFIGURAÇÃO DA AGENDA - PAINEL ADMINISTRATIVO
========================================================= */

.psi-admin-agenda-card {
  background: #ffffff;
  border: 1px solid rgba(115, 0, 18, 0.10);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(67, 0, 8, 0.08);
  overflow: hidden;
  margin-bottom: 28px;
}

.psi-admin-agenda-content {
  padding: 24px;
}

.psi-admin-month-form {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: #fbf8f2;
  border: 1px solid rgba(115, 0, 18, 0.10);
  border-radius: 18px;
}

.psi-admin-month-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #2A1A1A;
  flex: 1;
}

.psi-admin-month-form input {
  min-height: 44px;
  border: 1px solid rgba(115, 0, 18, 0.22);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  background: #ffffff;
  outline: none;
}

.psi-admin-config-form {
  display: grid;
  gap: 20px;
  margin-bottom: 26px;
}

.psi-admin-config-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.psi-admin-config-grid label,
.psi-admin-block-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: #2A1A1A;
}

.psi-admin-config-grid input,
.psi-admin-config-grid select,
.psi-admin-block-form input,
.psi-admin-block-form select {
  min-height: 44px;
  border: 1px solid rgba(115, 0, 18, 0.22);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 15px;
  background: #ffffff;
  outline: none;
}

.psi-admin-config-grid input:focus,
.psi-admin-config-grid select:focus,
.psi-admin-block-form input:focus,
.psi-admin-block-form select:focus,
.psi-admin-month-form input:focus {
  border-color: #730012;
  box-shadow: 0 0 0 3px rgba(115, 0, 18, 0.08);
}

.psi-admin-days-box {
  background: #fbf8f2;
  border: 1px solid rgba(115, 0, 18, 0.10);
  border-radius: 18px;
  padding: 18px;
}

.psi-admin-days-box > strong {
  display: block;
  color: #730012;
  font-size: 16px;
  margin-bottom: 14px;
}

.psi-admin-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.psi-admin-days-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  background: #ffffff;
  border: 1px solid rgba(115, 0, 18, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #730012;
  cursor: pointer;
  padding: 0 10px;
  transition: 0.2s;
}

.psi-admin-days-grid label:hover {
  background: #f1dad4;
}

.psi-admin-days-grid input {
  accent-color: #730012;
}

.psi-admin-divider {
  height: 1px;
  background: rgba(115, 0, 18, 0.12);
  margin: 28px 0;
}

.psi-admin-agenda-content h3 {
  color: #730012;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  margin-bottom: 16px;
}

.psi-admin-block-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  background: #fbf8f2;
  border: 1px solid rgba(115, 0, 18, 0.10);
  border-radius: 18px;
}

.psi-admin-block-list {
  margin-top: 20px;
}

.psi-admin-table-small {
  min-width: 850px;
}

.psi-admin-table-small th,
.psi-admin-table-small td {
  padding: 12px 10px;
  font-size: 13px;
}

.psi-admin-table-small form {
  margin: 0;
}

@media (max-width: 1000px) {
  .psi-admin-config-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .psi-admin-days-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .psi-admin-block-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .psi-admin-block-form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .psi-admin-month-form {
    flex-direction: column;
    align-items: stretch;
  }

  .psi-admin-config-grid {
    grid-template-columns: 1fr;
  }

  .psi-admin-days-grid {
    grid-template-columns: 1fr 1fr;
  }

  .psi-admin-block-form {
    grid-template-columns: 1fr;
  }
}