/* Wills slider overrides — ensure pastel colors + circular arrows */
.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 9999px !important;
  background-color: #ffffff !important;
  border: 1px solid oklch(0.92 0.004 286.32);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 5;
}

.carousel-arrow:disabled {
  opacity: 0.45;
}

/* Terms: keep section headings consistent (match live site size) */
article.terms-prose h2 {
  font-family: var(--font-noto), "Noto Serif Display", serif !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.025em;
  color: #302c5b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
article.terms-prose h2:first-child {
  margin-top: 0;
}
article.terms-prose p,
article.terms-prose li {
  font-family: var(--font-poppins), Poppins, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

/* Service detail page */
.servicedetailscontainer {
  display: grid;
  grid-template-columns: 100%;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}
.servicedetailsicons {
  display: flex;
  justify-content: center;
}
.servicedetailsicons img {
  border: 1px solid #ddd;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.servicedetailstitle {
  display: flex;
  gap: 15px;
  align-items: center;
}
.servicedetailscontainer .servicedetailstitle h3 {
  color: var(--primary, #302c5b);
  font-size: var(--h3-size, 2rem) !important;
  font-weight: 600;
  line-height: 1.25;
  font-family: var(--font-noto), "Noto Serif Display", serif;
}
.servicedetailstitle p {
  font-size: 1.5rem;
  font-weight: 500;
}

/* Date of Death field + Flatpickr */
.dod-field {
  position: relative;
  width: 100%;
}
.dod-field.is-invalid .dod-input-row {
  box-shadow: 0 0 0 1px #ef4444;
  border-radius: 0.125rem;
}
.dod-input-row {
  position: relative;
  display: block;
  width: 100%;
}
.dod-date-input {
  padding-right: 2.75rem !important;
}
.dod-calendar-btn {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 0.125rem;
}
.dod-calendar-btn:hover {
  color: var(--color-primary, #0f3d5e);
  background: rgba(15, 61, 94, 0.06);
}
.dod-calendar-btn:focus-visible {
  outline: 2px solid var(--color-primary, #0f3d5e);
  outline-offset: -2px;
}

.dod-error-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 60;
  width: max-content;
  max-width: 16rem;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 0.375rem;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #4b5563;
  font-size: 0.875rem;
}

.flatpickr-calendar {
  font-family: var(--font-poppins), Poppins, sans-serif;
  z-index: 70 !important;
}

/* Year dropdown instead of tiny number spinner */
.flatpickr-current-month .numInputWrapper.has-year-select {
  width: auto;
}
.flatpickr-current-month .numInputWrapper.has-year-select .cur-year,
.flatpickr-current-month .numInputWrapper.has-year-select .arrowUp,
.flatpickr-current-month .numInputWrapper.has-year-select .arrowDown {
  display: none !important;
}
.flatpickr-year-select {
  appearance: auto;
  -webkit-appearance: menulist;
  display: inline-block;
  margin: 0 0 0 0.25rem;
  padding: 0.15rem 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.25rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  vertical-align: middle;
}
.flatpickr-year-select:focus {
  outline: 2px solid var(--color-primary, #0f3d5e);
  outline-offset: 1px;
}
.flatpickr-months .flatpickr-monthDropdown-months {
  font-weight: 600;
}

/* Captcha placeholder (static mock matching live layout) */
.recaptcha-mock {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 304px;
  max-width: 100%;
  min-height: 78px;
  padding: 0 12px;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  background: #f9f9f9;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.08);
}
.recaptcha-mock label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  color: #202124;
  cursor: pointer;
}
.recaptcha-mock input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: #1a73e8;
}
.recaptcha-mock-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #555;
  line-height: 1.2;
}
.recaptcha-mock-brand img {
  width: 32px;
  height: auto;
}

/* File upload — hide native input; show button + filename */
.file-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  border: 1px solid #d4d4d8;
  border-radius: 0.125rem;
  background: #fff;
  box-sizing: border-box;
}

.file-upload:hover {
  border-color: #a1a1aa;
}

.file-upload:focus-within {
  border-color: #302c5b;
  outline: 2px solid color-mix(in srgb, #302c5b 25%, transparent);
  outline-offset: 1px;
}

.file-upload.has-file {
  border-color: #302c5b;
}

.file-upload.is-invalid {
  border-color: #e11d48;
}

.file-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
  opacity: 0;
}

.file-upload__button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.875rem;
  border: 1px solid #302c5b;
  border-radius: 0.125rem;
  background: #302c5b;
  color: #fafafa;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.file-upload__button:hover {
  background: #252247;
  border-color: #252247;
}

.file-upload__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #71717a;
}

.file-upload.has-file .file-upload__name {
  color: #18181b;
  font-weight: 500;
}

.file-field__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #71717a;
}

/* Submit buttons — match size="lg" from design system */
.btn-submit-lg {
  height: 3.25rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-7 {
    padding-block: calc(var(--spacing) * 7);
}
.aspect-square-1 {
    aspect-ratio: 1;
}

@media (max-width: 560px) {
  #specializationSection h2, .managereorder h4 {
      font-size: 20px;
  }
  #specializationSection p, .managereorder p{
    font-size: 15px;
  } 
  #specializationSection h4, #specializationSection h3{
    font-size: 18px;
  }
  .otherServiceImg {
      width: 30% !important;
  }
  .managereorder h2 {
    font-size: 24px;
  }
  .servicedetailscontainer .servicedetailstitle h3{
    font-size: 1rem !important;
  }
  .servicedetailsicons img{
    height: auto;
  }
  .titlestaticpage {
    font-size: 18px;
  }
  .staticforms label {
    font-size: 12px !important;
  }
  .servicedetailscontainer ~ p {
    font-size: 14px;
  }
  .breadcrumbheader{
    min-height: 120px;
  }
  .mobileheaderset{
    top: 40px;
    font-size: 32px;
  }
  section {
    padding-block: calc(var(--spacing) * 7);
  }
  .otherservices {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}