/* =========================================================
   REKHATAMA CONTACT PAGE
========================================================= */

.rk-ct-page {
  --ct-navy: #102b5c;
  --ct-navy-dark: #081b3d;
  --ct-blue: #086fe8;
  --ct-cyan: #10a9ea;
  --ct-ink: #10213f;
  --ct-muted: #566a87;
  --ct-line: #d8e4f1;
  --ct-soft: #f2f7fd;
  --ct-white: #ffffff;

  overflow: clip;
  color: var(--ct-ink);
  background: #ffffff;
  font-family: Inter, Arial, sans-serif;
}

.rk-ct-page *,
.rk-ct-page *::before,
.rk-ct-page *::after {
  box-sizing: border-box;
}

.rk-ct-page .rk-ct-container {
  width: min(calc(100% - 48px), 1440px);
  margin-right: auto;
  margin-left: auto;
}

.rk-ct-page h1,
.rk-ct-page h2,
.rk-ct-page h3,
.rk-ct-page p {
  margin-top: 0;
}

.rk-ct-page h1,
.rk-ct-page h2,
.rk-ct-page h3,
.rk-ct-page strong,
.rk-ct-page .rk-ct-btn {
  font-family: Poppins, Inter, Arial, sans-serif;
}

.rk-ct-page h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ct-navy);
  font-size: clamp(2.35rem, 4vw, 3.65rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.rk-ct-page h2 {
  margin-bottom: 12px;
  color: var(--ct-navy);
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.025em;
}

.rk-ct-page h3 {
  color: var(--ct-navy);
  font-weight: 700;
}

/* =========================================================
   EYEBROW
========================================================= */

.rk-ct-eyebrow,
.rk-ct-panel-label,
.rk-ct-contact-panel__label,
.rk-ct-cta__label {
  display: inline-block;
  margin-bottom: 13px;
  color: #155fae;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rk-ct-lead {
  max-width: 690px;
  margin-bottom: 24px;
  color: var(--ct-muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
}

/* =========================================================
   BUTTONS
========================================================= */

.rk-ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.rk-ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin: 0;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.rk-ct-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.rk-ct-btn--primary {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--ct-blue),
    var(--ct-cyan)
  );
  box-shadow: 0 12px 28px rgba(8, 111, 232, 0.22);
}

.rk-ct-btn--primary:hover {
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 111, 232, 0.3);
}

.rk-ct-btn--outline {
  color: var(--ct-navy);
  background: rgba(255, 255, 255, 0.82);
  border-color: #c9daec;
}

.rk-ct-btn--outline:hover {
  color: var(--ct-blue);
  background: #ffffff;
}

/* =========================================================
   HERO
========================================================= */

.rk-ct-hero {
  position: relative;
  padding-top: 54px;
  padding-bottom: 54px;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(16, 169, 234, 0.2),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      #f3f8ff 0%,
      #ffffff 62%,
      #edf8ff 100%
    );
  border-bottom: 1px solid var(--ct-line);
}

.rk-ct-hero__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(350px, 0.8fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.rk-ct-response-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 21px;
  color: #526985;
  font-size: 0.84rem;
}

.rk-ct-response-note__dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25b56b;
  box-shadow: 0 0 0 5px rgba(37, 181, 107, 0.13);
}

/* =========================================================
   HERO PANEL
========================================================= */

.rk-ct-hero__panel {
  padding: 27px;
  border: 1px solid rgba(194, 214, 235, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 50px rgba(16, 43, 92, 0.1);
  backdrop-filter: blur(12px);
}

.rk-ct-check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rk-ct-check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ct-ink);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.45;
}

.rk-ct-check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #0477d8;
  background: #e5f4ff;
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
}

.rk-ct-panel-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ct-line);
  color: var(--ct-muted);
  font-size: 0.82rem;
}

.rk-ct-panel-footer strong {
  color: var(--ct-navy);
  font-size: 0.9rem;
}

/* =========================================================
   CONTACT HUB
========================================================= */

.rk-ct-hub {
  padding-top: 50px;
  padding-bottom: 50px;
}

.rk-ct-section-heading {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(320px, 0.65fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 27px;
}

.rk-ct-section-heading > p {
  max-width: 520px;
  margin-bottom: 4px;
  color: var(--ct-muted);
  line-height: 1.7;
}

.rk-ct-hub__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.28fr)
    minmax(340px, 0.72fr);
  gap: 20px;
  align-items: stretch;
}

/* =========================================================
   NEED CARDS
========================================================= */

.rk-ct-needs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rk-ct-need-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--ct-line);
  border-radius: 17px;
  color: var(--ct-ink);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 43, 92, 0.06);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rk-ct-need-card:hover {
  transform: translateY(-3px);
  border-color: #8fc6f8;
  color: var(--ct-ink);
  box-shadow: 0 16px 32px rgba(16, 43, 92, 0.1);
  text-decoration: none;
}

.rk-ct-need-card__number {
  color: var(--ct-blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.rk-ct-need-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rk-ct-need-card__content strong {
  color: var(--ct-navy);
  font-size: 1rem;
  line-height: 1.3;
}

.rk-ct-need-card__content small {
  color: var(--ct-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.rk-ct-need-card__arrow {
  color: var(--ct-blue);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.rk-ct-need-card:hover .rk-ct-need-card__arrow {
  transform: translateX(4px);
}

/* =========================================================
   CONTACT PANEL
========================================================= */

.rk-ct-contact-panel {
  padding: 25px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(145deg, #12336e, #071b3e);
  box-shadow: 0 18px 42px rgba(7, 27, 62, 0.2);
}

.rk-ct-contact-panel__label {
  color: #8edcff;
}

.rk-ct-contact-panel h3 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.35;
}

.rk-ct-contact-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #ffffff;
  text-decoration: none;
}

.rk-ct-contact-item:hover {
  color: #ffffff;
  text-decoration: none;
}

.rk-ct-contact-item__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #9be1ff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 850;
}

.rk-ct-contact-item__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rk-ct-contact-item small {
  color: #b9cbe3;
  font-size: 0.75rem;
}

.rk-ct-contact-item strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 0.91rem;
}

/* =========================================================
   LOCATION
========================================================= */

.rk-ct-location {
  padding-bottom: 50px;
}

.rk-ct-location__card {
  display: grid;
  grid-template-columns:
    minmax(340px, 0.72fr)
    minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--ct-line);
  border-radius: 22px;
  background: var(--ct-soft);
}

.rk-ct-location__content {
  padding: 30px;
}

.rk-ct-location__content > p {
  margin-bottom: 20px;
  color: var(--ct-muted);
  line-height: 1.7;
}

.rk-ct-location__meta {
  display: grid;
  gap: 11px;
  margin-bottom: 20px;
}

.rk-ct-location__meta div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rk-ct-location__meta small {
  color: #6a7d97;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rk-ct-location__meta strong {
  color: var(--ct-navy);
  font-size: 0.9rem;
}

.rk-ct-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ct-blue);
  font-weight: 800;
  text-decoration: none;
}

.rk-ct-text-link:hover {
  color: #005bc3;
  text-decoration: none;
}

.rk-ct-location__map,
.rk-ct-location__map iframe {
  width: 100%;
  min-height: 330px;
}

.rk-ct-location__map iframe {
  display: block;
  height: 100%;
  border: 0;
}

/* =========================================================
   FINAL CTA
========================================================= */

.rk-ct-cta {
  padding-bottom: 54px;
}

.rk-ct-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 30px 34px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #102f67, #095ba7);
  box-shadow: 0 18px 42px rgba(16, 47, 103, 0.18);
}

.rk-ct-cta__label {
  margin-bottom: 9px;
  color: #95ddff;
}

.rk-ct-cta h2 {
  margin-bottom: 7px;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
}

.rk-ct-cta p {
  max-width: 760px;
  margin-bottom: 0;
  color: #d1e1f3;
  line-height: 1.65;
}

.rk-ct-btn--light {
  color: var(--ct-navy-dark);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.13);
}

.rk-ct-btn--light:hover {
  color: var(--ct-blue);
  background: #f6fbff;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {
  .rk-ct-page .rk-ct-container {
    width: min(calc(100% - 32px), 1440px);
  }

  .rk-ct-hero {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .rk-ct-hero__grid,
  .rk-ct-section-heading,
  .rk-ct-hub__grid,
  .rk-ct-location__card {
    grid-template-columns: 1fr;
  }

  .rk-ct-section-heading {
    gap: 8px;
  }

  .rk-ct-location__map,
  .rk-ct-location__map iframe {
    min-height: 300px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 639.98px) {
  .rk-ct-page .rk-ct-container {
    width: min(calc(100% - 24px), 1440px);
  }

  .rk-ct-page h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .rk-ct-page h2 {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .rk-ct-hero,
  .rk-ct-hub {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .rk-ct-actions {
    width: 100%;
  }

  .rk-ct-actions .rk-ct-btn {
    width: 100%;
  }

  .rk-ct-hero__panel,
  .rk-ct-contact-panel,
  .rk-ct-location__content {
    padding: 21px;
  }

  .rk-ct-needs {
    grid-template-columns: 1fr;
  }

  .rk-ct-need-card {
    min-height: 0;
  }

  .rk-ct-location,
  .rk-ct-cta {
    padding-bottom: 34px;
  }

  .rk-ct-location__map,
  .rk-ct-location__map iframe {
    min-height: 245px;
  }

  .rk-ct-cta__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 23px;
  }

  .rk-ct-cta .rk-ct-btn {
    width: 100%;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .rk-ct-page *,
  .rk-ct-page *::before,
  .rk-ct-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* =========================================================
   FIX DRUPAL HTML PROCESSING — CONTACT CARDS
========================================================= */

/* Kartu kebutuhan */
.rk-ct-need-card {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 24px !important;
  grid-template-rows: auto auto !important;
  grid-template-areas:
    "number title arrow"
    ". description arrow" !important;
  column-gap: 13px !important;
  row-gap: 8px !important;
  align-content: start !important;
  align-items: start !important;
  min-height: 145px !important;
  padding: 20px !important;
}

.rk-ct-need-card > .rk-ct-need-card__number {
  grid-area: number !important;
  width: auto !important;
}

.rk-ct-need-card > .rk-ct-need-card__content {
  grid-area: title !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
}

.rk-ct-need-card > .rk-ct-need-card__content strong {
  display: block !important;
  margin: 0 !important;
  color: var(--ct-navy) !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

/* Deskripsi yang dipisahkan Drupal */
.rk-ct-need-card > small {
  grid-area: description !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--ct-muted) !important;
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
}

/* Span tambahan hasil pemrosesan Drupal */
.rk-ct-need-card > small .rk-ct-need-card__content {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

.rk-ct-need-card > .rk-ct-need-card__arrow {
  grid-area: arrow !important;
  align-self: center !important;
  justify-self: end !important;
  width: auto !important;
}

/* =========================================================
   FIX CONTACT PANEL
========================================================= */

.rk-ct-contact-item {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 13px !important;
  row-gap: 3px !important;
  align-items: center !important;
  width: 100% !important;
}

.rk-ct-contact-item > .rk-ct-contact-item__icon {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: 42px !important;
}

/* Label dipisahkan oleh Drupal */
.rk-ct-contact-item > small {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #b9cbe3 !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}

.rk-ct-contact-item > small .rk-ct-contact-item__content {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
}

/* Nomor/email dipisahkan oleh Drupal */
.rk-ct-contact-item > .rk-ct-contact-item__content {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.rk-ct-contact-item > .rk-ct-contact-item__content strong {
  display: block !important;
  width: auto !important;
  color: #ffffff !important;
  font-size: 0.91rem !important;
  line-height: 1.45 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  white-space: normal !important;
}

/* =========================================================
   RESPONSIVE FIX
========================================================= */

@media (max-width: 639.98px) {
  .rk-ct-need-card {
    min-height: 0 !important;
    grid-template-columns: 32px minmax(0, 1fr) 20px !important;
    padding: 17px !important;
  }

  .rk-ct-contact-item {
    grid-template-columns: 42px minmax(0, 1fr) !important;
  }
}