/* =========================================================
   InstanHosting — contact.css
   Halaman kontak
   ========================================================= */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(30px, 4vw, 52px)) 0 clamp(40px, 5vw, 62px);
  background:
    radial-gradient(760px 460px at 92% -10%, rgba(42, 91, 255, 0.16), transparent 64%),
    radial-gradient(520px 380px at 0% 30%, rgba(18, 194, 233, 0.12), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 60%, #f3f8ff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(10, 27, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 27, 51, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 76% at 50% 16%, #000 0%, rgba(0, 0, 0, 0.4) 58%, transparent 84%);
}
.page-hero .orb--a {
  position: absolute;
  z-index: -1;
  top: 10px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(42, 91, 255, 0.18);
  filter: blur(70px);
}
.page-hero h1 { max-width: 20ch; margin-top: 6px; }
.page-hero .lede { margin-top: 16px; max-width: 58ch; }
.page-hero .hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: none;
  margin-top: 26px;
  padding-top: 0;
  border-top: 0;
}
.page-hero .highlight-chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}
.page-hero .highlight-chip i {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: transparent;
  color: var(--brand);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  color: var(--muted);
}
.crumb a { font-weight: 600; color: var(--brand-700); }
.crumb a:hover { text-decoration: underline; }
.crumb i { font-size: 0.65rem; opacity: 0.6; }
.crumb span { color: var(--muted); }

/* ---------- Quick contact cards ---------- */
.quick-section {
  padding-block: clamp(30px, 3.6vw, 46px);
  background: #fff;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.quick-card {
  display: flex;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 91, 255, 0.26);
  box-shadow: var(--sh-md);
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(42, 91, 255, 0.16);
  border-radius: 12px;
  background: var(--grad-brand-soft);
  color: var(--brand-700);
  font-size: 1.15rem;
}
.quick-body h2 { font-size: 0.98rem; margin-bottom: 4px; }
.quick-body p { font-size: 0.83rem; line-height: 1.6; color: var(--muted); }
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--brand-700);
  word-break: break-word;
}
.quick-link i { transition: transform 0.25s var(--ease); }
.quick-link:hover { color: var(--brand); }
.quick-link:hover i { transform: translate(2px, -2px); }

/* ---------- Contact form + side ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.cform-card {
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--sh-md);
}
.cform-card .section-title { margin-top: 2px; }
.cform-sub {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.cform { margin-top: 24px; }
.cf-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cf-field { margin-bottom: 16px; min-width: 0; }
.cf-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink-2);
}
.cf-field label span { font-weight: 500; color: var(--muted); }

.cf-input { position: relative; display: flex; align-items: flex-start; }
.cf-input > i {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s ease;
}
.cf-input input,
.cf-input select,
.cf-input textarea {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-input input::placeholder,
.cf-input textarea::placeholder { color: #9aabc0; }
.cf-input input:hover,
.cf-input select:hover,
.cf-input textarea:hover { border-color: rgba(10, 27, 51, 0.28); }
.cf-input input:focus,
.cf-input select:focus,
.cf-input textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(42, 91, 255, 0.12);
}
.cf-input:focus-within > i { color: var(--brand); }

.cf-select select {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7f97' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
.cf-select select:invalid { color: #9aabc0; }

.cf-textarea > i { top: 15px; }
.cf-input textarea { min-height: 132px; resize: vertical; line-height: 1.65; }

.cf-consent {
  align-items: flex-start;
  margin: 2px 0 20px;
  font-size: 0.79rem;
  line-height: 1.6;
}
.cf-consent input { margin-top: 2px; flex: none; }
.cf-consent a { color: var(--brand-700); font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }

.cform .btn-ih .spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(14, 159, 110, 0.3);
  border-radius: 11px;
  background: #f2fdf8;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #14624a;
}
.form-alert i { margin-top: 1px; color: #0e9f6e; }
.form-alert[hidden] { display: none; }

.contact-side { display: grid; gap: 16px; }

.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.info-card h2 { font-size: 1.02rem; margin-bottom: 14px; }
.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; gap: 11px; }
.info-list i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: var(--grad-brand-soft);
  color: var(--brand-700);
  font-size: 0.88rem;
}
.info-list b {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.info-list span,
.info-list a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.info-list a:hover { color: var(--brand-700); text-decoration: underline; }

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.map-canvas {
  position: relative;
  height: 148px;
  background:
    radial-gradient(240px 150px at 70% 30%, rgba(42, 91, 255, 0.14), transparent 70%),
    linear-gradient(140deg, #eef4ff, #e3f6fb);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.map-canvas::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(42, 91, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 91, 255, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotate(-8deg);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 78%);
}
.map-canvas::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 58%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(42, 91, 255, 0.12);
  transform: rotate(-8deg);
}
.map-pin {
  position: absolute;
  z-index: 2;
  top: 44%;
  left: 46%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 10px 20px -8px rgba(42, 91, 255, 0.8), 0 0 0 7px rgba(42, 91, 255, 0.14);
  animation: mapPulse 2.8s ease-in-out infinite;
}
@keyframes mapPulse {
  50% { box-shadow: 0 10px 20px -8px rgba(42, 91, 255, 0.8), 0 0 0 12px rgba(42, 91, 255, 0.08); }
}
.map-canvas--live {
  height: 240px;
  background: #eef4ff;
}
.map-canvas--live::before,
.map-canvas--live::after { content: none; }
.map-canvas--live iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-label {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 16px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}
.map-meta b { display: block; font-size: 0.83rem; color: var(--ink); }
.map-meta span { display: block; font-size: 0.76rem; color: var(--muted); }
.map-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-700);
}
.map-meta a:hover { color: var(--brand); }

.info-card--soft {
  background:
    radial-gradient(300px 160px at 90% 0%, rgba(18, 194, 233, 0.12), transparent 70%),
    linear-gradient(140deg, #f7faff, #f0f8ff);
  border-color: rgba(42, 91, 255, 0.18);
}
.info-card--soft p { font-size: 0.83rem; line-height: 1.65; color: var(--body); }
.side-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.side-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(42, 91, 255, 0.22);
  border-radius: 9px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-700);
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}
.side-links a:hover { transform: translateY(-2px); border-color: var(--brand); }

/* ---------- Support strip ---------- */
.support-strip-section { padding-top: 0; }
.support-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(26px, 3.4vw, 38px) clamp(22px, 3.6vw, 42px);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(520px 260px at 88% 0%, rgba(18, 194, 233, 0.3), transparent 66%),
    linear-gradient(150deg, #0d1e3a 0%, #071120 60%, #040c18 100%);
  box-shadow: 0 40px 80px -54px rgba(7, 17, 32, 0.9);
  overflow: hidden;
}
.support-strip h2 { color: #fff; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.support-strip p { margin-top: 6px; font-size: 0.88rem; color: var(--on-dark-dim); }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-card { align-items: flex-start; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-side .info-card:first-child { grid-column: 1 / -1; }
  .map-meta { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .cf-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-side { grid-template-columns: minmax(0, 1fr); }
  .support-strip { flex-direction: column; align-items: flex-start; }
  .support-actions { width: 100%; }
  .support-actions .btn-ih { flex: 1 1 auto; }
  .cform-card { padding: 22px 20px; }
}
