:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f5f5f7;
  background: #202124;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  padding: 12px 5px 8px;
  background: #27282b;
}

button,
input {
  font: inherit;
}

/* Bingkai utama website */

.site-shell {
  min-height: calc(100vh - 20px);
  overflow: hidden;
  border: 1px solid #343a40;
  border-radius: 10px;
  background: #090e13;
}

/* Pembagian panel kiri dan kanan */

.split-layout {
  min-height: calc(100vh - 158px);
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(480px, 1fr);
}

/* Panel gambar sebelah kiri */

.hero-panel {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border-right: 1px solid #484c52;
  background-color: #090e13;
  background-image: url("assets/instagram-reference.webp");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: 152.82% auto;
}

/* Penutup tulisan asli pada gambar */

.hero-heading-cover {
  position: absolute;
  z-index: 2;
  top: clamp(105px, 14.5vh, 155px);
  left: 17%;
  width: 64%;
  min-height: 155px;
  display: grid;
  place-items: center;
  padding: 18px 10px;
  background: #090e13;
  text-align: center;
}

.hero-heading-cover h1 {
  margin: 0;
  font-size: clamp(36px, 3.1vw, 58px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.hero-heading-cover h1 span {
  color: transparent;
  background: linear-gradient(
    90deg,
    #ff6e4b,
    #ff176f 45%,
    #d100db 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
}

/* Panel formulir sebelah kanan */

.form-panel {
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 54px clamp(36px, 3vw, 62px);
  background: #202023;
}

.form-wrap {
  width: min(100%, 550px);
  margin: 0 auto;
}

.form-wrap h2 {
  margin: 0 0 26px;
  font-size: 16px;
  font-weight: 700;
}

/* Formulir */

#feedback-form {
  display: grid;
  gap: 12px;
}

/* Kotak Kesan dan Pesan */

.floating-input {
  position: relative;
  display: block;
  width: 100%;
}

/* Kolom dibuat tipis dan tidak dapat diperbesar */

.floating-input input {
  display: block;
  width: 100%;
  height: 50px;
  min-height: 50px;
  max-height: 50px;
  padding: 18px 16px 4px;
  box-sizing: border-box;
  border: 1px solid #555960;
  border-radius: 16px;
  background: #202023;
  color: #f5f5f7;
  font-size: 14px;
  line-height: 1.2;
  outline: none;
}

/* Tulisan Kesan dan Pesan */

.floating-input span {
  position: absolute;
  top: 50%;
  left: 16px;
  margin: 0;
  color: #9ba5b5;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    top 0.18s ease,
    font-size 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

/* Tulisan bergeser ke atas tetapi tetap di dalam kolom */

.floating-input input:focus + span,
.floating-input input:not(:placeholder-shown) + span {
  top: 6px;
  color: #8da5c5;
  font-size: 9px;
  transform: none;
}

/* Efek ketika kolom diklik */

.floating-input input:focus {
  border-color: #6aa8f2;
  background: #232327;
  box-shadow: 0 0 0 2px rgba(74, 151, 239, 0.12);
}

/* Tombol Kirim */

button {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #1f4c82;
  color: #a2a2a3;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

button:hover {
  background: #2667ae;
  color: #ffffff;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Pemberitahuan berhasil atau gagal */

.status {
  min-height: 19px;
  margin: 0;
  color: #a9a9ae;
  text-align: center;
  font-size: 13px;
}

.status.success {
  color: #58dc94;
}

.status.error {
  color: #ff7770;
}

/* Tulisan privasi */

.private-link {
  margin: 3px 0 64px;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

/* Tombol informasi tambahan */

.secondary-actions {
  display: grid;
  gap: 14px;
}

.secondary-button {
  min-height: 43px;
  display: grid;
  place-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: #292a2d;
  color: #c9d2df;
  text-align: center;
  font-size: 14px;
}

.secondary-button.outlined {
  border: 1px solid #3d92f3;
  background: transparent;
  color: #4da0ff;
}

/* Logo kecil Instagram */

.instagram-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  color: #e5e5e8;
  font-size: 14px;
}

.mini-instagram-logo {
  position: relative;
  width: 19px;
  height: 19px;
  display: inline-block;
  padding: 2px;
  border-radius: 6px;
  background: linear-gradient(
    145deg,
    #7638ff 3%,
    #e9158a 44%,
    #ff653d 70%,
    #ffd33d 100%
  );
}

.mini-instagram-logo::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #202023;
  border-radius: 4px;
}

.mini-instagram-logo i {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #202023;
}

.mini-instagram-logo i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #202023;
}

/* Footer */

footer {
  min-height: 137px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  border-top: 1px solid #484c52;
  background: #090e13;
  color: #a5adba;
  font-size: 12px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

footer p {
  margin: 0;
}

/* Tampilan tablet */

@media (max-width: 1100px) {
  .split-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(410px, 1fr);
  }

  .hero-panel {
    background-size: auto 100%;
  }

  .hero-heading-cover {
    top: 120px;
    left: 10%;
    width: 80%;
  }
}

/* Tampilan HP */

@media (max-width: 820px) {
  body {
    padding: 0;
  }

  .site-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 560px;
    border-right: 0;
    border-bottom: 1px solid #484c52;
    background-size: 1050px auto;
    background-position: top left;
  }

  .hero-heading-cover {
    top: 95px;
    left: 14%;
    width: 72%;
    min-height: 138px;
  }

  .hero-heading-cover h1 {
    font-size: clamp(31px, 7vw, 46px);
  }

  .form-panel {
    min-height: auto;
    padding: 62px 24px;
  }

  .form-wrap {
    width: min(100%, 550px);
  }
}

/* Tampilan HP kecil */

@media (max-width: 520px) {
  .hero-panel {
    min-height: 430px;
    background-size: 805px auto;
  }

  .hero-heading-cover {
    top: 82px;
    left: 13%;
    width: 74%;
    min-height: 115px;
  }

  .hero-heading-cover h1 {
    font-size: 29px;
  }

  .form-panel {
    padding: 50px 18px;
  }

  .private-link {
    margin-bottom: 44px;
  }

  footer nav {
    gap: 14px;
  }
}

/* Menutupi footer Instagram yang menyatu di gambar */
.hero-panel::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 115px;
  background: #090e13;
  pointer-events: none;
}

.hero-heading-cover {
  z-index: 2;
}

/* Logo dan tulisan Meta */
.meta-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 28px 0 0;
  color: #f5f5f7;
  font-size: 16px;
  font-weight: 500;
}

.meta-logo {
  width: 30px;
  height: 18px;
  overflow: visible;
}

.meta-logo path {
  fill: none;
  stroke: #1689fc;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Merapikan footer bawah */
footer {
  min-height: 120px;
  padding: 25px 20px;
  gap: 18px;
}

footer nav {
  width: 100%;
  max-width: 950px;
  gap: 12px 22px;
  line-height: 1.4;
}

footer p {
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 820px) {
  .hero-panel::after {
    height: 75px;
  }

  footer {
    padding: 24px 16px;
  }

  footer nav {
    gap: 10px 17px;
  }
}

@media (max-width: 520px) {
  .hero-panel::after {
    height: 55px;
  }

  .meta-signature {
    margin-top: 24px;
  }
}

/* Logo ini hanya ditampilkan pada HP */
.mobile-instagram-brand {
  display: none;
}

/* ===================================
   TAMPILAN KHUSUS HP
   =================================== */

@media screen and (max-width: 820px) {
  html,
  body {
    width: 100%;
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
  }

  body {
    padding: 0 !important;
    background: #090e13 !important;
  }

  .site-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
  }

  .split-layout {
    min-height: 0 !important;
    display: block !important;
  }

  /* Bagian logo paling atas */
  .hero-panel {
    width: 100%;
    height: 183px !important;
    min-height: 183px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    overflow: hidden;
    border-right: 0 !important;
    border-bottom: 1px solid #484c52 !important;
    background: #090e13 !important;
    background-image: none !important;
  }

  /* Menghilangkan penutup gambar desktop */
  .hero-panel::after {
    display: none !important;
  }

  /* Judul dan gambar desktop disembunyikan */
  .hero-heading-cover {
    display: none !important;
  }

  /* Logo Instagram khusus HP */
  .mobile-instagram-brand {
    width: 96px;
    height: 96px;
    display: grid !important;
    place-items: center;
  }

  .mobile-instagram-brand svg {
    width: 96px;
    height: 96px;
    display: block;
  }

  /* Bagian formulir */
  .form-panel {
    width: 100%;
    min-height: auto !important;
    display: block !important;
    padding: 64px 24px 50px !important;
    background: #202023 !important;
  }

  .form-wrap {
    width: 100% !important;
    max-width: 405px !important;
    margin: 0 auto !important;
  }

  .form-wrap h2 {
    margin: 0 0 28px !important;
    font-size: 18px !important;
    line-height: 1.3;
    font-weight: 700;
  }

  #feedback-form {
    width: 100%;
    display: grid !important;
    gap: 14px !important;
  }

  /* Kolom Kesan dan Pesan */
  .floating-input {
    position: relative !important;
    width: 100% !important;
    height: 60px !important;
    margin: 0 !important;
  }

  .floating-input input {
    width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    display: block !important;
    padding: 22px 20px 7px !important;
    border: 1px solid #555960 !important;
    border-radius: 18px !important;
    background: #202023 !important;
    color: #f5f5f7 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    outline: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
  }

  /* Tulisan Kesan dan Pesan di dalam kolom */
  .floating-input span {
    position: absolute !important;
    top: 50% !important;
    left: 20px !important;
    margin: 0 !important;
    color: #a8b2c1 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    pointer-events: none;
    transform: translateY(-50%) !important;
    transition: all 0.18s ease;
  }

  /* Tulisan naik tetapi tetap di dalam kolom */
  .floating-input input:focus + span,
  .floating-input input:not(:placeholder-shown) + span {
    top: 8px !important;
    font-size: 9px !important;
    color: #8da5c5 !important;
    transform: none !important;
  }

  .floating-input input:focus {
    border-color: #6aa8f2 !important;
    background: #232327 !important;
    box-shadow: 0 0 0 2px rgba(74, 151, 239, 0.12) !important;
  }

  /* Tombol kirim */
  #feedback-form button {
    width: 100% !important;
    height: 56px !important;
    margin: 16px 0 0 !important;
    border-radius: 999px !important;
  }

  .status {
    min-height: 18px;
    margin: 0;
  }

  .private-link {
    margin: 22px 0 62px !important;
    text-align: center;
  }

  .secondary-actions {
    width: 100%;
    gap: 14px;
  }

  .secondary-button {
    width: 100%;
    min-height: 55px;
    padding: 10px 18px;
  }

  .meta-signature {
    margin: 30px 0 0 !important;
  }

  footer {
    width: 100%;
    min-height: auto !important;
    padding: 30px 20px !important;
    gap: 20px !important;
  }

  footer nav {
    width: 100%;
    max-width: 420px;
    gap: 12px 18px !important;
  }

  footer p {
    text-align: center;
  }
}

@media screen and (max-width: 400px) {
  .form-panel {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .hero-panel {
    height: 165px !important;
    min-height: 165px !important;
  }

  .mobile-instagram-brand,
  .mobile-instagram-brand svg {
    width: 86px;
    height: 86px;
  }
}

.meta-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 28px 0 0;
  color: #e4e6eb;
  font-size: 16px;
  font-weight: 500;
}

/* Logo SVG lama tidak digunakan lagi */
.meta-logo {
  display: none;
}

.meta-signature {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  margin: 28px 0 0 !important;
  color: #e4e6eb !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  font-weight: 400 !important;
}

.meta-official-icon {
  width: 22px !important;
  height: 15px !important;
  display: block !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex: 0 0 auto;
}

/* Menonaktifkan logo lama */
.meta-mark,
.meta-logo {
  display: none !important;
}

.private-link,
.secondary-button {
  text-decoration: none;
  cursor: pointer;
}

.private-link {
  display: block;
}

.private-link:visited {
  color: #ffffff;
}

.secondary-button:visited {
  color: #c9d2df;
}

.secondary-button.outlined:visited {
  color: #4da0ff;
}

.private-link:hover,
.secondary-button:hover {
  filter: brightness(1.15);
}

.meta-official-icon {
  width: 22px;
  height: 15px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}