/* Enquire V2 — master-grid project-room recomposition (.eq-*) */

.eq {
  --eq-top: calc(var(--header-h) + clamp(40px, 6.5vh, 76px));
  --eq-bleed: calc(max((100vw - var(--container)) / 2, 0px) + var(--gutter));
  background: var(--paper);
}

.eq-summary-anchor,
.eq-summary,
.eq-done {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.eq-control {
  scroll-margin-top: calc(var(--header-h) + 48px);
}

/* ---------- master grid inside the shared container ---------- */

.eq__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 3.6vw, 64px);
  align-items: stretch;
}

/* ---------- left: architectural dark plane ---------- */

.eq__panel {
  position: relative;
  grid-column: 1 / 6;
}

.eq__panel-media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--eq-bleed));
  right: 0;
  background: var(--ink);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.eq__panel-media img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6%;
  top: auto;
  width: 100%;
  height: 68%;
  object-fit: cover;
  object-position: center 40%;
}

.eq__panel-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(27, 26, 23, 0.93) 0%,
      rgba(27, 26, 23, 0.84) 26%,
      rgba(27, 26, 23, 0.52) 50%,
      rgba(27, 26, 23, 0.66) 74%,
      rgba(27, 26, 23, 0.8) 100%
    ),
    rgba(27, 26, 23, 0.18);
}

.eq__panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--eq-top) 0 clamp(40px, 5.5vh, 68px);
  color: #f5f1e8;
}

.eq__eyebrow {
  color: rgba(245, 241, 232, 0.68);
  margin-bottom: clamp(20px, 3.2vh, 32px);
}

.eq__title {
  margin: 0;
  font-size: clamp(3.2rem, 4.5vw, 5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 10em;
}

.eq-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.eq-line__in {
  display: inline-block;
  transform: translateZ(0);
  will-change: transform;
}

.eq__rule {
  display: block;
  width: clamp(90px, 10vw, 150px);
  height: 1px;
  background: rgba(245, 241, 232, 0.42);
  margin: clamp(20px, 3vh, 32px) 0 clamp(15px, 2.4vh, 24px);
}

.eq__lede {
  margin: 0;
  font-size: clamp(1.0625rem, 1.1vw, 1.125rem);
  line-height: 1.62;
  color: rgba(245, 241, 232, 0.8);
  max-width: 32ch;
}

.eq__guide {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  max-width: 360px;
}

.eq__guide li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding-block: clamp(11px, 1.6vh, 15px);
  border-top: 1px solid rgba(245, 241, 232, 0.16);
  color: rgba(245, 241, 232, 0.78);
  font-size: 15px;
  line-height: 1.5;
}

.eq__guide li:last-child {
  border-bottom: 1px solid rgba(245, 241, 232, 0.16);
}

.eq__guide span:first-child {
  font-family: var(--font-mono), monospace;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: rgba(245, 241, 232, 0.52);
  padding-top: 1px;
}

/* ---------- right: form ---------- */

.eq__main {
  grid-column: 6 / 13;
}

.eq__sheet {
  padding: var(--eq-top) 0 clamp(56px, 7vh, 88px);
}

.eq__head {
  margin-bottom: clamp(32px, 4.6vh, 52px);
}

.eq__head-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  margin-bottom: clamp(20px, 3vh, 30px);
}

.eq__head-row .mono-label {
  color: rgba(27, 26, 23, 0.62);
  white-space: nowrap;
}

.eq__head-line {
  flex: 1;
  height: 1px;
  background: rgba(27, 26, 23, 0.18);
}

.eq__progress {
  font-variant-numeric: tabular-nums;
  color: rgba(27, 26, 23, 0.66);
  white-space: nowrap;
}

.eq__form-title {
  margin: 0;
  font-size: clamp(2.125rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- summary ---------- */

.eq-summary {
  border: 1px solid #a34832;
  background: rgba(163, 72, 50, 0.06);
  padding: clamp(20px, 2.6vh, 28px) clamp(20px, 2.6vw, 30px);
  margin-bottom: clamp(28px, 4vh, 44px);
}

.eq-summary h3 {
  margin: 0 0 14px;
  font-size: 16.5px;
  font-weight: 500;
  color: #7e3524;
}

.eq-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.eq-summary a {
  color: #7e3524;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.eq-summary a:hover {
  color: #5f2719;
}

/* ---------- fields ---------- */

.eq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 2.6vw, 42px);
}

.eq-field {
  margin-bottom: clamp(22px, 3vh, 32px);
}

.eq-field__label {
  display: block;
  font-family: var(--font-mono), monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(27, 26, 23, 0.66);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.eq-field:focus-within .eq-field__label {
  color: var(--ink);
}

.eq-field__label .eq-req {
  color: var(--bronze);
}

.eq-field__wrap {
  position: relative;
}

.eq-field__wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.eq-field:focus-within .eq-field__wrap::after {
  transform: scaleX(1);
}

.eq-control {
  width: 100%;
  height: 60px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(27, 26, 23, 0.26);
  border-radius: 0;
  font-family: var(--font-sans), sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  caret-color: var(--bronze);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.eq-control:hover {
  border-color: rgba(27, 26, 23, 0.46);
  background: rgba(255, 255, 255, 0.55);
}

.eq-field:focus-within .eq-control {
  border-color: rgba(27, 26, 23, 0.5);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 30px -26px rgba(27, 26, 23, 0.6);
}

textarea.eq-control {
  height: auto;
  min-height: 200px;
  padding: 16px 18px;
  line-height: 1.58;
  resize: vertical;
}

.eq-field--error .eq-control {
  border-color: #a34832;
}

.eq-field--error .eq-field__wrap::after {
  transform: scaleX(1);
  background: #a34832;
}

.eq-field__help {
  display: block;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(27, 26, 23, 0.64);
  margin-top: 10px;
  max-width: 58ch;
  transition: color 0.3s ease;
}

.eq-field:focus-within .eq-field__help {
  color: rgba(27, 26, 23, 0.68);
}

.eq-field__error {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  color: #8f3d29;
  margin-top: 10px;
}

/* ---------- radios ---------- */

.eq-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.eq-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 24px;
  border: 1px solid rgba(27, 26, 23, 0.24);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  font-size: 15.5px;
  color: rgba(27, 26, 23, 0.8);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.eq-radio:hover {
  border-color: rgba(27, 26, 23, 0.44);
}

.eq-radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.eq-radio__dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(27, 26, 23, 0.45);
  transition: border-color 0.3s ease;
}

.eq-radio input:checked ~ .eq-radio__dot {
  border-color: var(--bronze);
}

.eq-radio input:checked ~ .eq-radio__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bronze);
}

.eq-radio:has(input:checked) {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.eq-radio:has(input:focus-visible) {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

.eq-radio--disabled {
  opacity: 0.58;
  border-color: rgba(27, 26, 23, 0.13);
  color: rgba(27, 26, 23, 0.5);
  cursor: not-allowed;
}

.eq-radio--disabled:hover {
  border-color: rgba(27, 26, 23, 0.13);
}

.eq-radios__note {
  display: block;
  font-size: 13.5px;
  color: rgba(27, 26, 23, 0.64);
  margin-top: 12px;
  max-width: 58ch;
}

/* ---------- actions ---------- */

.eq-actions {
  margin-top: clamp(36px, 5vh, 56px);
}

.eq-submit {
  position: relative;
  width: 100%;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  color: var(--ink);
  transition: color 0.45s ease, border-color 0.4s ease;
}

.eq-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.eq-submit:hover::before,
.eq-submit:focus-visible::before {
  transform: scaleX(1);
}

.eq-submit:hover,
.eq-submit:focus-visible {
  color: #f5f1e8;
  outline: none;
}

.eq-submit:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

.eq-submit > span {
  position: relative;
  z-index: 1;
}

.eq-submit__label {
  font-family: var(--font-mono), monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.eq-submit:hover .eq-submit__label,
.eq-submit:focus-visible .eq-submit__label {
  transform: translateX(5px);
}

.eq-submit__line {
  flex: 1;
  height: 1px;
  background: rgba(27, 26, 23, 0.38);
  transition: background 0.4s ease;
}

.eq-submit:hover .eq-submit__line,
.eq-submit:focus-visible .eq-submit__line {
  background: rgba(165, 130, 90, 0.75);
}

.eq-submit__arrow {
  font-size: 17px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.eq-submit:hover .eq-submit__arrow,
.eq-submit:focus-visible .eq-submit__arrow {
  transform: translateX(10px);
}

.eq__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 19px;
}

.eq__foot p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(27, 26, 23, 0.66);
}

.eq__foot a {
  color: rgba(27, 26, 23, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(27, 26, 23, 0.3);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.eq__foot a:hover {
  color: var(--ink);
  border-color: var(--bronze);
}

/* ---------- holding state ---------- */

.eq-done {
  outline: none;
}

.eq-done .mono-label {
  color: rgba(27, 26, 23, 0.62);
  display: block;
  margin-bottom: clamp(18px, 2.8vh, 28px);
}

.eq-done__title {
  margin: 0 0 clamp(18px, 2.8vh, 26px);
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eq-done p {
  margin: 0 0 16px;
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.62;
  color: rgba(27, 26, 23, 0.74);
  max-width: 52ch;
}

.eq-back {
  margin-top: clamp(18px, 2.6vh, 28px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0 0 6px;
  font-family: var(--font-mono), monospace;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(27, 26, 23, 0.75);
  border-bottom: 1px solid rgba(27, 26, 23, 0.35);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.eq-back:hover {
  color: var(--ink);
  border-color: var(--bronze);
}

/* ---------- honeypot ---------- */

.eq-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- autofill ---------- */

.eq-control:-webkit-autofill,
.eq-control:-webkit-autofill:hover,
.eq-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #faf6ee inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--bronze);
  transition: background-color 9999s ease-out 0s;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .eq {
    --eq-top: 0px;
  }

  .eq__grid {
    display: block;
  }

  .eq__panel {
    background: var(--ink);
    overflow: hidden;
    min-height: clamp(440px, 62svh, 580px);
  }

  .eq__panel-media {
    left: 0;
  }

  .eq__panel-media img {
    height: 100%;
    bottom: 0;
    object-position: center 42%;
  }

  .eq__panel-inner {
    min-height: 0;
    padding: calc(var(--header-h) + clamp(30px, 5vh, 48px)) 0 clamp(36px, 5.5vh, 56px);
  }

  .eq__guide {
    margin-top: clamp(28px, 4.5vh, 44px);
    max-width: 520px;
  }

  .eq__sheet {
    padding: clamp(52px, 7.5vh, 84px) 0 clamp(64px, 8.5vh, 104px);
  }
}

@media (max-width: 720px) {
  .eq__title {
    font-size: clamp(2.65rem, 12.2vw, 3.4rem);
  }

  .eq__panel {
    min-height: clamp(420px, 66svh, 540px);
  }

  .eq__guide li {
    font-size: 14.5px;
  }

  .eq-row {
    display: block;
  }

  .eq-control {
    height: 58px;
    font-size: 16.5px;
  }

  textarea.eq-control {
    min-height: 180px;
  }

  .eq-radio {
    flex: 1;
    justify-content: center;
    padding: 0 16px;
  }

  .eq-submit {
    height: 62px;
    padding: 0 20px;
  }

  .eq__form-title {
    text-wrap: balance;
  }

  .eq__head-row {
    flex-wrap: wrap;
  }

  .eq__head-line {
    display: none;
  }

  .eq-summary a,
  .eq__foot a {
    display: inline-block;
    padding-block: 3px;
    margin-block: -3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eq-submit::before,
  .eq-submit__label,
  .eq-submit__arrow,
  .eq-field__wrap::after {
    transition-duration: 0.15s;
  }
}

/* Elementor-owned composition: keep the approved 12-column enquiry grid while
   allowing the panel and form to remain separate Elementor widgets. */
.eq__grid.elementor-element {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 3.6vw, 64px);
  align-items: stretch;
}
.eq__grid .elementor-widget-dorina_enquire_panel,
.eq__grid .elementor-widget-dorina_enquire_form,
.eq__grid .elementor-widget-dorina_enquire_panel > .elementor-widget-container,
.eq__grid .elementor-widget-dorina_enquire_form > .elementor-widget-container {
  display: contents;
}
@media (max-width: 1100px) {
  .eq__grid.elementor-element { display: block !important; }
}
