/* Navigation sticky */
.office-fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

/* Background */
.office-bg-black {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: -100;
  top: 0;
  left: 0;
  background-color: #171717;
}

.office-bg-white {
  width: 100%;
  height: 0;
  display: none;
  position: fixed;
  z-index: -100;
  top: 85%;
  left: 0;
  background-color: #fff;
}

/* Main content */
section.office-maincontent {
  color: #fff;
  min-height: 100vh;
  width: calc(100% - 3rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(8.8rem, 11vw, 11rem) 0 6rem;
  display: block;
  position: relative;
}

/* Title */
.office-title {
  width: 100%;
  max-width: 780px;
  margin: 0 0 0.65rem;
  text-align: left;
  font-weight: 700;
  position: static;
  padding: 0;
}

.office-time-header {
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  line-height: 1.12;
  margin-bottom: 0.9rem;
}

.office-time-header br {
  display: none;
}

.office-time-para {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  font-weight: 400;
}

.office-time-note {
  padding: 0;
  color: #ddd;
  max-width: 42rem;
}

.office-time-note a {
  color: #fff;
  text-decoration: underline;
}

.office-time-note a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.office-form-message {
  margin-bottom: 1.7rem;
}

.office-page-hint {
  max-width: 780px;
  margin: 0 0 2rem;
  color: #bdbdbd;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.55;
}

/* Articles */
.office-articles {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.office-rectangle {
  min-height: 0;
  height: auto;
  width: 100%;
  background-color: #e7e7e7;
  color: #0a0a0a;
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.7;
  display: block;
  position: relative;
  margin-bottom: 0;
  padding: 0;
  border-left: 5px solid transparent;
  border-radius: 4px;
  overflow: visible;
  transition: 0.2s background-color ease, 0.2s border-color ease;
}

.office-rectangle h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  line-height: 1.35;
  font-weight: 700;
  flex: 1;
}

.office-rectangle:last-child {
  margin-bottom: 0;
}

.office-rectangle-open {
  border-left-color: #b30000;
}

.office-smallTitle {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.office-rectangle-visible {
  background-color: #e7e7e7;
  border-radius: 4px 4px 0 0;
}

.office-rectangle-open .office-rectangle-visible {
  position: relative;
  z-index: 5;
  box-shadow: rgba(0, 0, 0, 0.14) 0 8px 18px;
}

.office-rectangle-visible.office-header-fixed {
  position: fixed;
  box-sizing: border-box;
  z-index: 140;
  border-left: 5px solid #b30000;
  border-radius: 4px 4px 0 0;
  box-shadow: rgba(0, 0, 0, 0.22) 0 10px 26px;
}

.office-rectangle-open .office-smallTitle {
  background-color: #e7e7e7;
}

.office-articles section,
.office-articles h6 {
  margin-bottom: 1rem;
}

.office-articles h6 {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.office-readmore:focus-visible,
input.office-form-submit:focus-visible,
.office-a-link:focus-visible {
  outline: 3px solid #b30000;
  outline-offset: 4px;
}

/* Cemetery iframe */
.office-cemetery {
  padding: 0;
  margin: 0;
  background-color: #fff;
}

.office-cemetery p {
  margin-bottom: 1rem;
}

.office-cemetery-frame {
  display: block;
  width: 100%;
  height: 5200px;
  max-height: none;
  border: none;
  background-color: #fff;
}

/* Button to open */
.office-readmore {
  width: 48px;
  min-width: 48px;
  height: 48px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  background: #f3f3f3;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.office-buttonOpen {
  width: 28px;
  height: 28px;
  position: relative;
}

.office-buttonOpen::after,
.office-buttonOpen::before {
  position: absolute;
  transition: 0.3s transform ease, 0.3s background-color ease;
  left: 13px;
  top: 2px;
  content: " ";
  height: 24px;
  width: 2px;
  background-color: #0a0a0a;
}

.office-buttonOpen::after {
  transform: rotate(90deg);
}

/* Article content */
.office-article-content {
  line-height: 1.75;
  text-align: left;
  transition: 1s opacity ease, 1s max-height ease;
  height: auto;
  max-height: 12000px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}

.office-article-content--cemetery {
  padding: 0;
}

.office-rich-text {
  margin-bottom: 2.25rem;
}

.office-rich-text p {
  margin: 0 0 1.1rem;
}

.office-rich-text ol,
.office-rich-text ul {
  margin: 0 0 1.6rem;
  padding-left: 1.55rem;
  list-style-position: outside;
}

.office-rich-text li {
  margin-bottom: 0.85rem;
  padding-left: 0.15rem;
}

.office-rich-text li::marker {
  color: #b30000;
  font-weight: 700;
}

.office-rich-text li:last-child {
  margin-bottom: 0;
}

.office-rich-text ul li {
  margin-bottom: 0.65rem;
}

.office-rich-text br {
  line-height: 1.45;
}

.office-rich-text br + br + br {
  display: none;
}

.office-article-para {
  margin-top: 1.25rem;
}

.office-quote {
  margin: 0 0 1.6rem;
  padding: 1rem 1.15rem;
  background-color: #f1f1f1;
  border-left: 4px solid #b30000;
}

.office-quote p {
  margin: 0;
}

/* Form */
.office-form {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

form section {
  width: 100%;
}

/* One input */
.office-input {
  width: 100%;
  position: relative;
  margin-bottom: 1rem;
  overflow: hidden;
}

.office-input--endsection {
  margin-bottom: 2.5rem;
}

.office-input input {
  width: 100%;
  height: 58px;
  font-size: 1rem;
  color: #171717;
  background-color: #efefef;
  padding-top: 1.5rem;
  border: none;
  outline: none;
}

.office-input label {
  position: absolute;
  pointer-events: none;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 1rem;
  border-bottom: 1px solid #171717;
}

.office-input label::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  border-bottom: 3px solid #b30000;
  left: 0;
  bottom: -1px;
  transform: translateX(-100%);
  transition: all 0.2s ease-out;
}

.office-label-content {
  position: absolute;
  height: 21px;
  bottom: 0;
  left: 0;
  transform: translateY(-35%);
  transition: all 0.2s ease-out;
}

/* Anim with placeholders */
.office-input input:focus + .office-label-name .office-label-content,
.office-input input:not(:placeholder-shown) + .office-label-name .office-label-content,
.office-input.is-active .office-label-content,
.office-input.is-filled .office-label-content {
  transform: translateY(-150%);
  color: #b30000;
  font-size: 0.85rem;
}

.office-input input:focus + .office-label-name::after,
.office-input input:not(:placeholder-shown) + .office-label-name::after,
.office-input.is-active .office-label-name::after,
.office-input.is-filled .office-label-name::after {
  transform: translateX(0);
}

.office-input input:not(:focus) + .office-label-name .office-label-content {
  color: #171717;
}

.office-input input:not(:focus) {
  color: #171717;
}

.office-input input:focus {
  color: #171717;
}

.office-input input:not(:focus) + .office-label-name::after {
  border-bottom: 0 solid #171717;
}

.office-input input:focus-visible + .office-label-name {
  border-bottom-color: #b30000;
}

/* Google recaptcha */
.office-recaptcha {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Form submit */
input.office-form-submit {
  margin-top: 1.25rem;
  width: 100%;
  min-height: 52px;
  outline: none;
  border: none;
  background-color: #b30000;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.office-hide-article {
  opacity: 0;
  max-height: 0 !important;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.office-rectangle-hover:hover {
  cursor: pointer;
  color: #0a0a0a;
  background-color: #f1f1f1;
  border-left-color: #b30000;
}

.office-rectangle-hover:hover .office-buttonOpen::after,
.office-rectangle-hover:hover .office-buttonOpen::before {
  background-color: #0a0a0a;
}

.office-rectangle-cross::after {
  transform: rotate(45deg);
}

.office-rectangle-cross::before {
  transform: rotate(-45deg);
}

/* Headers */
.office-header-3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: none;
}

.office-header-4 {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  line-height: 1.35;
  font-weight: 700;
  font-variant: normal;
  margin-top: 1.75rem;
  margin-bottom: 0.8rem;
}

.office-header-5 {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.4;
  font-style: normal;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* link */
.office-a-link {
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: underline;
  cursor: pointer;
}

.office-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.office-action {
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background-color: #2c2c2c;
  color: #fff;
  font-family: "Poppins", serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.22) 0 6px 18px;
}

.office-action:hover,
.office-action:focus-visible {
  background-color: #b30000;
}

.office-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.office-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.office-action:disabled:hover {
  background-color: #2c2c2c;
}
