/* Contact form modal — shared by home and inner pages */
.fcs-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.fcs-contact-modal.is-open {
  display: flex;
}

.fcs-contact-modal-open {
  overflow: hidden;
}

.fcs-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.fcs-contact-modal__panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(92vh, 880px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2a2a2a;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

.fcs-contact-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.fcs-contact-modal__close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.fcs-contact-modal__body {
  padding: 1.75rem 1.5rem 1.5rem;
}

.fcs-contact-form__title {
  margin: 0 0 0.5rem;
  font-family: Revelstoke, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--white);
}

.fcs-contact-form__lead {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  max-width: 52ch;
}

.fcs-contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.fcs-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fcs-contact-form__field label {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.fcs-contact-form__field input,
.fcs-contact-form__field select,
.fcs-contact-form__field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 10px 12px;
  font: inherit;
}

.fcs-contact-form__field select {
  color-scheme: dark;
}

.fcs-contact-form__field select option {
  background: #1a1a1a;
  color: #f5f5f5;
}

.fcs-contact-custom-select {
  position: relative;
  width: 100%;
}

.fcs-contact-custom-select__trigger {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 10px 36px 10px 12px;
  font: inherit;
  cursor: pointer;
  position: relative;
}

.fcs-contact-custom-select__trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.fcs-contact-custom-select__trigger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.fcs-contact-custom-select__trigger[aria-invalid="true"] {
  border-color: #ffb4b4;
}

.fcs-contact-custom-select__list {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #1e1e1e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.fcs-contact-custom-select__option {
  padding: 10px 12px;
  color: #f2f2f2;
  cursor: pointer;
}

.fcs-contact-custom-select__option:hover,
.fcs-contact-custom-select__option:focus {
  background: rgba(176, 48, 52, 0.35);
  color: #fff;
  outline: none;
}

.fcs-contact-custom-select.is-open .fcs-contact-custom-select__trigger {
  border-color: var(--red);
}

.fcs-contact-form__field textarea {
  resize: vertical;
  min-height: 112px;
}

.fcs-contact-form__field input:focus-visible,
.fcs-contact-form__field select:focus-visible,
.fcs-contact-form__field textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.fcs-contact-form__field:has(textarea) {
  grid-column: 1 / -1;
}

.fcs-contact-form__error {
  margin: 0;
  min-height: 1.1em;
  font-size: 0.8125rem;
  color: #ffb4b4;
}

.fcs-contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fcs-contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.fcs-contact-form__status {
  margin-top: 1rem;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
}

.fcs-contact-form__status--error {
  border-color: rgba(176, 48, 52, 0.55);
  color: #ffb4b4;
}

@media (max-width: 640px) {
  .fcs-contact-modal {
    align-items: flex-end;
    padding: 0;
  }

  .fcs-contact-modal__panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 12px 12px 0 0;
  }

  .fcs-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .fcs-contact-form__actions .btn {
    width: 100%;
  }
}
