/* Contact page — clean two-column layout */

.contact-page-section {
  width: 100%;
  max-width: 100vw;
  display: block;
  overflow: visible;
  padding: 0 0 4rem;
  background: var(--fm-color-bg, #f0f0f0);
}

.contact-layout {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  /* Stretch so left column (card + map) matches form panel height */
  align-items: stretch;
}

/* ——— Aside: company + map ——— */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  height: 100%;
}

.contact-aside__card {
  background: #111827;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 1.15rem;
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.contact-aside__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 166, 77, 0.95);
}

.contact-aside__name {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.contact-aside__brand {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.contact-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-aside__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-aside__icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.contact-aside__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.15rem;
}

.contact-aside__list a,
.contact-aside__list span:not(.contact-aside__label):not(.contact-aside__icon) {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 500;
}

.contact-aside__list a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-aside__reg {
  display: inline-block;
  margin-top: 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
}

.contact-aside__reg:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.contact-aside__map {
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(51, 51, 51, 0.08);
  background: #e5e7eb;
  /* Fill leftover column height so bottom of map lines up with form */
  flex: 1 1 auto;
  min-height: 220px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.contact-aside__map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ——— Form panel ——— */
.contact-form-panel {
  background: #fff;
  border-radius: 1.15rem;
  border: 1px solid rgba(51, 51, 51, 0.08);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.06);
  padding: clamp(1.35rem, 3vw, 2rem);
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.contact-form-panel__head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
}

.contact-form-panel__head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: var(--fm-color-text, #333);
  line-height: 1.2;
}

.contact-form-panel__head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fm-color-text-muted, #4e4e4e);
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cf-grid {
  display: grid;
  gap: 0.9rem;
}

.cf-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.cf-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fm-color-text, #333);
}

.cf-field input,
.cf-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(51, 51, 51, 0.14);
  border-radius: 0.65rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fafafa;
  color: var(--fm-color-text, #333);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: rgba(42, 111, 151, 0.55);
  box-shadow: 0 0 0 3px rgba(42, 111, 151, 0.12);
}

.cf-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

/* Process chips */
.cf-process {
  margin: 0;
  padding: 0;
  border: 0;
}

.cf-process legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fm-color-text, #333);
  margin-bottom: 0.25rem;
  padding: 0;
}

.cf-process__hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--fm-color-text-muted, #4e4e4e);
}

.cf-process__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cf-chip {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.cf-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cf-chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 51, 51, 0.14);
  background: #f7f7f8;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fm-color-text, #333);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cf-chip:hover span {
  border-color: rgba(42, 111, 151, 0.4);
}

.cf-chip input:checked + span {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.cf-chip input:focus-visible + span {
  outline: 2px solid rgba(42, 111, 151, 0.45);
  outline-offset: 2px;
}

.cf-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--fm-color-text-muted, #4e4e4e);
  line-height: 1.45;
}

.cf-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.cf-actions__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.cf-turnstile-host {
  min-height: 65px;
  min-width: min(100%, 300px);
}

.cf-turnstile-host:empty {
  min-height: 0;
  min-width: 0;
}

#form-submit {
  border: 0;
  cursor: pointer;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(90deg, #ff6a00, #ee0979);
  box-shadow: 0 6px 18px rgba(238, 9, 121, 0.22);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

#form-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

#form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.cf-mail-fallback {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2a6f97;
  text-decoration: none;
}

.cf-mail-fallback:hover {
  text-decoration: underline;
}

/* Honeypot */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.form-status {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-status.is-error {
  background: #fdecea;
  color: #b42318;
}

.form-status.is-info {
  background: #eef4ff;
  color: #1849a9;
}

.form-status.is-success {
  background: #e8f8ef;
  color: #067647;
}

/* Success page helpers */
.returnbtn {
  width: 300px;
  max-width: 100%;
  height: 50px;
  font-size: 18px;
  border-radius: 25px;
  margin-top: 25px;
}

.returnbtn-outline {
  background-color: transparent;
  border: 1px solid #0d6efd;
  color: #0d6efd;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.success-copy {
  min-height: 220px;
  padding-bottom: 2rem;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-aside {
    order: 2;
    height: auto;
  }

  .contact-aside__map {
    flex: 0 0 auto;
    min-height: 240px;
    height: 240px;
  }

  .contact-form-panel {
    order: 1;
    height: auto;
  }
}

@media (max-width: 600px) {
  .cf-grid--2 {
    grid-template-columns: 1fr;
  }

  .contact-aside__map {
    min-height: 200px;
    height: 200px;
  }
}
