/* BIOFZEN contact page — client-reference implementation. */
body.page-contact {
  margin-top: 76px !important;
  background: #fbfaf8;
  color: #111;
}

body.page-contact #content.biofzen-contact-page {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: #fbfaf8;
}

.bf-contact,
.bf-contact * {
  box-sizing: border-box;
}

.bf-contact {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  padding: 0 0 34px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

.bf-contact__stage {
  position: relative;
  display: grid;
  width: calc(100% + max(20px, (100vw - 1280px) / 2));
  grid-template-columns: minmax(390px, 481px) minmax(410px, 520px) minmax(279px, 1fr);
  min-height: 670px;
  overflow: hidden;
  background: #fbfaf8;
}

.bf-contact__details {
  position: relative;
  z-index: 2;
  padding: 82px 44px 54px 34px;
}

.bf-contact__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.bf-contact__title,
.bf-contact-form__title {
  margin: 0;
  color: #080808;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none !important;
}

.bf-contact__title {
  font-size: clamp(56px, 5vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.bf-contact__lead {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.45;
}

.bf-contact__copy {
  max-width: 400px;
  margin: 20px 0 0;
  color: #313131;
  font-size: 16px;
  line-height: 1.45;
}

.bf-contact__info {
  display: grid;
  gap: 25px;
  margin: 40px 0 0;
}

.bf-contact__info-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.bf-contact__info-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 1px solid #1a1a1a;
  border-radius: 50%;
}

.bf-contact__info-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.bf-contact__info-text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.bf-contact__info-text span,
.bf-contact__info-text a {
  display: block;
  color: #303030;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}

.bf-contact__info-text a {
  transition: opacity 180ms ease, transform 180ms ease;
}

.bf-contact__info-text a:hover,
.bf-contact__info-text a:focus-visible {
  opacity: 0.68;
  transform: translateX(2px);
}

.bf-contact-form {
  position: relative;
  z-index: 4;
  align-self: center;
  margin: 36px -40px 36px 0;
  padding: 39px 35px 31px;
  border: 1px solid rgba(12, 12, 12, 0.025);
  border-radius: 4px;
  background: rgba(250, 250, 249, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.055);
  backdrop-filter: blur(10px);
}

.bf-contact-form__title {
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.bf-contact-form__intro {
  max-width: 410px;
  margin: 13px 0 24px;
  color: #494949;
  font-size: 13px;
  line-height: 1.5;
}

.bf-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.bf-contact-form__field {
  min-width: 0;
}

.bf-contact-form__field--wide {
  grid-column: 1 / -1;
}

.bf-contact-form label {
  display: block;
  margin: 0 0 7px;
  color: #131313;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.bf-contact-form input,
.bf-contact-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid #d9d9d7;
  border-radius: 4px;
  outline: 0;
  background: rgba(255, 255, 255, 0.84);
  color: #111;
  font: inherit;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.bf-contact-form input {
  height: 42px;
  padding: 0 12px;
}

.bf-contact-form textarea {
  min-height: 84px;
  padding: 11px 12px;
  resize: vertical;
}

.bf-contact-form input::placeholder,
.bf-contact-form textarea::placeholder {
  color: #a6a6a6;
}

.bf-contact-form input:focus,
.bf-contact-form textarea:focus {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.bf-contact-form__submit {
  display: inline-flex;
  width: 208px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 20px 0 0;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}

.bf-contact-form__submit span {
  display: inline !important;
  white-space: nowrap;
}

.bf-contact-form__submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.bf-contact-form__submit:hover,
.bf-contact-form__submit:focus-visible {
  background: #2b2b2b;
  transform: translateY(-1px);
}

.bf-contact-form__submit:hover svg,
.bf-contact-form__submit:focus-visible svg {
  transform: translateX(3px);
}

.bf-contact-form__status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #2f5b3b;
  font-size: 12px;
  line-height: 1.4;
}

.bf-contact-form__status[data-state="error"] {
  color: #9b2525;
}

.bf-contact-form__trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.bf-contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.bf-contact__visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-left: -86px;
  overflow: hidden;
  background: #dfdfdb;
}

.bf-contact__visual img {
  position: absolute;
  inset: -7% -12% -7% -12%;
  width: 124%;
  height: 114%;
  max-width: none;
  object-fit: cover;
  object-position: 46% 22%;
  filter: saturate(0.62) brightness(1.07) contrast(0.92);
}

.bf-contact__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #fbfaf8 0,
    rgba(251, 250, 248, 0.92) 7%,
    rgba(251, 250, 248, 0.62) 15%,
    rgba(251, 250, 248, 0.2) 25%,
    transparent 39%
  );
  pointer-events: none;
}

.bf-contact__vertical-line {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 29px;
  width: 74px;
  color: #111;
  font-size: 9px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.39em;
  text-align: center;
  text-transform: uppercase;
}

.bf-map {
  position: relative;
  height: 374px;
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid #e8e8e5;
  border-radius: 22px;
  background: #f6f6f4;
  isolation: isolate;
}

.bf-map__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.92) brightness(1.04);
}

.bf-map::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -33%;
  width: 46%;
  height: 79%;
  border: 18px solid rgba(195, 195, 191, 0.21);
  border-radius: 50%;
  transform: rotate(-13deg);
}

.bf-map__district,
.bf-map__street,
.bf-map__route {
  position: absolute;
  color: rgba(30, 30, 30, 0.72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bf-map__district--left { left: 5%; top: 13%; }
.bf-map__district--right { right: 11%; top: 41%; text-align: center; }
.bf-map__street--top { left: 34%; top: 3%; }
.bf-map__street--left { left: 4%; top: 42%; transform: rotate(-8deg); }
.bf-map__street--bottom { left: 28%; bottom: 7%; transform: rotate(7deg); }
.bf-map__route { padding: 2px 5px; border-radius: 3px; background: #777; color: #fff; font-size: 11px; }
.bf-map__route--top { right: 16%; top: 8%; }
.bf-map__route--bottom { left: 48%; bottom: 3%; }

.bf-map__card {
  position: absolute;
  z-index: 3;
  top: 60px;
  left: 50%;
  display: grid;
  min-width: 244px;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.13);
  transform: translateX(-50%);
}

.bf-map__card svg,
.bf-map__pin svg {
  width: 28px;
  height: 35px;
  fill: #050505;
}

.bf-map__card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.bf-map__card span {
  display: block;
  font-size: 13px;
  line-height: 1.38;
}

.bf-map__pin {
  position: absolute;
  z-index: 2;
  top: 155px;
  left: 50%;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.17));
  transform: translateX(-50%) scale(1.35);
}

.bf-map__open {
  position: absolute;
  z-index: 4;
  left: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  color: #111;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bf-map__open:hover,
.bf-map__open:focus-visible {
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 7px 19px rgba(0, 0, 0, 0.13);
}

.bf-map__open svg {
  width: 18px;
  height: 22px;
  fill: currentColor;
}

.bf-map__zoom {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 42px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.bf-map__zoom span {
  display: grid;
  height: 42px;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.bf-map__zoom span + span { border-top: 1px solid #e1e1df; }

@media (max-width: 1099.98px) {
  .bf-contact { width: min(100% - 36px, 920px); }
  .bf-contact__stage { width: 100%; grid-template-columns: minmax(0, 0.92fr) minmax(370px, 1.08fr); }
  .bf-contact__details { padding: 66px 34px 46px 12px; }
  .bf-contact-form { margin-right: 0; }
  .bf-contact__visual { grid-column: 1 / -1; min-height: 240px; margin-left: 0; }
  .bf-contact__visual img { inset: -50% 0 -65%; width: 100%; height: 215%; object-position: 50% 31%; }
  .bf-contact__vertical-line { right: 22px; bottom: 22px; }
  .bf-map { height: 330px; }
}

@media (max-width: 767.98px) {
  body.page-contact { margin-top: 76px !important; }
  .bf-contact { width: 100%; padding-bottom: 20px; }
  .bf-contact__stage { display: flex; min-height: 0; flex-direction: column; overflow: visible; }
  .bf-contact__details { padding: 52px 20px 34px; }
  .bf-contact__title { font-size: clamp(50px, 15vw, 62px); }
  .bf-contact__copy { max-width: none; }
  .bf-contact__info { gap: 21px; margin-top: 32px; }
  .bf-contact__info-row { grid-template-columns: 54px minmax(0, 1fr); gap: 16px; }
  .bf-contact__info-icon { width: 54px; height: 54px; }
  .bf-contact-form { margin: 0 20px 24px; padding: 30px 25px 26px; }
  .bf-contact-form__grid { grid-template-columns: 1fr; }
  .bf-contact-form__field--wide { grid-column: auto; }
  .bf-contact__visual { order: 3; min-height: 320px; }
  .bf-contact__visual img { inset: -22% 0 -30%; width: 100%; height: 152%; object-position: 50% 22%; }
  .bf-contact__vertical-line { right: 13px; bottom: 18px; }
  .bf-map { height: 420px; margin: 20px; border-radius: 18px; }
  .bf-map__card { top: 82px; min-width: 230px; }
  .bf-map__pin { top: 178px; }
  .bf-map__district--right { right: 6%; top: 53%; }
  .bf-map__open { left: 14px; bottom: 14px; }
  .bf-map__zoom { right: 14px; bottom: 14px; }
}

@media (max-width: 479.98px) {
  .bf-contact-form { padding: 26px 20px 22px; }
  .bf-contact-form__submit { width: 100%; }
  .bf-map { margin-inline: 12px; }
  .bf-map__street--left,
  .bf-map__street--bottom { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-contact * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
