.form-status.success {
  color: #b8f0c7;
}

.form-status.error {
  color: #ffd0c8;
}

.project-form button[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.site-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.guide-cover {
  max-width: 1120px;
  margin: 0 auto;
  background: #17314d;
}

.guide-cover img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

/* Contact already contains the enquiry form, so its compact footer starts directly below it. */
.contact-page {
  margin-bottom: 0;
}

.site-footer-no-enquiry {
  padding-top: 54px;
}

.site-footer-no-enquiry .footer-top {
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  padding-top: 53px;
}

.captcha-control {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.captcha-control input {
  min-width: 0;
  flex: 1;
}

.captcha-control img {
  width: 132px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #fff;
  object-fit: cover;
  cursor: pointer;
}

@media (max-width: 540px) {
  .captcha-control {
    flex-direction: column;
  }

  .captcha-control img {
    width: 100%;
    max-width: 180px;
  }
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
  margin-left: 18px;
}

.language-toggle {
  min-width: 62px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(23, 49, 77, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, background-color 0.2s;
}

.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: #fff;
}

.language-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-caret {
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
}

.language-menu {
  z-index: 60;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 24px));
  max-height: min(420px, calc(100vh - 120px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 20px 45px rgba(16, 32, 54, 0.2);
  direction: ltr;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  overflow-y: auto;
}

.language-menu:not([hidden]) {
  display: grid;
}

.language-menu button {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.25;
}

.language-menu button[dir="rtl"] {
  direction: rtl;
  text-align: left;
}

html[data-language-direction="rtl"] :where(h1, h2, h3, h4, h5, h6, p, li, dt, dd, figcaption, blockquote, summary, label, th, td) {
  direction: rtl;
  text-align: right;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button.active {
  background: rgba(232, 93, 50, 0.1);
  color: var(--accent-dark);
}

.fixed-actions {
  z-index: 28;
  display: grid;
  grid-template-columns: 52px;
  gap: 8px;
  position: fixed;
  top: 50%;
  right: clamp(14px, 2vw, 30px);
  transform: translateY(-50%);
}

.fixed-action {
  position: relative;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(16, 32, 54, 0.25);
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s;
}

.fixed-action-email {
  background: var(--accent);
  border-color: var(--accent);
}

.fixed-action:hover {
  background: #284663;
  border-color: #fff;
  transform: translateY(-2px);
}

.fixed-action-email:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.fixed-action svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fixed-action-label {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  padding: 7px 10px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  transform: translate(5px, -50%);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.fixed-action:hover .fixed-action-label,
.fixed-action:focus-visible .fixed-action-label {
  visibility: visible;
  opacity: 1;
  transform: translate(0, -50%);
}

.fixed-action-top {
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
}

.fixed-action-top.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) and (min-width: 821px) {
  .site-header {
    padding-left: 3vw;
    padding-right: 3vw;
  }

  .brand-logo {
    width: 158px;
  }

  .main-nav {
    gap: 20px;
    margin-right: 20px;
    font-size: 13px;
  }

  .language-switcher {
    margin-left: 12px;
  }
}

@media (max-width: 820px) {
  .language-switcher {
    margin-left: 12px;
  }
}

@media (max-width: 560px) {
  .language-toggle {
    min-width: 54px;
    padding: 0 8px;
  }

  .language-menu {
    position: fixed;
    top: 66px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .fixed-actions {
    grid-template-columns: 46px;
    top: auto;
    right: 12px;
    bottom: 16px;
    transform: none;
  }

  .fixed-action {
    width: 46px;
    height: 46px;
  }

  .fixed-action-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fixed-action,
  .fixed-action-label {
    transition: none;
  }
}
