/* Formulário, calendário e exportação do plano de parto. */
.pd-plano-session-three {
  /* EDITE AQUI AS CORES PRINCIPAIS */
  --pd-plano-cream: #fbfaf4;
  --pd-plano-text: #1b3d37;
  --pd-plano-green: #005540;
  --pd-plano-green-deep: #003f31;
  --pd-plano-soft-green: #edf2ec;
  --pd-plano-soft-cream: #f8f3eb;
  --pd-plano-border: #e6e7e3;
  --pd-plano-radius: 14px;
  --pd-plano-shadow: 0 12px 34px rgba(27, 61, 55, 0.045);
  --pd-plano-container: 1320px;
}

.pd-plano-session-three {
  margin: 0;
  background: var(--pd-plano-cream);
}

.pd-plano-session-three h1,
.pd-plano-session-three h2,
.pd-plano-session-three h3 {
  font-family: var(--pd-font-serif);
}

.pd-plano-session-three,
.pd-plano-session-three *,
.pd-plano-session-three *::before,
.pd-plano-session-three *::after {
  box-sizing: border-box;
}

.pd-plano-session-three {
  color: var(--pd-plano-text);
  font-family: var(--pd-font-sans);
}

.pd-plano-session-three img {
  display: block;
  max-width: 100%;
}

.pd-plano-session-three button,
.pd-plano-session-three input,
.pd-plano-session-three textarea {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-transform: none;
}

.pd-plano-support {
  width: 100%;
  padding: 44px 0 76px;
  background:
    linear-gradient(180deg,
      #fbfaf7 0%,
      #f8f6f1 100%);
}

.pd-plano-session-container {
  width: min(var(--pd-plano-container), calc(100% - 48px));
  margin: 0 auto;
}

.pd-plano-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   TÍTULOS
========================================================= */

.pd-plano-section-title {
  display: flex;
  margin: 0 0 26px;
  align-items: baseline;
  gap: 18px;
  color: var(--pd-plano-green);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.pd-plano-section-title span {
  flex: 0 0 auto;
}

.pd-plano-section-description {
  margin: -17px 0 0;
  color: #64716d;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   CARD DOS DADOS
========================================================= */

.pd-plano-data-card {
  padding: 30px 32px 28px;
  border: 1px solid var(--pd-plano-border);
  border-radius: var(--pd-plano-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--pd-plano-shadow);
}

.pd-plano-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 28px;
}

.pd-plano-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
}

.pd-plano-field label,
.pd-plano-field-label {
  color: #243f3a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.pd-plano-field>input,
.pd-plano-signature-control,
.pd-plano-date-control {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dfe3e0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(27, 61, 55, 0.02);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.pd-plano-field>input {
  padding: 0 16px;
  outline: none;
  color: var(--pd-plano-text);
  font-size: 14px;
}

.pd-plano-field input::placeholder,
.pd-plano-field textarea::placeholder {
  color: #9ca5a2;
  opacity: 1;
}

.pd-plano-field>input:focus {
  border-color: rgba(0, 85, 64, 0.48);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 85, 64, 0.07);
}

/* =========================================================
   CAMPOS DE DATA
========================================================= */

.pd-plano-date-control {
  display: grid;
  grid-template-columns:
    minmax(42px, 1fr) 10px minmax(42px, 1fr) 10px minmax(64px, 1.3fr) 48px;
  overflow: hidden;
  align-items: center;
}

.pd-plano-date-control:focus-within {
  border-color: rgba(0, 85, 64, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 85, 64, 0.07);
}

.pd-plano-date-control>input {
  width: 100%;
  height: 48px;
  padding: 0 6px;
  border: 0;
  outline: none;
  color: var(--pd-plano-text);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}

.pd-plano-date-control>span {
  color: #687571;
  font-size: 13px;
  text-align: center;
}

.pd-plano-calendar-button {
  display: flex;
  width: 48px;
  height: 50px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid #e2e5e2;
  border-radius: 0;
  color: var(--pd-plano-green);
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

.pd-plano-calendar-button:hover,
.pd-plano-calendar-button:focus,
.pd-plano-calendar-button:active {
  color: var(--pd-plano-green);
  background: var(--pd-plano-soft-green);
  outline: none;
}

.pd-plano-calendar-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* =========================================================
   SOBRE NÓS
========================================================= */

.pd-plano-about-card {
	position: relative;
	display: grid;
	grid-template-columns: 60% 40%;
	min-height: 210px;
	margin-top: 28px;
	padding: 40px 56px;
	align-items: center;
	gap: 20px;
	overflow: hidden;
	border-radius: 12px;
	background:
		linear-gradient(
			100deg,
			rgba(249, 244, 236, 0.96),
			rgba(253, 250, 245, 0.9)
		);
}

.pd-plano-about-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
}

.pd-plano-about-content h3 {
	margin: 0 0 12px;
	color: var(--pd-plano-green);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
}

.pd-plano-about-content p {
	max-width: 680px;
	margin: 0;
	color: #344c47;
	font-size: 13px;
	line-height: 1.7;
}

.pd-plano-about-content p + p {
	margin-top: 14px;
}

.pd-plano-about-illustration {
	align-self: center;
	justify-self: center;
	width: 52%;
	max-width: 230px;
	height: auto;
	object-fit: contain;
	object-position: center;
}

/* =========================================================
   PREFERÊNCIAS
========================================================= */

.pd-plano-preferences-section {
  margin-top: 42px;
}

.pd-plano-preferences-header {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.pd-plano-quick-area {
  position: relative;
  flex: 0 0 auto;
}

.pd-plano-quick-button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 17px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(0, 85, 64, 0.4);
  border-radius: 8px;
  color: var(--pd-plano-green);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.pd-plano-quick-button:hover,
.pd-plano-quick-button:focus,
.pd-plano-quick-button:active,
.pd-plano-quick-button[aria-expanded="true"] {
  border-color: var(--pd-plano-green);
  color: var(--pd-plano-green);
  background: var(--pd-plano-soft-green);
  outline: none;
}

.pd-plano-quick-button img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.pd-plano-quick-message {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, calc(100vw - 40px));
  padding: 17px 18px;
  border: 1px solid var(--pd-plano-border);
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(27, 61, 55, 0.14);
}

.pd-plano-quick-message::before {
  position: absolute;
  top: -6px;
  right: 28px;
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--pd-plano-border);
  border-left: 1px solid var(--pd-plano-border);
  background: #ffffff;
  content: "";
  transform: rotate(45deg);
}

.pd-plano-quick-message p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #455b56;
  font-size: 13px;
  line-height: 1.6;
}

.pd-plano-preferences-list {
  display: grid;
  gap: 8px;
}

.pd-plano-preference-card {
  overflow: hidden;
  border: 1px solid var(--pd-plano-border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 20px rgba(27, 61, 55, 0.025);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.pd-plano-preference-card.is-open {
  border-color: rgba(0, 85, 64, 0.3);
  box-shadow: 0 12px 28px rgba(27, 61, 55, 0.06);
}

.pd-plano-preference-trigger {
  display: grid;
  width: 100%;
  min-height: 76px;
  padding: 14px 24px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  border: 0;
  border-radius: 0;
  color: var(--pd-plano-text);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
}

.pd-plano-preference-trigger:hover,
.pd-plano-preference-trigger:focus,
.pd-plano-preference-trigger:active {
  color: var(--pd-plano-text);
  background: rgba(237, 242, 236, 0.48);
  outline: none;
}

.pd-plano-preference-icon {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.pd-plano-preference-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pd-plano-preference-copy {
  display: block;
  min-width: 0;
}

.pd-plano-preference-title,
.pd-plano-preference-description,
.pd-plano-preference-preview {
  display: block;
}

.pd-plano-preference-title {
  color: var(--pd-plano-green);
  font-family: var(--pd-font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.pd-plano-preference-description {
  margin-top: 4px;
  color: #536662;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.pd-plano-preference-preview {
  max-width: 760px;
  margin-top: 8px;
  overflow: hidden;
  color: #70807c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-plano-preference-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #7c8784;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.pd-plano-preference-action img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.pd-plano-preference-card.is-open .pd-plano-preference-action {
  visibility: hidden;
  opacity: 0;
}

.pd-plano-preference-editor {
  max-height: 0;
  padding: 0 24px;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition:
    max-height 300ms ease,
    padding 300ms ease,
    opacity 220ms ease,
    visibility 300ms ease;
}

.pd-plano-preference-card.is-open .pd-plano-preference-editor {
  max-height: 310px;
  padding: 0 24px 20px 89px;
  visibility: visible;
  opacity: 1;
}

.pd-plano-preference-editor label {
  display: block;
  margin-bottom: 8px;
  color: #3b514c;
  font-size: 12px;
  font-weight: 600;
}

.pd-plano-preference-editor textarea {
  width: 100%;
  min-height: 115px;
  padding: 13px 15px;
  resize: vertical;
  border: 1px solid #dce2de;
  border-radius: 8px;
  outline: none;
  color: var(--pd-plano-text);
  background: #ffffff;
  font-size: 13px;
  line-height: 1.6;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.pd-plano-preference-editor textarea:focus {
  border-color: rgba(0, 85, 64, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 85, 64, 0.07);
}

.pd-plano-editor-done {
  display: inline-flex;
  min-height: 38px;
  margin-top: 10px;
  padding: 8px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pd-plano-green);
  border-radius: 7px;
  color: #ffffff;
  background: var(--pd-plano-green);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.pd-plano-editor-done:hover,
.pd-plano-editor-done:focus,
.pd-plano-editor-done:active {
  border-color: var(--pd-plano-green-deep);
  color: #ffffff;
  background: var(--pd-plano-green-deep);
  outline: none;
}

/* =========================================================
   ASSINATURAS
========================================================= */

.pd-plano-signatures-section {
  margin-top: 38px;
}

.pd-plano-signatures-grid {
  display: grid;
  grid-template-columns:
    minmax(260px, 0.9fr) minmax(280px, 1.05fr) minmax(280px, 1.05fr);
  gap: 28px;
}

.pd-plano-signature-control {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  overflow: hidden;
  align-items: center;
}

.pd-plano-signature-control:focus-within {
  border-color: rgba(0, 85, 64, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 85, 64, 0.07);
}

.pd-plano-signature-control img {
  width: 22px;
  height: 22px;
  margin: 0 auto;
  object-fit: contain;
}

.pd-plano-signature-control input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 0;
  outline: none;
  color: var(--pd-plano-text);
  background: transparent;
  font-size: 14px;
}

/* =========================================================
   DOWNLOAD
========================================================= */

.pd-plano-download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 118px;
  margin-top: 38px;
  padding: 24px 32px;
  align-items: center;
  gap: 30px;
  border-radius: 12px;
  background:
    linear-gradient(100deg,
      rgba(246, 244, 238, 0.98),
      rgba(250, 249, 245, 0.94));
}

.pd-plano-download-card p {
  max-width: 570px;
  margin: 0;
  color: var(--pd-plano-green);
  font-family: var(--pd-font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.pd-plano-pdf-button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 24px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid var(--pd-plano-green);
  border-radius: 8px;
  color: #ffffff;
  background: var(--pd-plano-green);
  box-shadow: 0 10px 24px rgba(0, 85, 64, 0.12);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.pd-plano-pdf-button:hover,
.pd-plano-pdf-button:focus,
.pd-plano-pdf-button:active {
  border-color: var(--pd-plano-green-deep);
  color: #ffffff;
  background: var(--pd-plano-green-deep);
  outline: none;
}

.pd-plano-pdf-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pd-plano-security-message {
  display: flex;
  margin: 22px 0 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #88938f;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.pd-plano-security-message img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

/* =========================================================
   CALENDÁRIO
========================================================= */

.pd-plano-calendar-overlay {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(14, 34, 30, 0.32);
  backdrop-filter: blur(3px);
}

.pd-plano-calendar-overlay[hidden] {
  display: none;
}

.pd-plano-calendar-dialog {
  width: min(350px, 100%);
  padding: 20px;
  border: 1px solid var(--pd-plano-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(14, 34, 30, 0.24);
}

.pd-plano-calendar-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.pd-plano-calendar-header h3 {
  margin: 0;
  color: var(--pd-plano-green);
  font-size: 19px;
  font-weight: 500;
  text-align: center;
}

.pd-plano-calendar-nav {
  display: flex;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pd-plano-border);
  border-radius: 50%;
  color: var(--pd-plano-green);
  background: #ffffff;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.pd-plano-calendar-nav:hover,
.pd-plano-calendar-nav:focus,
.pd-plano-calendar-nav:active {
  color: #ffffff;
  background: var(--pd-plano-green);
  outline: none;
}

.pd-plano-calendar-weekdays,
.pd-plano-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.pd-plano-calendar-weekdays {
  margin: 18px 0 7px;
}

.pd-plano-calendar-weekdays span {
  color: #87918e;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.pd-plano-calendar-day,
.pd-plano-calendar-empty {
  width: 100%;
  aspect-ratio: 1;
}

.pd-plano-calendar-day {
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #344641;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.pd-plano-calendar-day:hover,
.pd-plano-calendar-day:focus,
.pd-plano-calendar-day:active {
  color: var(--pd-plano-green);
  background: var(--pd-plano-soft-green);
  outline: none;
}

.pd-plano-calendar-day.is-today {
  border: 1px solid rgba(0, 85, 64, 0.35);
}

.pd-plano-calendar-day.is-selected {
  color: #ffffff;
  background: var(--pd-plano-green);
}

.pd-plano-calendar-close {
  display: flex;
  min-height: 39px;
  margin: 16px auto 0;
  padding: 8px 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pd-plano-green);
  border-radius: 7px;
  color: var(--pd-plano-green);
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.pd-plano-calendar-close:hover,
.pd-plano-calendar-close:focus,
.pd-plano-calendar-close:active {
  color: #ffffff;
  background: var(--pd-plano-green);
  outline: none;
}

/* =========================================================
   ACESSIBILIDADE
========================================================= */

.pd-plano-session-three button:focus-visible,
.pd-plano-session-three input:focus-visible,
.pd-plano-session-three textarea:focus-visible {
  outline: 2px solid rgba(0, 85, 64, 0.38);
  outline-offset: 3px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {
  .pd-plano-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-plano-about-card {
    grid-template-columns: minmax(0, 1fr) 145px;
  }

  .pd-plano-about-illustration {
    width: 140px;
  }

  .pd-plano-signatures-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pd-plano-signatures-grid .pd-plano-field:first-child {
    grid-column: 1 / -1;
    max-width: 420px;
  }

  .pd-plano-download-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pd-plano-pdf-button {
    justify-self: start;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {
  .pd-plano-support {
    padding: 32px 0 48px;
  }

  .pd-plano-session-container {
    width: calc(100% - 32px);
  }

  .pd-plano-data-card {
    padding: 23px 19px 20px;
  }

  .pd-plano-section-title {
    margin-bottom: 22px;
    gap: 12px;
    font-size: 27px;
  }

  .pd-plano-data-grid,
  .pd-plano-signatures-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pd-plano-signatures-grid .pd-plano-field:first-child {
    grid-column: auto;
    max-width: none;
  }

  .pd-plano-about-card {
    grid-template-columns: 1fr;
    padding: 22px 19px;
    gap: 17px;
  }

  .pd-plano-about-content h3 {
    font-size: 21px;
  }

  .pd-plano-about-content p {
    font-size: 12px;
  }

  .pd-plano-about-illustration {
    grid-column: 1 / -1;
    width: 145px;
    margin: 0 auto;
  }

  .pd-plano-preferences-header {
    flex-direction: column;
    gap: 18px;
  }

  .pd-plano-quick-area,
  .pd-plano-quick-button {
    width: 100%;
  }

  .pd-plano-quick-message {
    right: auto;
    left: 0;
    width: 100%;
  }

  .pd-plano-preference-trigger {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 15px 17px;
    gap: 13px;
  }

  .pd-plano-preference-action {
    grid-column: 2;
    justify-self: start;
    margin-top: 3px;
  }

  .pd-plano-preference-title {
    font-size: 16px;
  }

  .pd-plano-preference-description,
  .pd-plano-preference-preview {
    font-size: 11px;
  }

  .pd-plano-preference-card.is-open .pd-plano-preference-editor {
    padding: 0 17px 18px;
  }

  .pd-plano-download-card {
    padding: 24px 20px;
    gap: 18px;
    text-align: center;
  }

  .pd-plano-download-card p {
    font-size: 17px;
  }

  .pd-plano-pdf-button {
    justify-self: stretch;
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .pd-plano-session-three *,
  .pd-plano-session-three *::before,
  .pd-plano-session-three *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hover e sublinhado do link de consulta */
.pd-plano-consulta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--pd-color-action);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(0, 88, 77, 0.16);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.pd-plano-consulta-link:hover,
.pd-plano-consulta-link:focus-visible {
  background: var(--pd-color-green);
  color: #fff !important;
  text-decoration: none !important;
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 88, 77, 0.24);
}

.pd-plano-consulta-link:active {
  transform: translateY(-1px);
}

/* =========================================================
   PLANO DE PARTO — estados de validação, envio e consentimento
   ---------------------------------------------------------
   Acrescente este bloco no final do seu CSS do plano de parto.
   Usa os tokens já existentes (--pd-plano-*) para manter a
   coerência com o resto do formulário.
========================================================= */

.pd-plano-session-three {
  /* Tom de alerta em terracota, afinado para a paleta creme/verde */
  --pd-plano-alert: #a8483a;
  --pd-plano-alert-soft: #fbf0ed;
  --pd-plano-alert-border: #ecd2cb;
}

/* ---------------------------------------------------------
   1. CAMPOS POR PREENCHER
--------------------------------------------------------- */

.pd-plano-field > input.pd-plano-invalid,
.pd-plano-preference-editor textarea.pd-plano-invalid,
.pd-plano-date-control.pd-plano-invalid,
.pd-plano-signature-control.pd-plano-invalid {
  border-color: rgba(168, 72, 58, 0.55);
  background: #fffdfc;
  box-shadow: 0 0 0 3px rgba(168, 72, 58, 0.08);
}

.pd-plano-field > input.pd-plano-invalid:focus,
.pd-plano-date-control.pd-plano-invalid:focus-within,
.pd-plano-signature-control.pd-plano-invalid:focus-within {
  border-color: rgba(168, 72, 58, 0.72);
  box-shadow: 0 0 0 3px rgba(168, 72, 58, 0.12);
}

/* Cartão de preferências assinalado quando nenhuma secção foi preenchida */
.pd-plano-preference-card.pd-plano-invalid {
  border-color: rgba(168, 72, 58, 0.4);
  box-shadow: 0 7px 20px rgba(168, 72, 58, 0.07);
}

/* ---------------------------------------------------------
   2. CAIXA DE AVISO ("faltam dados")
--------------------------------------------------------- */

.pd-plano-form-errors {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--pd-plano-alert-border);
  border-radius: 11px;
  background: var(--pd-plano-alert-soft);
  color: #7d3328;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.pd-plano-form-errors strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--pd-font-serif);
  font-size: 15px;
  font-weight: 600;
}

.pd-plano-form-errors ul {
  margin: 0;
  padding-left: 18px;
}

.pd-plano-form-errors li + li {
  margin-top: 3px;
}

/* ---------------------------------------------------------
   3. ESTADO DO ENVIO
--------------------------------------------------------- */

.pd-plano-send-status {
  display: flex;
  grid-column: 1 / -1;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: var(--pd-plano-green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.pd-plano-send-status.is-error {
  color: var(--pd-plano-alert);
}

.pd-plano-send-status::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.pd-plano-send-status.is-sending::before {
  opacity: 0.45;
  animation: pd-plano-pulse 1.1s ease-in-out infinite;
}

@keyframes pd-plano-pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* ---------------------------------------------------------
   4. AUTORIZAÇÃO DE ENVIO (RGPD)
--------------------------------------------------------- */

.pd-plano-consent {
  display: flex;
  margin: 18px 0 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pd-plano-consent label {
  display: inline-flex;
  max-width: 640px;
  align-items: flex-start;
  gap: 10px;
  color: #56635f;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: left;
}

.pd-plano-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--pd-plano-green);
  cursor: pointer;
}

/* ---------------------------------------------------------
   5. MOBILE
--------------------------------------------------------- */

@media (max-width: 680px) {
  .pd-plano-form-errors {
    padding: 14px 16px;
    font-size: 12.5px;
  }

  .pd-plano-send-status {
    justify-content: center;
  }

  .pd-plano-consent {
    margin-top: 16px;
  }

  .pd-plano-consent label {
    font-size: 12px;
  }
}

/* =========================================================
   PLANO DE PARTO — estados de validação, envio e consentimento
   ---------------------------------------------------------
   Acrescente este bloco no final do seu CSS do plano de parto.
   Usa os tokens já existentes (--pd-plano-*) para manter a
   coerência com o resto do formulário.
========================================================= */

.pd-plano-session-three {
  /* Tom de alerta em terracota, afinado para a paleta creme/verde */
  --pd-plano-alert: #a8483a;
  --pd-plano-alert-soft: #fbf0ed;
  --pd-plano-alert-border: #ecd2cb;
}

/* ---------------------------------------------------------
   1. CAMPOS POR PREENCHER
--------------------------------------------------------- */

.pd-plano-field > input.pd-plano-invalid,
.pd-plano-preference-editor textarea.pd-plano-invalid,
.pd-plano-date-control.pd-plano-invalid,
.pd-plano-signature-control.pd-plano-invalid {
  border-color: rgba(168, 72, 58, 0.55);
  background: #fffdfc;
  box-shadow: 0 0 0 3px rgba(168, 72, 58, 0.08);
}

.pd-plano-field > input.pd-plano-invalid:focus,
.pd-plano-date-control.pd-plano-invalid:focus-within,
.pd-plano-signature-control.pd-plano-invalid:focus-within {
  border-color: rgba(168, 72, 58, 0.72);
  box-shadow: 0 0 0 3px rgba(168, 72, 58, 0.12);
}

/* Cartão de preferências assinalado quando nenhuma secção foi preenchida */
.pd-plano-preference-card.pd-plano-invalid {
  border-color: rgba(168, 72, 58, 0.4);
  box-shadow: 0 7px 20px rgba(168, 72, 58, 0.07);
}

/* ---------------------------------------------------------
   2. CAIXA DE AVISO ("faltam dados")
--------------------------------------------------------- */

.pd-plano-form-errors {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--pd-plano-alert-border);
  border-radius: 11px;
  background: var(--pd-plano-alert-soft);
  color: #7d3328;
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

.pd-plano-form-errors strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--pd-font-serif);
  font-size: 15px;
  font-weight: 600;
}

.pd-plano-form-errors ul {
  margin: 0;
  padding-left: 18px;
}

.pd-plano-form-errors li + li {
  margin-top: 3px;
}

/* ---------------------------------------------------------
   3. ESTADO DO ENVIO
--------------------------------------------------------- */

.pd-plano-send-status {
  display: flex;
  grid-column: 1 / -1;
  margin: 0;
  align-items: center;
  gap: 8px;
  color: var(--pd-plano-green);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.pd-plano-send-status.is-error {
  color: var(--pd-plano-alert);
}

.pd-plano-send-status::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.pd-plano-send-status.is-sending::before {
  opacity: 0.45;
  animation: pd-plano-pulse 1.1s ease-in-out infinite;
}

@keyframes pd-plano-pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* ---------------------------------------------------------
   4. AUTORIZAÇÃO DE ENVIO (RGPD)
--------------------------------------------------------- */

/* Vive dentro do cartão de download, por baixo do botão. */
.pd-plano-download-card .pd-plano-consent {
  grid-column: 2;
  justify-self: end;
  max-width: 340px;
  margin: 2px 0 0;
}

.pd-plano-consent label {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  color: #77837f;
  cursor: pointer;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: left;
  transition: color 180ms ease;
}

.pd-plano-consent label:hover {
  color: var(--pd-plano-green);
}

.pd-plano-consent input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--pd-plano-green);
  cursor: pointer;
}

/* ---------------------------------------------------------
   5. TABLET E MOBILE
--------------------------------------------------------- */

/* A partir daqui o cartão passa a uma só coluna. */
@media (max-width: 980px) {
  .pd-plano-download-card .pd-plano-consent {
    grid-column: 1;
    justify-self: start;
    max-width: 520px;
    margin: 0;
  }
}

@media (max-width: 680px) {
  .pd-plano-form-errors {
    padding: 14px 16px;
    font-size: 12.5px;
  }

  .pd-plano-send-status {
    justify-content: center;
  }

  .pd-plano-download-card .pd-plano-consent {
    justify-self: center;
    max-width: none;
  }

  .pd-plano-consent label {
    font-size: 11.5px;
  }
}