/* Funeral Form Container */
.funeralForm .hidden {
  display: none !important;
}
.funeralForm {
  background: #fff;
  padding: 25px;
  margin-bottom: 30px;
  overflow: visible !important;
  position: relative;
}

.funeralSection .funeralSubheader {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 20px;
  color: #2c3340;
  border-bottom: 2px solid #ded6ca;
  padding-top: 20px;
  padding-bottom: 5px;
}
.funeralFieldGroup {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 10px 0;
  width: 100%;
  position: relative;
}
.funeralFieldGroup:has(textarea) label {
  margin-top: 20px;
}
.funeralFieldGroup label {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 600;
  text-align: left;
	margin-top: 10px;
  margin-right: 10px;
  line-height: 1.4;
}
.funeralDots {
  flex-grow: 1;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
  height: 1px;
  margin: auto 10px;
  align-self: center;
}
.funeralFieldGroup .funeralDisplay, .funeralFieldGroup input[type="text"], .funeralFieldGroup input[list], .funeralFieldGroup textarea {
  flex: 0 1 100%;
  font-size: 1rem;
  color: #333;
  background: transparent;
  border: none;
  padding: 0 5px;
  min-width: 250px;
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
  font-family: inherit;
}

.funeralFieldGroup input:not(.hidden), .funeralFieldGroup textarea:not(.hidden) {
  background: #fff;
  border: 1px solid #ded6ca;
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}
.funeralFieldGroup > *:not(label):not(.funeralDots) {
  margin-top: 6px;
}
.funeralDisplay {
  white-space: pre-wrap;
  line-height: 1.4;
  word-break: break-word;
  width: 100%;
  max-width: 600px;
}

.funeralFormActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  justify-content: center;
}
.funeralFormActionsBottom {
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.funeralFormActionsTop {
  margin-bottom: 1.25rem;
}
.funeralButton {
  font-family: var(--f2n-btn-font, "DM Sans", "Segoe UI", system-ui, sans-serif);
  font-size: var(--f2n-btn-size, 0.9375rem);
  font-weight: var(--f2n-btn-weight, 600);
  letter-spacing: 0.02em;
  padding: var(--f2n-btn-pad, 0.7rem 1.35rem);
  margin: 1rem;
  border: none;
  background: var(--f2n-btn-primary-bg, linear-gradient(180deg, #5c9120 0%, #487f14 100%));
  color: #ffffff;
  border-radius: var(--f2n-btn-radius, 999px);
  cursor: pointer;
  box-shadow: var(--f2n-btn-primary-shadow, 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 22px rgba(92, 145, 32, 0.22));
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
.funeralButton:hover {
  background: var(--f2n-btn-primary-hover, linear-gradient(180deg, #56851f 0%, #3f6e12 100%));
  color: #ffffff;
}
input:focus, textarea:focus {
  outline: 2px solid #4a8bb5;
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .funeralForm {
    padding: 16px;
    margin-bottom: 20px;
  }
  .funeralSection .funeralSubheader {
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 12px;
    padding-top: 16px;
  }
  .funeralFieldGroup input:not(.hidden), .funeralFieldGroup textarea:not(.hidden) {
    max-width: 100%;
  }
  .funeralDisplay {
    max-width: 100%;
  }
  .funeralButton {
    margin: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .funeralFieldGroup {
    flex-direction: column;
    align-items: stretch;
  }
  .funeralFieldGroup label {
    margin-right: 0;
  }
  .funeralDots {
    display: none;
  }
  .funeralFieldGroup .funeralDisplay, .funeralFieldGroup input[type="text"], .funeralFieldGroup input[list], .funeralFieldGroup textarea {
    min-width: 0;
  }
}