:root {
  --sdm-logo-blue: #0054a6;
  --sdm-logo-blue-dark: #003f7d;
  --sdm-contact-red: #ed1c24;
  --sdm-footer-text: #ffffff;
  --sdm-footer-muted: rgba(255, 255, 255, .78);
  --sdm-footer-border: rgba(255, 255, 255, .28);
}

/* ============================
   CONTACT SECTION
   ============================ */
.sdm-contact-modern {
  background: #ffffff;
  padding: 92px 0 82px;
}

.sdm-contact-kicker {
  display: block;
  color: var(--sdm-contact-red);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.sdm-contact-title {
  color: #151c2d;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 42px;
}

.sdm-contact-details {
  display: grid;
  gap: 30px;
}

.sdm-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.sdm-contact-item-address {
  margin-bottom: 2px;
}

.sdm-contact-item-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sdm-logo-blue);
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 24px;
}

.sdm-contact-item h3 {
  color: #151c2d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 4px 0 8px;
}

.sdm-contact-item p {
  color: #263246;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.sdm-contact-item p strong {
  font-weight: 600;
}

.sdm-contact-item a {
  color: inherit;
}

.sdm-contact-item a:hover {
  color: var(--sdm-logo-blue);
}

.sdm-contact-form {
  padding-top: 2px;
}

.sdm-contact-form label {
  display: block;
  color: #182033;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sdm-contact-form label span {
  color: var(--sdm-contact-red);
}

.sdm-contact-form input,
.sdm-contact-form textarea {
  width: 100%;
  border: 1px solid #cfd8e5;
  border-radius: 4px;
  background: #ffffff;
  color: #172033;
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.sdm-contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.sdm-contact-form input:focus,
.sdm-contact-form textarea:focus {
  border-color: var(--sdm-logo-blue);
  box-shadow: 0 0 0 3px rgba(0, 84, 166, .10);
}

.sdm-contact-submit {
  min-width: 220px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 0;
  border-radius: 4px;
  background: var(--sdm-logo-blue);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  padding: 0 24px;
  transition: background .2s ease, transform .2s ease;
}

.sdm-contact-submit:hover {
  background: var(--sdm-logo-blue-dark);
  transform: translateY(-2px);
}

.sdm-form-note {
  color: #7a8698;
  font-size: 12px;
  margin: 10px 0 0;
}

/* ============================
   FOOTER
   ============================ */
#footer.sdm-footer {
  background: none;
  color: var(--sdm-footer-text);
  font-size: inherit;
  padding: 0;
}

#footer.sdm-footer .sdm-footer-main {
  background: var(--sdm-footer-background);
  padding: 62px 0 26px;
}

.sdm-footer-brand {
  padding-right: 22px;
}

.sdm-footer-logo-group {
  display: grid;
  grid-template-columns: minmax(145px, 1.65fr) minmax(82px, .72fr) minmax(150px, 1.55fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sdm-footer-logo-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.sdm-footer-logo-card img {
  display: block;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .16));
}

.sdm-footer-logo-card-main img {
  max-height: 66px;
}

.sdm-footer-logo-card-atp img {
  max-height: 69px;
}

.sdm-footer-logo-card-pmi img {
  max-height: 56px;
}

.sdm-footer-logo-card-main {
  transition: transform .2s ease;
}

.sdm-footer-logo-card-main:hover {
  transform: translateY(-2px);
}

.sdm-footer-copyright {
  color: var(--sdm-footer-muted);
  font-size: 13px;
  margin: 24px 0 0;
}

.sdm-footer-column h3 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 3px 0 20px;
}

.sdm-footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sdm-footer-column li {
  border-bottom: 1px dotted rgba(255, 255, 255, .25);
}

.sdm-footer-column li:last-child {
  border-bottom: 0;
}

.sdm-footer-column a {
  display: block;
  color: var(--sdm-footer-muted);
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 0;
  transition: color .2s ease, padding-left .2s ease;
}

.sdm-footer-column a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.sdm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--sdm-footer-border);
  margin-top: 36px;
  padding-top: 20px;
}

.sdm-footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.sdm-footer-social a {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 21px;
  transition: color .2s ease, transform .2s ease;
}

.sdm-footer-social a:hover {
  background: transparent;
  border-color: transparent;
  color: var(--sdm-logo-blue);
  transform: translateY(-2px);
}

.sdm-footer-whatsapp {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: #22d366;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  padding: 0 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
  transition: background .2s ease, transform .2s ease;
}

.sdm-footer-whatsapp i {
  font-size: 20px;
}

.sdm-footer-whatsapp:hover {
  background: #16b957;
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 991.98px) {
  .sdm-contact-modern {
    padding: 76px 0 70px;
  }

  .sdm-contact-title {
    margin-bottom: 34px;
  }

  .sdm-footer-brand {
    padding-right: 0;
  }
}

@media (max-width: 767.98px) {
  .sdm-contact-modern {
    padding: 64px 0 58px;
  }

  .sdm-contact-title {
    font-size: 38px;
  }

  .sdm-contact-form {
    padding-top: 15px;
  }

  #footer.sdm-footer .sdm-footer-main {
    padding-top: 50px;
  }

  .sdm-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .sdm-footer-whatsapp {
    align-self: stretch;
  }
}

@media (max-width: 575.98px) {
  .sdm-contact-item-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 21px;
  }

  .sdm-contact-submit {
    width: 100%;
  }

  .sdm-footer-logo img {
    max-width: 180px;
    height: 50px;
  }

  .sdm-footer-social {
    gap: 16px;
  }

  .sdm-footer-social a {
    width: auto;
    height: auto;
  }
}


@media (max-width: 1199.98px) {
  .sdm-footer-logo-group {
    grid-template-columns: minmax(140px, 1.45fr) minmax(78px, .7fr) minmax(135px, 1.35fr);
    gap: 9px;
  }

  .sdm-footer-logo-card {
    min-height: 84px;
    padding: 0;
  }
}

@media (max-width: 575.98px) {
  .sdm-footer-logo-group {
    grid-template-columns: 1.45fr .78fr 1.35fr;
    gap: 7px;
  }

  .sdm-footer-logo-card {
    min-height: 70px;
    border-radius: 0;
    padding: 0;
  }

  .sdm-footer-logo-card-main img {
    max-height: 50px;
  }

  .sdm-footer-logo-card-atp img {
    max-height: 52px;
  }

  .sdm-footer-logo-card-pmi img {
    max-height: 42px;
  }
}

/* ============================
   TAHAP 6: FLOATING WHATSAPP & SOCIAL LINKS
   ============================ */
.sdm-footer-bottom {
  justify-content: flex-start;
}

/* Ikon X dibuat dengan teks agar tetap tampil pada Bootstrap Icons versi lama. */
.sdm-social-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Tombol WhatsApp mengambang dan tetap terlihat saat halaman di-scroll. */
.sdm-floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: #22d366;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  padding: 0 23px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sdm-floating-whatsapp i {
  font-size: 21px;
}

.sdm-floating-whatsapp:hover,
.sdm-floating-whatsapp:focus {
  background: #16b957;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(0, 0, 0, .28);
}

/* Hindari tumpang tindih tombol Back to Top dengan WhatsApp. */
.back-to-top {
  right: 27px !important;
  bottom: 86px !important;
}

@media (max-width: 575.98px) {
  .sdm-floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 45px;
    padding: 0 17px;
    font-size: 13px;
  }

  .sdm-floating-whatsapp i {
    font-size: 19px;
  }

  .back-to-top {
    right: 17px !important;
    bottom: 72px !important;
  }
}

@media (max-width: 380px) {
  .sdm-floating-whatsapp span {
    display: none;
  }

  .sdm-floating-whatsapp {
    width: 48px;
    padding: 0;
  }
}
