/* Contact page — Dreamview layout + Joomla form overrides */
body[id="body-115"] .content > .wrapper {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
body[id="body-115"] .content > .wrapper > .row {
  margin: 0;
  padding: 0;
  display: block;
}
body[id="body-115"] .com-contact.contact {
  max-width: none;
  width: 100%;
  overflow-x: clip;
}
body[id="body-115"] .container {
  width: min(var(--max, 1200px), calc(100% - 52px));
  margin-inline: auto;
  position: relative;
}
body[id="body-115"] .btn,
body[id="body-115"] a.btn {
  text-decoration: none;
}

/* Override legacy .contact-hero { background:#fff } — must win over single-class rules */
body[id="body-115"] .inner-hero.contact-hero,
body[id="body-115"] .dreamview-contact .contact-hero {
  background: #171c20 !important;
  color: #fff !important;
  padding: 0 !important;
  text-align: initial !important;
  min-height: 600px;
}
body[id="body-115"] .contact-hero__title,
body[id="body-115"] .contact-hero__subtitle {
  display: none !important;
}

.dreamview-contact-form .form-grid input,
.dreamview-contact-form .form-grid textarea,
.dreamview-contact-form .form-grid select,
.dreamview-contact-form input[type="text"],
.dreamview-contact-form input[type="email"],
.dreamview-contact-form input[type="tel"],
.dreamview-contact-form textarea,
.dreamview-contact-form select {
  display: block;
  width: 100%;
  border: 1px solid #dadcd9;
  border-radius: 9px;
  background: #fcfcfa;
  padding: 14px 15px;
  font: 500 15px "Assistant", sans-serif;
  color: #1e2628;
  min-height: 50px;
  box-sizing: border-box;
}
.dreamview-contact-form textarea {
  resize: vertical;
  min-height: 130px;
}
.dreamview-contact-form input:focus,
.dreamview-contact-form textarea:focus,
.dreamview-contact-form select:focus {
  outline: 2px solid #e6b35d;
  border-color: #f2b145;
}

.dreamview-contact-form .form-submit,
.dreamview-contact-form .btn.btn-primary.form-submit,
.dreamview-contact-form button.btn.btn-primary {
  width: 100%;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: "Rubik", sans-serif;
  color: #171c20;
  background: var(--amber, #f5a51e);
  transition: transform 0.2s, background 0.2s;
}
.dreamview-contact-form .btn.btn-primary:hover {
  background: #ffc14a;
  transform: translateY(-3px);
  color: #171c20;
}

.website-field,
.hp-wrap {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

#contact-form textarea.g-recaptcha-response,
.contact-form textarea.g-recaptcha-response,
textarea.g-recaptcha-response {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}

.captcha-reg {
  margin: 18px 0;
  max-width: 100%;
  overflow-x: clip;
}

.success-msg,
.error-msg,
.warning-msg {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.success-msg {
  background: #ecfdf5;
  color: #065f46;
}
.error-msg {
  background: #fef2f2;
  color: #991b1b;
}
.warning-msg {
  background: #fffbeb;
  color: #92400e;
}

.error-tooltip {
  position: absolute;
  inset-inline-start: 0;
  top: -22px;
  background: #991b1b;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

@media (max-width: 850px) {
  body[id="body-115"] .container {
    width: min(var(--max, 1200px), calc(100% - 36px));
  }
}
@media (max-width: 560px) {
  body[id="body-115"] .container {
    width: calc(100% - 32px);
  }
}
