/* ==========================================================
   Contact page (uses tokens, buttons and reveal animations from aurex-service.css)
   ========================================================== */

/* ---------- Hero: brand red + chat intro ---------- */
.ct-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(140px, 15vw, 190px) 0 clamp(70px, 9vw, 110px);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(15, 26, 42, 0.35), transparent 45%),
    linear-gradient(135deg, var(--svc-brand) 0%, var(--svc-brand-dark) 100%);
  color: #fff;
}
.ct-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(110deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(110deg, #000 0%, transparent 55%);
  content: "";
}
.ct-hero::after {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: -40%;
  width: 46vw;
  max-width: 620px;
  aspect-ratio: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
  animation: ct-spin-slow 40s linear infinite;
}
.ct-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}
.ct-hero__crumb li,
.ct-hero__crumb a,
.ct-hero__crumb [aria-current] {
  color: rgba(255, 255, 255, 0.85);
}
.ct-hero__crumb li + li::before {
  color: rgba(255, 255, 255, 0.5);
}
.ct-hero__crumb a:hover {
  color: #fff;
}
.ct-hero__eyebrow {
  color: #fff;
}
.ct-hero__eyebrow span {
  background: #fff;
}
.ct-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--aurex-display, inherit);
  font-size: clamp(42px, 5.8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.ct-hero h1 em {
  padding-right: 0.06em;
  color: var(--svc-navy);
  font-family: var(--aurex-serif, serif);
  font-size: 1.1em;
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
}
.ct-hero__lead {
  max-width: 540px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}
.ct-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 34px;
}
.ct-btn--white {
  padding: 0 8px 0 26px;
  background: #fff;
  color: var(--svc-ink);
  box-shadow: 0 14px 30px rgba(15, 26, 42, 0.22);
}
.ct-btn--white span {
  background: var(--svc-ink);
  color: #fff;
}
.ct-btn--white:hover,
.ct-btn--white:focus-visible {
  color: var(--svc-brand);
}
.ct-btn--white:hover span {
  transform: translateY(3px);
}
.ct-btn--white:focus-visible {
  outline-color: #fff;
}
.ct-hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.ct-hero__phone span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color 250ms ease, color 250ms ease;
}
.ct-hero__phone:hover {
  color: #fff;
}
.ct-hero__phone:hover span {
  background: #fff;
  color: var(--svc-brand);
}
.ct-hero__content > * {
  animation: svc-rise 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.ct-hero__content > :nth-child(2) { animation-delay: 100ms; }
.ct-hero__content > :nth-child(3) { animation-delay: 200ms; }
.ct-hero__content > :nth-child(4) { animation-delay: 320ms; }
.ct-hero__content > :nth-child(5) { animation-delay: 440ms; }

/* Chat card */
.ct-chat {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  color: var(--svc-ink);
  box-shadow: 0 40px 80px rgba(15, 26, 42, 0.3);
  transform: rotate(2deg);
  animation: svc-pop 900ms 200ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.ct-chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--svc-line);
}
.ct-chat__head img {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 50%;
  background: var(--svc-brand-soft);
  object-fit: contain;
}
.ct-chat__head strong {
  display: block;
  font-size: 15px;
}
.ct-chat__head small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--svc-text);
  font-size: 12px;
}
.ct-chat__head small i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.ct-chat__body {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 59, 79, 0.06), transparent 50%),
    #fafafd;
}
.ct-msg {
  max-width: 82%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0;
  animation: ct-msg-in 500ms var(--d, 0s) cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}
.ct-msg--in {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(26, 48, 73, 0.07);
}
.ct-msg--out {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--svc-brand);
  color: #fff;
}
.ct-msg--typing {
  display: inline-flex;
  align-self: flex-start;
  gap: 5px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(26, 48, 73, 0.07);
}
.ct-msg--typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b7bcc6;
  animation: ct-typing 1.2s ease-in-out infinite;
}
.ct-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.ct-msg--typing i:nth-child(3) { animation-delay: 0.3s; }

/* ---------- Main: info + form ---------- */
.ct-main {
  position: relative;
  padding: clamp(70px, 9vw, 110px) 0;
  background: var(--svc-bg);
}
.ct-main__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}
.ct-info {
  display: grid;
  gap: 20px;
}
.ct-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ct-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--svc-line);
  border-radius: 20px;
  background: #fff;
  color: var(--svc-ink);
  text-decoration: none;
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
a.ct-card:hover,
a.ct-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 79, 0.35);
  box-shadow: 0 18px 36px rgba(255, 59, 79, 0.12);
  color: var(--svc-ink);
}
a.ct-card:focus-visible {
  outline: 2px solid var(--svc-brand);
  outline-offset: 3px;
}
.ct-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--svc-brand-soft);
  color: var(--svc-brand);
  font-size: 22px;
  transition: background-color 300ms ease, color 300ms ease, transform 300ms ease;
}
a.ct-card:hover .ct-card__icon {
  background: var(--svc-brand);
  color: #fff;
  transform: rotate(-8deg);
}
.ct-card small {
  display: block;
  color: #8a93a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ct-card strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  word-break: break-word;
}
.ct-next {
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 59, 79, 0.25), transparent 45%),
    var(--svc-navy);
  color: #fff;
}
.ct-next h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.ct-next ol {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-next ol::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 17px;
  border-left: 2px dotted rgba(255, 255, 255, 0.25);
  content: "";
}
.ct-next li {
  position: relative;
  display: flex;
  gap: 16px;
}
.ct-next b {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--svc-brand);
  font-size: 13px;
}
.ct-next span {
  color: #a9b6c7;
  font-size: 14px;
  line-height: 1.6;
}
.ct-next strong {
  display: block;
  color: #fff;
  font-size: 15.5px;
}
.ct-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ct-social span {
  margin-right: 6px;
  color: var(--svc-text);
  font-size: 13px;
  font-weight: 700;
}
.ct-social a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--svc-line);
  border-radius: 50%;
  background: #fff;
  color: var(--svc-ink);
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}
.ct-social a:hover,
.ct-social a:focus-visible {
  border-color: var(--svc-brand);
  background: var(--svc-brand);
  color: #fff;
}

/* Form */
.ct-form {
  padding: clamp(26px, 4vw, 48px);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(26, 48, 73, 0.09);
}
.ct-form__head h2 {
  margin: 0;
  color: var(--svc-ink);
  font-family: var(--aurex-display, inherit);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.ct-form__head p {
  margin: 8px 0 0;
  color: var(--svc-text);
  font-size: 15px;
}
.ct-form fieldset {
  margin: 30px 0 0;
  padding: 0;
  border: 0;
}
.ct-form legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--svc-ink);
  font-size: 15px;
  font-weight: 800;
}
.ct-form legend b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--svc-brand);
  color: #fff;
  font-size: 12px;
}
.ct-form legend small {
  color: #8a93a3;
  font-size: 12px;
  font-weight: 600;
}
.ct-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ct-pills legend {
  width: 100%;
}
.ct-pills label {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.ct-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ct-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--svc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--svc-ink);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.ct-pills label:hover span {
  border-color: var(--svc-brand);
}
.ct-pills input:checked + span {
  border-color: var(--svc-brand);
  background: var(--svc-brand);
  color: #fff;
  transform: scale(1.03);
}
.ct-pills input:checked + span::before {
  content: "\2713";
  font-size: 12px;
}
.ct-pills input:focus-visible + span {
  outline: 2px solid var(--svc-brand);
  outline-offset: 2px;
}
.ct-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ct-fields legend {
  grid-column: 1 / -1;
}
/* Floating-label inputs */
.ct-field {
  position: relative;
  margin: 0;
}
.ct-field--full {
  grid-column: 1 / -1;
}
.ct-field input,
.ct-field textarea {
  width: 100%;
  padding: 24px 16px 10px;
  border: 1.5px solid var(--svc-line);
  border-radius: 14px;
  background: #fafafd;
  color: var(--svc-ink);
  font-size: 15px;
  outline: none;
  resize: vertical;
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}
.ct-field span {
  position: absolute;
  top: 17px;
  left: 17px;
  color: #8a93a3;
  font-size: 15px;
  pointer-events: none;
  transition: top 200ms ease, font-size 200ms ease, color 200ms ease;
}
.ct-field input:focus,
.ct-field textarea:focus {
  border-color: var(--svc-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 59, 79, 0.1);
}
.ct-field input:focus + span,
.ct-field input:not(:placeholder-shown) + span,
.ct-field textarea:focus + span,
.ct-field textarea:not(:placeholder-shown) + span {
  top: 8px;
  color: var(--svc-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ct-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed #e4e1ec;
}
.ct-form__foot p {
  max-width: 300px;
  margin: 0;
  color: #8a93a3;
  font-size: 13px;
}
.ct-form__foot .svc-btn {
  border: 0;
  cursor: pointer;
}

/* ---------- Map ---------- */
.ct-map {
  position: relative;
  height: 460px;
  background: #e9ecf2;
}
.ct-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter 500ms ease;
}
.ct-map:hover iframe {
  filter: grayscale(0.2);
}
.ct-map .container {
  position: relative;
  height: 100%;
  pointer-events: none;
}
.ct-map__card {
  position: absolute;
  top: 50%;
  left: 12px;
  display: flex;
  gap: 16px;
  max-width: 340px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(26, 48, 73, 0.18);
  transform: translateY(-50%);
  pointer-events: auto;
}
.ct-map__card small {
  color: var(--svc-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ct-map__card strong {
  display: block;
  margin-top: 4px;
  color: var(--svc-ink);
  font-size: 18px;
  font-weight: 800;
}
.ct-map__card p {
  margin: 4px 0 10px;
  color: var(--svc-text);
  font-size: 14.5px;
}
.ct-map__card a {
  color: var(--svc-brand);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- FAQ ---------- */
.ct-faq {
  padding: clamp(80px, 10vw, 120px) 0;
  background: #fff;
}
.ct-faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(30px, 5vw, 70px);
}
.ct-faq .svc-heading--left {
  margin: 0;
  text-align: left;
}
.ct-faq__intro {
  margin: 14px 0 0;
  color: var(--svc-text);
  font-size: 16px;
  line-height: 1.7;
}
.ct-faq__list {
  display: grid;
  gap: 12px;
}
.ct-faq details {
  border: 1px solid var(--svc-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.ct-faq details[open] {
  border-color: rgba(255, 59, 79, 0.35);
  box-shadow: 0 16px 34px rgba(255, 59, 79, 0.08);
}
.ct-faq summary {
  position: relative;
  padding: 20px 60px 20px 24px;
  color: var(--svc-ink);
  font-size: 17px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.ct-faq summary::-webkit-details-marker {
  display: none;
}
.ct-faq summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--svc-brand-soft);
  color: var(--svc-brand);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 300ms ease, background-color 300ms ease, color 300ms ease;
  content: "+";
}
.ct-faq details[open] summary::after {
  background: var(--svc-brand);
  color: #fff;
  transform: translateY(-50%) rotate(45deg);
}
.ct-faq summary:focus-visible {
  outline: 2px solid var(--svc-brand);
  outline-offset: -2px;
  border-radius: 18px;
}
.ct-faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--svc-text);
  font-size: 15.5px;
  line-height: 1.75;
  animation: svc-rise 400ms ease both;
}

/* ---------- Keyframes ---------- */
@keyframes ct-msg-in {
  from { opacity: 0; translate: 0 12px; scale: 0.96; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes ct-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes ct-spin-slow {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .ct-hero__layout,
  .ct-main__layout,
  .ct-faq__layout {
    grid-template-columns: 1fr;
  }
  .ct-chat {
    max-width: 480px;
    transform: none;
  }
  .ct-map__card {
    top: auto;
    bottom: 20px;
    transform: none;
  }
}
@media (max-width: 575px) {
  .ct-cards,
  .ct-fields {
    grid-template-columns: 1fr;
  }
  .ct-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ct-btn--white {
    justify-content: space-between;
  }
  .ct-form__foot .svc-btn {
    width: 100%;
    justify-content: space-between;
  }
  .ct-map {
    height: 420px;
  }
  .ct-map__card {
    right: 12px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-hero::after,
  .ct-hero__content > *,
  .ct-chat,
  .ct-msg,
  .ct-msg--typing i,
  .ct-faq details p {
    animation: none;
    opacity: 1;
  }
  .ct-card,
  .ct-card__icon,
  .ct-pills span,
  .ct-map iframe {
    transition: none;
  }
}

/* ---------- Hero v2: shares the About page hero (ab-hero in aurex-about.css) ---------- */
.ct-hero2 .ab-hero__bg {
  object-position: center 40%;
}
.ct-hero2 .ab-hero__stats li {
  padding: 0;
}
.ct-hero2 .ab-hero__stats a {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px 34px;
  color: inherit;
  text-decoration: none;
  transition: background 250ms ease;
}
.ct-hero2 .ab-hero__stats strong {
  font-size: clamp(22px, 2.2vw, 30px);
  transition: color 250ms ease;
}
.ct-hero2 .ab-hero__stats span {
  overflow-wrap: anywhere;
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 14px;
}
.ct-hero2 .ab-hero__stats a:hover,
.ct-hero2 .ab-hero__stats a:focus-visible {
  background: rgba(255, 59, 79, 0.1);
}
.ct-hero2 .ab-hero__stats a:hover strong,
.ct-hero2 .ab-hero__stats a:focus-visible strong {
  color: #ff5a69;
}
@media (max-width: 767px) {
  .ct-hero2 .ab-hero__stats a {
    padding: 22px 16px 26px;
  }
}
