:root {
  --pr-color: #285dc0;
}

/* Fix semua box model */
*,
*::before,
*::after {
  box-sizing: border-box;
  z-index: 2;
}

html {
  overflow-y: scroll; /* Paksa scrollbar selalu muncul */
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #1B1B1B, #121212, #0A0A0A);
  color: white;
  overflow-x: hidden; /* Hindari geseran horizontal */
}

.navbar-cover{
    position:relative;
    width:100%;
    height:100px;
    overflow:hidden;
}

.navbar-cover img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    filter:blur(0.8px) brightness(0.4);
    transform:scale(1.02);
}

.navbar-cover::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.35);
    pointer-events:none;
}


/* ===== FORM PEMESANAN - STYLING ===== */
#FormPemesanan {
  background: #1E1F26;
  padding: clamp(48px, 6vw, 60px) 20px;
}

#FormPemesanan .container {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: clamp(24px, 4vw, 30px);
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

#FormPemesanan h4 {
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: #1a1a1a;
  margin-bottom: clamp(20px, 3vw, 25px);
  text-align: center;
}

.form-label {
  font-weight: 600;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  color: #333;
  margin-bottom: 6px;
}

/* Input & Select */
.form-control,
.form-select {
  border-radius: 12px;
  padding: clamp(10px, 2vw, 12px) clamp(14px, 2.5vw, 16px);
  font-size: clamp(0.85rem, 1.9vw, 0.95rem);
  border: 1px solid #ccd1d9;
  transition: all 0.3s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus,
.form-select:focus {
  border-color: #4d90fe;
  box-shadow: 0 0 0 0.2rem rgba(77, 144, 254, 0.25);
}

button[type="submit"] {
  width: 100%;
  background-color: #007bff;
  border: none;
  border-radius: 12px;
  padding: clamp(12px, 2.5vw, 14px);
  color: #fff;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: background-color 0.3s ease;
  margin-top: clamp(16px, 3vw, 20px);
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Dekorasi Pilihan */
.pilihan-dekorasi {
  flex: 1 1 120px;
  padding: clamp(8px, 2vw, 10px);
  background: #f0f0f0;
  border-radius: 10px;
  border: 2px solid transparent;
  text-align: center;
  transition: 0.2s;
  cursor: pointer;
}

.pilihan-dekorasi img {
  width: 100%;
  max-width: 80px;
  height: auto;
  margin-bottom: 6px;
  border-radius: 6px;
}

.pilihan-dekorasi:hover {
  border-color: #007bff;
  background-color: #e6f0ff;
}

.pilihan-dekorasi.active,
.pilihan-dekorasi.selected {
  border-color: #0d6efd;
  background-color: #dbeeff;
}

/* Grid Layout */
#model_pintu,
#model_ruangan,
#model_plafon,
#model_handrail,
#model_panel_luar,
#model_panel_dalam,
#model_lantai {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: clamp(12px, 2.5vw, 15px);
}


/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {

  .navbar-cover{
        display:none;
    }

  #FormPemesanan {
    padding: 40px 15px;
  }

  #FormPemesanan .container {
    padding: 20px;
  }

  #FormPemesanan h4 {
    font-size: 1.3rem;
  }

  .form-control,
  .form-select {
    font-size: 0.95rem;
    padding: 11px 14px;
  }

  .pilihan-dekorasi img {
    max-width: 70px;
  }

  button[type="submit"] {
    font-size: 0.95rem;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  #FormPemesanan h4 {
    font-size: 1.1rem;
  }

  .form-label,
  .form-control,
  .form-select {
    font-size: 0.85rem;
  }

  .pilihan-dekorasi {
    flex: 1 1 100%;
  }

  #model_pintu,
  #model_ruangan,
  #model_plafon,
  #model_handrail,
  #model_panel_luar,
  #model_panel_dalam,
  #model_lantai {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }

  button[type="submit"] {
    font-size: 0.9rem;
    padding: 10px;
  }
}

/* === Tambahan khusus 390px–420px agar lebih ramping dan kecil === */
@media (max-width: 480px) {
  #FormPemesanan {
    padding: 30px 10px;
  }

  #FormPemesanan .container {
    padding: 16px;
  }

  #FormPemesanan h4 {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .form-control,
  .form-select {
    padding: 10px 12px;
    font-size: 12px;
  }

  button[type="submit"] {
    font-size: 0.85rem;
    padding: 9px;
  }

  .pilihan-dekorasi img {
    max-width: 40px;
  }

  .pilihan-dekorasi {
    padding: 8px;
  }
}


/* === FOOTER STYLING === */
.custom-footer {
    background: linear-gradient(120deg, #1a1a1a, #101010);
    color: #fff;
    padding: 60px 60px 30px;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.footer-left,
.footer-right {
    flex: 1 1 45%;
    min-width: 280px;
}

.footer-right {
    margin-left: 20px;
}

.footer-logo {
    border-radius: 5px;
    margin-left: 70px;
    width: 140px;
    margin-bottom: 8px;
}

.footer-left h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 15px 0 10px;
}

.footer-left h2 span {
    color: var(--pr-color);
}

.footer-right h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* === CONTACT INFO === */
.contact-info {
    list-style: none;
    padding: 0;
    font-size: 15px;
    color: #ccc;
    line-height: 1.8;
}

.contact-info li {
    display: flex;
    align-items: center; /* default untuk WA & email */
    margin-bottom: 12px;
}

.contact-info li:first-child {
    align-items: flex-start; /* maps icon sejajar dengan baris pertama */
}

.contact-info i {
    flex-shrink: 0;
    margin-right: 8px;
    color: #ff0000;
    line-height: 1.2;
    font-size: 15px;
    min-width: 18px;
    text-align: center;
    margin-top: 2px; /* sedikit naik */
}

.alamat-wrap {
    display: flex;
    flex-direction: column;
}

.alamat-pertama {
    line-height: 1.2;
}

.alamat-kedua {
    margin-top: 0; 
    line-height: 1.2;
}

/* Link WhatsApp & email */
.contact-info a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ff0000;
}

/* Sosial icon */
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ff0000;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/* === RESPONSIVE HP ≤480px === */
@media (max-width: 480px) {
    /* Footer container */
    .custom-footer {
        padding: 40px 25px 20px;
        font-size: 13px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center; /* keseluruhan footer di tengah */
        padding: 0 20px;
        gap: 20px;
    }

    /* Kiri (logo + nama PT) */
    .footer-left {
        display: flex;
        flex-direction: column; /* logo di atas, teks di bawah */
        align-items: center;    /* center horizontal */
        gap: 15px;              /* jarak logo & teks */
        margin-left: 0;
        text-align: center;
    }

    .footer-left .footer-logo {
        margin: 0 auto;   /* pastikan logo center */
        width: 110px;
        height: auto;
    }

    .footer-left h2 {
        font-size: 14px;
        margin: 0 auto;   /* pastikan teks center */
        text-align: center;
    }

    /* Kanan */
    .footer-right {
        text-align: left; /* contact info tetap rata kiri */
        width: 100%;
        margin-left: 0;
    }

    .footer-right h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .contact-info {
        font-size: 11px;
        line-height: 1.5;
    }

    .contact-info li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 10px;
        white-space: normal;
    }

    .contact-info i {
        flex-shrink: 0;
        margin-right: 8px;
        line-height: 1.2;
    }

    /* Sosial icon */
    .social-icons {
        justify-content: flex-start;
        margin-top: 15px;
    }

    .social-icons a {
        font-size: 16px;
        margin-right: 10px;
    }

    /* Footer bottom */
    .footer-bottom {
        font-size: 12px;
        text-align: center;
        margin-top: 20px;
        padding-top: 10px;
    }
}
