/* Contact template: layout follows the supplied reference while inheriting theme tokens. */
.contact-page {
  background: var(--bg);
}

.contact-page p {
  color: var(--mid);
}

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 130px) 0;
  text-align: center;
  background: var(--off);
  border-bottom: 1px solid var(--border);
}

.contact-hero__glow {
  position: absolute;
  inset: auto 15% -70% 15%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(232, 25, 44, 0.18), transparent 68%);
  pointer-events: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
}

.contact-hero__eyebrow {
  justify-content: center;
}

.contact-hero__eyebrow::before {
  display: none;
}

.contact-hero h1 {
  max-width: 1000px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(54px, 7vw, 110px);
  line-height: 0.94;
}

.contact-hero h1 em {
  color: var(--red);
  font-style: normal;
}

.contact-hero__description {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--light);
  font-family: var(--fu);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.contact-action span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.contact-action:hover,
.contact-action:focus-visible,
.contact-action--primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.contact-details {
  background: var(--bg);
}

.contact-details__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: start;
  gap: 28px;
}

.contact-form-card,
.contact-calendar-card,
.contact-channels-card,
.contact-office-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.contact-card-header {
  padding: clamp(26px, 4vw, 42px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.contact-card-header h2 {
  margin-bottom: 8px;
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1;
}

.contact-card-header p {
  max-width: 680px;
  margin: 0;
}

.contact-form-card__body {
  padding: clamp(26px, 4vw, 38px);
  padding-top: 24px;
  padding-bottom: 24px;
}

.contact-editor-note {
  padding: 18px;
  border: 1px dashed rgba(232, 25, 44, 0.5);
  color: var(--light) !important;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-calendar-card__header,
.contact-channel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
}

.contact-calendar-card h3,
.contact-channel-header h3,
.contact-office-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.25;
}

.contact-calendar-card__header p,
.contact-channel-header p {
  margin: 0;
  font-size: 12px;
}

.contact-card-icon,
.contact-channel__icon,
.contact-office-item > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--red-glow);
  color: var(--red);
  font-family: var(--fu);
  font-weight: 700;
}

.contact-calendly-embed iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  border: 0;
  background: #fff;
}

.contact-calendly-placeholder {
  display: flex;
  min-height: 420px;
  padding: 44px 28px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.contact-calendly-placeholder > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(232, 25, 44, 0.35);
  border-radius: 50%;
  background: var(--red-glow);
  color: var(--red);
  font-size: 24px;
}

.contact-calendly-placeholder strong {
  color: var(--white);
  font-family: var(--fu);
}

.contact-calendly-placeholder p {
  max-width: 270px;
  margin: 8px 0 0;
  font-size: 13px;
}

.contact-channel-list {
  padding: 8px;
}

.contact-channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 10px;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease;
}

.contact-channel + .contact-channel {
  border-top: 1px solid var(--border);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.contact-channel:hover,
.contact-channel:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.contact-channel__icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-channel__icon svg {
  width: 18px;
  height: 18px;
}

.contact-channel__icon--whatsapp svg {
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-channel__icon--whatsapp svg path + path {
  fill: currentColor;
  stroke: none;
}

.contact-channel strong,
.contact-channel small {
  display: block;
  overflow-wrap: anywhere;
}

.contact-channel strong {
  font-family: var(--fu);
  font-size: 13px;
}

.contact-channel small {
  margin-top: 1px;
  color: var(--mid);
  font-size: 12px;
}

.contact-channel__arrow {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--mid);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.contact-channel__arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-channel:hover .contact-channel__arrow,
.contact-channel:focus-visible .contact-channel__arrow {
  border-color: var(--red);
  background: var(--red-glow);
  color: var(--red);
  transform: translateX(2px);
}

.contact-office-card {
  padding: 24px;
}

.contact-office-card h3 {
  margin-bottom: 20px;
  color: var(--mid);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.contact-office-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-office-item + .contact-office-item {
  margin-top: 18px;
}

.contact-office-item > span {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-office-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--mid);
  font-family: var(--fu);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-office-item p {
  margin: 0;
  color: var(--light);
  font-size: 13px;
  line-height: 1.6;
}

/* Generic form-plugin styling inside this template. */
.contact-form-card :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: var(--white) !important;
  font-family: var(--fb) !important;
}

.contact-form-card :is(input, select, textarea):focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-glow) !important;
}

.contact-form-card :is(label, legend) {
  color: var(--light) !important;
  font-family: var(--fu);
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* Restore Fluent Forms required marks hidden by the global theme rule. */
.contact-form-card .ff-el-input--label.ff-el-is-required > label::after,
.contact-form-card .ff-el-input--label.ff-el-is-required > .ff-el-form-label::after {
  content: " *" !important;
  display: inline !important;
  margin-left: 2px;
  color: var(--red) !important;
  font: inherit;
}

/* Services checkbox group — match the supplied rounded-pill design. */
.contact-form-card .ff_list_inline > .ff-el-input--content {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.contact-form-card .ff_list_inline .ff-el-form-check {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.contact-form-card .ff_list_inline .ff-el-form-check-label {
  display: inline-flex !important;
  min-height: 40px;
  margin: 0 !important;
  padding: 8px 15px !important;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--light) !important;
  font-family: var(--fb) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.contact-form-card .ff_list_inline .ff-el-form-check-label:hover {
  border-color: rgba(232, 25, 44, 0.55);
  background: var(--red-glow);
  color: var(--white) !important;
}

.contact-form-card .ff_list_inline input.ff-el-form-check-input[type="checkbox"] {
  display: inline-block !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  outline: none !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
}

.contact-form-card .ff_list_inline input.ff-el-form-check-input[type="checkbox"]::before,
.contact-form-card .ff_list_inline input.ff-el-form-check-input[type="checkbox"]::after {
  display: none !important;
  content: none !important;
}

.contact-form-card .ff_list_inline input.ff-el-form-check-input[type="checkbox"]:checked {
  border-color: var(--red) !important;
  background: var(--red) !important;
  box-shadow: inset 0 0 0 3px var(--off) !important;
}

.contact-form-card .ff_list_inline .ff-el-form-check-label:has(input:checked) {
  border-color: var(--red);
  background: rgba(232, 25, 44, 0.1);
  color: var(--red) !important;
}

.contact-form-card .ff_list_inline input.ff-el-form-check-input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--red) !important;
  outline-offset: 3px !important;
}

.contact-form-card :is(button[type="submit"], input[type="submit"], .ff-btn-submit, .wpcf7-submit) {
  border: 0 !important;
  background: var(--red) !important;
  color: #fff !important;
  font-family: var(--fu) !important;
  font-weight: 700 !important;
}

.contact-process {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--char);
}

.contact-section-header {
  max-width: 760px;
  margin: 0 auto clamp(44px, 6vw, 70px);
  text-align: center;
}

.contact-section-header h2 {
  margin-bottom: 10px;
}

.contact-section-header p {
  max-width: 560px;
  margin: 0 auto;
}

.contact-process__steps {
  display: grid;
  position: relative;
  grid-template-columns: repeat(4, 1fr);
}

.contact-process__steps::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 11%;
  left: 11%;
  height: 1px;
  background: linear-gradient(90deg, var(--border), rgba(232, 25, 44, 0.55), var(--border));
}

.contact-process__step {
  padding: 0 22px;
  text-align: center;
}

.contact-process__number {
  display: grid;
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: var(--char);
  color: var(--white);
  font-family: var(--fd);
  font-size: 22px;
  transition: 0.2s ease;
}

.contact-process__step:hover .contact-process__number {
  border-color: var(--red);
  background: var(--red);
}

.contact-process__step h3 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.contact-process__step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.contact-faq {
  background: var(--off);
}

.contact-faq__grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
  gap: clamp(45px, 8vw, 100px);
}

.contact-faq__intro h2 {
  margin-bottom: 14px;
}

.contact-faq__intro h2 em {
  color: var(--red);
  font-style: normal;
}

.contact-faq__intro p {
  margin-bottom: 22px;
}

.contact-faq__link {
  color: var(--red);
  font-family: var(--fu);
  font-size: 16px;
  font-weight: 700;
}

.contact-faq__list {
  border-top: 1px solid var(--border);
}

.contact-faq__item {
  border-bottom: 1px solid var(--border);
}

.contact-faq__question {
  display: flex;
  width: 100%;
  padding: 20px 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--fu);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.contact-faq__icon {
  position: relative;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 0.28s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.contact-faq__icon::before,
.contact-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--light);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background 0.22s ease;
}

.contact-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.contact-faq__question:hover,
.contact-faq__question:focus-visible,
.contact-faq__item.is-open .contact-faq__question {
  color: var(--red);
}

.contact-faq__item:hover .contact-faq__icon,
.contact-faq__question:focus-visible .contact-faq__icon,
.contact-faq__item.is-open .contact-faq__icon {
  border-color: rgba(232, 25, 44, 0.3);
  background: rgba(232, 25, 44, 0.14);
  box-shadow: 0 10px 22px rgba(232, 25, 44, 0.16);
}

.contact-faq__item:hover .contact-faq__icon::before,
.contact-faq__item:hover .contact-faq__icon::after,
.contact-faq__question:focus-visible .contact-faq__icon::before,
.contact-faq__question:focus-visible .contact-faq__icon::after,
.contact-faq__item.is-open .contact-faq__icon::before,
.contact-faq__item.is-open .contact-faq__icon::after {
  background: var(--white);
}

.contact-faq__item.is-open .contact-faq__icon {
  transform: rotate(180deg);
}

.contact-faq__item.is-open .contact-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.contact-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.25s ease, opacity 0.25s ease;
}
.is-open .contact-faq__answer {
  padding-bottom: 1rem;
}
.contact-faq__answer > div {
  overflow: hidden;
  color: var(--mid);
  font-size: 14px;
  line-height: 1.75;
}

.contact-faq__answer p {
  margin: 0 0 20px;
}

.contact-faq__item.is-open .contact-faq__answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (max-width: 1024px) {
  .contact-details__grid {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .contact-process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 0;
  }

  .contact-process__steps::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .contact-details__grid,
  .contact-faq__grid {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-calendar-card {
    grid-row: span 2;
  }
}

@media (max-width: 620px) {
  .contact-hero {
    padding: 62px 0;
  }

  .contact-hero h1 {
    font-size: clamp(48px, 17vw, 70px);
  }

  .contact-hero__actions {
    align-items: center;
    /* flex-direction: column; */
  }

  .contact-action {
    justify-content: center;
    width: auto;
    max-width: 100%;
  }

  .contact-sidebar,
  .contact-process__steps {
    grid-template-columns: 1fr;
  }

  .contact-card-header,
  .contact-form-card__body {
    padding: 24px;
  }

  .contact-calendly-placeholder {
    min-height: 300px;
  }

  .contact-process__step {
    padding: 0;
  }

  .contact-process__number {
    margin-bottom: 14px;
  }

  .contact-form-card .ff_list_inline .ff-el-form-check-label {
    min-height: 38px;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
