/* CONTACT PAGE STYLES – loaded only on contact.php */

/* ---------- Hero ---------- */
.ct-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 150px 0 150px;
  text-align: center;
  color: #c9d4ee;
  background: var(--navy-900);
}
.ct-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 380px at 20% 20%, rgba(30, 107, 255, 0.35), transparent 65%),
    radial-gradient(560px 360px at 85% 70%, rgba(46, 230, 242, 0.16), transparent 65%);
}
.ct-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.ct-hero__inner {
  max-width: 820px;
}
.ct-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.ct-hero__inner > p {
  max-width: 620px;
  margin: 20px auto 28px;
  font-size: 17px;
  line-height: 1.65;
}
.ct-hero__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ct-hero__badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ct-hero__badges i {
  color: var(--cyan);
}

/* ---------- Contact method cards (overlap the hero) ---------- */
.ct-methods {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -80px;
}
.ct-card {
  --c: var(--blue-600);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 22px 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.4s ease;
}
.ct-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ct-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 35%, transparent);
}
.ct-card:hover::before {
  transform: scaleX(1);
}
.ct-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, #fff);
  transition:
    background 0.4s ease,
    color 0.4s ease,
    transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.ct-card:hover .ct-card__icon {
  color: #fff;
  background: var(--c);
  transform: rotate(-8deg) scale(1.05);
}
.ct-card small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ct-card > strong {
  margin: 2px 0 16px;
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.ct-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c);
}
.ct-card__link i {
  font-size: 12px;
  transition: transform 0.3s;
}
.ct-card__link:hover i {
  transform: translateX(4px);
}
.ct-card__copy {
  padding: 6px 10px;
  color: var(--ink);
  background: var(--bg-soft);
  border-color: var(--line);
}
.ct-card__copy:hover {
  background: var(--blue-50);
}

/* ---------- Main: form + side panel ---------- */
.ct-main {
  padding: 80px 0;
}
.ct-main__grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.ct-form-card {
  padding: 40px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(13, 38, 96, 0.08);
}
.ct-form-card__head h2 {
  margin: 6px 0 8px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ct-form-card__head p {
  margin-bottom: 26px;
  font-size: 15px;
  color: var(--muted);
}
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ct-form__alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
}
.ct-form__alert[hidden] {
  display: none;
}
.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* floating-label fields */
.field {
  position: relative;
  margin-bottom: 18px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 24px 16px 10px 44px;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  outline: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}
.field textarea {
  min-height: 150px;
  padding-top: 30px;
  resize: vertical;
}
.field label {
  position: absolute;
  left: 16px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    top 0.25s ease;
}
.field label i {
  width: 14px;
  font-size: 14px;
  color: #9aa6c2;
  transition: color 0.25s ease;
}
.field input:hover,
.field textarea:hover {
  background: #eef3ff;
}
.field input:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(75, 139, 255, 0.14);
}
/* float the label when focused or filled */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 8px;
  transform: scale(0.78);
  color: var(--blue-600);
}
.field input:focus + label i,
.field textarea:focus + label i,
.field input:not(:placeholder-shown) + label i,
.field textarea:not(:placeholder-shown) + label i {
  color: var(--blue-600);
}
.field__count {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}
.field__error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #d92d20;
}
.field__error:empty {
  display: none;
}
.field.has-error input,
.field.has-error textarea {
  background: #fff;
  border-color: #f97066;
}
.field.has-error label,
.field.has-error label i {
  color: #d92d20;
}
.field.is-valid input,
.field.is-valid textarea {
  border-color: #6ce9a6;
}

/* groups: services + budget */
.ct-group {
  margin: 4px 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ct-group legend {
  margin-bottom: 10px;
  padding: 0;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.ct-group legend small {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--muted);
}
.ct-chips,
.ct-budget {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ct-chip,
.ct-budget__opt {
  position: relative;
  cursor: pointer;
}
.ct-chip input,
.ct-budget__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ct-chip span,
.ct-budget__opt span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line);
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.25s ease;
}
.ct-chip span i {
  font-size: 10px;
  color: var(--muted);
  transition:
    rotate 0.3s ease,
    color 0.3s ease;
}
.ct-chip:hover span,
.ct-budget__opt:hover span {
  border-color: var(--blue-400);
  transform: translateY(-1px);
}
.ct-chip input:checked + span {
  color: #fff;
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.ct-chip input:checked + span i {
  color: #fff;
  rotate: 45deg;
}
.ct-budget__opt span {
  border-radius: 12px;
}
.ct-budget__opt input:checked + span {
  color: var(--blue-600);
  background: var(--blue-50);
  border-color: var(--blue-600);
}
.ct-chip input:focus-visible + span,
.ct-budget__opt input:focus-visible + span {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
}

/* consent */
.ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.ct-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ct-consent__box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
  border: 1.5px solid #c3cde3;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.ct-consent input:checked + .ct-consent__box {
  color: #fff;
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.ct-consent input:focus-visible + .ct-consent__box {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
}
.ct-consent.has-error .ct-consent__box {
  border-color: #f97066;
}
.ct-consent__err {
  margin-left: 34px;
}

/* submit */
.ct-form__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 24px;
}
.ct-form__foot p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.ct-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 14px 30px rgba(21, 84, 232, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s;
}
.ct-submit__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  background: #fff;
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.ct-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(21, 84, 232, 0.45);
}
.ct-submit:hover .ct-submit__icon {
  transform: translate(3px, -3px) rotate(-12deg);
}
.ct-submit__spinner {
  position: absolute;
  right: 8px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(21, 84, 232, 0.2);
  border-top-color: var(--blue-600);
  background: #fff;
  opacity: 0;
  animation: ctSpin 0.8s linear infinite;
  transition: opacity 0.2s;
}
@keyframes ctSpin {
  to {
    rotate: 360deg;
  }
}
.ct-submit.is-loading {
  pointer-events: none;
  opacity: 0.9;
}
.ct-submit.is-loading .ct-submit__spinner {
  opacity: 1;
}

/* success state */
.ct-success {
  padding: 30px 10px 10px;
  text-align: center;
}
.ct-success[hidden] {
  display: none;
}
.ct-success__icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
}
.ct-success__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ct-success__icon circle {
  stroke: var(--green);
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: ctDraw 0.7s ease forwards;
}
.ct-success__icon path {
  stroke: var(--green);
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: ctDraw 0.45s ease 0.55s forwards;
}
@keyframes ctDraw {
  to {
    stroke-dashoffset: 0;
  }
}
.ct-success h3 {
  font-size: 26px;
  font-weight: 800;
}
.ct-success p {
  max-width: 440px;
  margin: 10px auto 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.ct-success__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  border: 1.5px solid transparent;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.ct-btn:hover {
  transform: translateY(-2px);
}
.ct-btn--wa {
  color: #fff;
  background: #1fb855;
}
.ct-btn--ghost {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}
.ct-btn--ghost:hover {
  border-color: var(--ink);
}

/* side panel */
.ct-side {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.ct-side__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 32px 28px;
  border-radius: 28px;
  color: #a9b6d6;
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(46, 230, 242, 0.16), transparent 70%),
    radial-gradient(340px 260px at 0% 100%, rgba(30, 107, 255, 0.3), transparent 70%),
    linear-gradient(150deg, #0f2766 0%, var(--navy-900) 100%);
}
.ct-side__card h3 {
  margin-bottom: 22px;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
}
.ct-steps {
  position: relative;
  display: grid;
  gap: 20px;
  margin-bottom: 26px;
}
.ct-steps::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(46, 230, 242, 0.05));
}
.ct-steps li {
  position: relative;
  display: flex;
  gap: 16px;
}
.ct-steps li > span {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-900);
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(46, 230, 242, 0.12);
}
.ct-steps strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15.5px;
  color: #fff;
}
.ct-steps small {
  font-size: 13.5px;
  line-height: 1.55;
}
.ct-side__wa {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.35s ease,
    border-color 0.35s ease;
}
.ct-side__wa:hover {
  background: rgba(31, 184, 85, 0.18);
  border-color: rgba(31, 184, 85, 0.6);
}
.ct-side__wa-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: #1fb855;
}
.ct-side__wa span:nth-child(2) {
  flex: 1;
}
.ct-side__wa strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
}
.ct-side__wa small {
  font-size: 12.5px;
  color: #a9b6d6;
}
.ct-side__wa > i {
  transition: transform 0.3s;
}
.ct-side__wa:hover > i {
  transform: translateX(4px);
}
.ct-side__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
}
.ct-side__trust strong {
  color: #fff;
}
.ct-side__avatars {
  display: flex;
}
.ct-side__avatars img {
  width: 34px;
  height: 34px;
  margin-left: -10px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0f2766;
}
.ct-side__avatars img:first-child {
  margin-left: 0;
}
.ct-side__stars {
  display: block;
  color: var(--star);
  font-size: 11px;
  letter-spacing: 1px;
}
.ct-side__social {
  display: flex;
  gap: 10px;
}
.ct-side__social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #dfe6f7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background 0.35s,
    border-color 0.35s,
    transform 0.35s;
}
.ct-side__social a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}
/* brand colour fill + tooltip: .social-fx in common.css */

/* ---------- Map ---------- */
.ct-map-wrap {
  padding-bottom: 20px;
}
.ct-map {
  position: relative;
  overflow: hidden;
  height: 440px;
  border-radius: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ct-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s ease;
}
.ct-map:hover iframe {
  filter: none;
}
.ct-map__card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.ct-map__pin {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  background: var(--grad-primary);
}
.ct-map__pin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 2px solid var(--blue-400);
  animation: ring 2s ease-out infinite;
}
.ct-map__card small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ct-map__card strong {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--ink);
}
.ct-map__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: var(--navy-800);
  transition: background 0.3s;
}
.ct-map__btn:hover {
  background: var(--blue-600);
}

/* ---------- Quick FAQ ---------- */
.ct-faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.ct-faq__grid h2 {
  margin: 6px 0 12px;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ct-faq__grid > div > p {
  color: var(--muted);
}

/* ---------- Contact page: responsive ---------- */
@media (max-width: 1100px) {
  .ct-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .ct-main__grid,
  .ct-faq__grid {
    grid-template-columns: 1fr;
  }
  .ct-side {
    position: static;
  }
}
@media (max-width: 720px) {
  .ct-hero {
    padding: 110px 0 120px;
  }
  .ct-hero__inner > p {
    font-size: 15.5px;
  }
  .ct-methods {
    gap: 12px;
    margin-top: -70px;
  }
  .ct-card {
    padding: 18px 16px 16px;
  }
  .ct-card > strong {
    font-size: 15px;
  }
  .ct-card__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .ct-main {
    padding: 50px 0;
  }
  .ct-form-card {
    padding: 26px 18px;
    border-radius: 22px;
  }
  .ct-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ct-submit {
    width: 100%;
    justify-content: space-between;
  }
  .ct-side__card {
    padding: 26px 20px;
  }
  .ct-map {
    height: 380px;
    border-radius: 22px;
  }
  .ct-map__card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-wrap: wrap;
  }
  .ct-map__btn {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .ct-methods {
    grid-template-columns: 1fr;
  }
}
