/* =========================================================
   HB SEO Service - Contact page
   Needs services.css loaded first (shared tokens, buttons)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.ct-page #form { scroll-margin-top: 90px; }

/* ---------------- Hero ---------------- */
.ct-hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.ct-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 70% at 80% 50%, rgba(47,123,255,.26), transparent 70%),
    radial-gradient(40% 50% at 8% 0%, rgba(47,123,255,.14), transparent 70%),
    linear-gradient(180deg, #060b16, #0a1226 60%, #060b16);
}
.ct-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.ct-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #e6eeff;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
}
.ct-badge svg { width: 18px; height: 18px; fill: none; stroke: var(--sv-blue-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.ct-hero__title {
  margin-top: 26px; font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; color: #fff;
}
.ct-hero__title em {
  display: inline-block; font-style: italic; padding-right: .1em;
  background: linear-gradient(90deg, #f0a52c, #ffd987); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ct-hero__text { margin-top: 22px; max-width: 520px; font-size: 17px; line-height: 1.65; color: #b9c4dc; }
.ct-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* hero visual: chat bubbles */
.ct-hero__visual {
  position: relative; display: grid; gap: 16px; padding: 34px 30px 60px; border-radius: 24px;
  border: 1px solid var(--sv-line); background: linear-gradient(160deg, #14203a, #0c1426);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(47,123,255,.08);
}
.ct-bubble { max-width: 82%; padding: 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.ct-bubble--in { justify-self: start; border-bottom-left-radius: 4px; color: #dbe6fb; background: rgba(255,255,255,.07); }
.ct-bubble--out { justify-self: end; border-bottom-right-radius: 4px; color: #fff; background: linear-gradient(160deg, #2f7bff, #1a4fd6); }
.ct-bubble--short { max-width: 50%; }
.ct-bubble { opacity: 0; transform: translateY(14px); animation: ctPop .7s var(--sv-ease) forwards; }
.ct-bubble:nth-child(1) { animation-delay: .3s; }
.ct-bubble:nth-child(2) { animation-delay: .8s; }
.ct-bubble:nth-child(3) { animation-delay: 1.3s; }
@keyframes ctPop { to { opacity: 1; transform: none; } }

.ct-chip {
  position: absolute; right: 24px; bottom: -22px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: 14px; border: 1px solid rgba(93,180,255,.35);
  background: rgba(10,18,38,.95); box-shadow: 0 14px 30px rgba(0,0,0,.45);
  animation: ctFloat 5s ease-in-out infinite;
}
.ct-chip svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; background: linear-gradient(160deg, #2f7bff, #1a4fd6); }
.ct-chip strong { display: block; font-size: 15px; color: #fff; }
.ct-chip span { font-size: 12.5px; color: #9fb0d0; }
@keyframes ctFloat { 50% { transform: translateY(-6px); } }

/* ---------------- Steps ---------------- */
.ct-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.ct-steps li { padding: 30px 28px; border-radius: var(--sv-radius); border: 1px solid var(--sv-line); background: linear-gradient(160deg, var(--sv-card-2), var(--sv-card)); }
.ct-steps b {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  font-size: 16px; font-weight: 800; color: var(--sv-blue-2); background: rgba(47,123,255,.14);
}
.ct-steps h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.ct-steps p { margin-top: 8px; font-size: 15px; }

/* ---------------- Form + direct contact ---------------- */
.ct-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: start; }

.ct-form-card {
  padding: 44px; border-radius: 28px; border: 1px solid rgba(47,123,255,.4);
  background: linear-gradient(160deg, #16213a, #0f1727);
}
.ct-form-card h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.ct-form-card > p { margin-top: 10px; font-size: 16px; }

.ct-form { margin-top: 28px; display: grid; gap: 18px; }
.ct-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: #cfd8ea; }
.ct-form input, .ct-form select, .ct-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--sv-line);
  background: rgba(8,13,22,.7); color: #fff; font: inherit; font-size: 15px; font-weight: 400;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.ct-form textarea { resize: vertical; min-height: 140px; }
.ct-form select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f9bb3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.ct-form select option { background: #0f1727; color: #fff; }
.ct-form input::placeholder, .ct-form textarea::placeholder { color: #5f6c85; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus {
  outline: none; border-color: var(--sv-blue); box-shadow: 0 0 0 4px rgba(47,123,255,.18); background: rgba(8,13,22,.95);
}
.ct-form .sv-btn { justify-self: start; min-width: 200px; }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-form__messages p { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; color: #fff; background: rgba(47,123,255,.15); border: 1px solid rgba(47,123,255,.45); }
.ct-form__messages p.error { background: rgba(255,90,90,.12); border-color: rgba(255,90,90,.5); }

.ct-side { display: grid; gap: 18px; }
.ct-direct {
  display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--sv-radius);
  border: 1px solid var(--sv-line); background: linear-gradient(160deg, var(--sv-card-2), var(--sv-card));
  transition: transform .3s var(--sv-ease), border-color .3s;
}
.ct-direct:hover { transform: translateY(-3px); border-color: rgba(47,123,255,.6); }
.ct-direct__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(47,123,255,.16); }
.ct-direct__icon--wa { background: rgba(37,211,102,.16); }
.ct-direct__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--sv-blue-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-direct__icon--wa svg { stroke: #25d366; }
.ct-direct strong { display: block; font-size: 18px; color: #fff; }
.ct-direct small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--sv-muted); }
.ct-direct em { display: block; margin-top: 6px; font-style: normal; font-size: 15px; font-weight: 600; color: var(--sv-blue-2); word-break: break-all; }

.ct-note { padding: 24px; border-radius: var(--sv-radius); border: 1px dashed var(--sv-line); }
.ct-note h3 { font-size: 17px; font-weight: 700; }
.ct-note p { margin-top: 8px; font-size: 14.5px; }
.ct-note a { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--sv-blue-2); border-bottom: 1px solid rgba(74,168,255,.4); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .ct-hero { padding: 40px 0 56px; }
  .ct-hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .ct-hero__visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .ct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .ct-steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .ct-hero__actions .sv-btn { width: 100%; }
  .ct-form-card { padding: 30px 20px; }
  .ct-form__row { grid-template-columns: 1fr; }
  .ct-form .sv-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-chip { animation: none; }
  .ct-bubble { opacity: 1; transform: none; animation: none; }
}
