/* IMPORT GLOBAL STYLE (NAVBAR, FOOTER, BASE) */
@import url("style.css");
@import url("project.css");

/* ROOT VARIABLE — WARNA & BACKGROUND GLOBAL */
:root {
  --red-primary: #e50914;
  --black: #111111;
  --white: #ffffff;
  --bg-hero: url("../img/header-res.jpg");
}

/* ====== HERO SECTION ====== */
.hero-reservasi {
  position: relative;
  background: url("../img/header-res.jpg") center/cover no-repeat;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-reservasi .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.hero-reservasi .container {
  position: relative;
  z-index: 2;
}
.hero-reservasi h1 {
  font-weight: 700;
  font-size: 48px;
  letter-spacing: 1px;
}
.hero-reservasi p {
  color: var(--white);
  font-size: 16px;
}

.hero-reservasi a {
  color: var(--red-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ====== FORM SECTION ====== */
.reservasi-form h3 {
  font-weight: 700;
  line-height: 1.5;
}
.reservasi-form .form-label {
  font-weight: 500;
}
.reservasi-form .form-control,
.reservasi-form .form-select {
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 10px 12px;
}
.reservasi-form .btn-danger {
  background-color: var(--red-primary);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: 0.3s;
}
.reservasi-form .btn-danger:hover {
  background-color: #b30710;
}

/* ============================
   RESPONSIVE FORM RESERVASI
   ============================ */

/* HP KECIL ≤ 360px */
@media (max-width: 360px) {
  .reservasi-form h3 {
    font-size: 1.2rem;
  }

  .reservasi-form .form-control,
  .reservasi-form .form-select {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .reservasi-form .btn-danger {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }
}

/* HP 361–480px */
@media (min-width: 361px) and (max-width: 480px) {
  .reservasi-form h3 {
    font-size: 1.3rem;
  }

  .reservasi-form .form-control,
  .reservasi-form .form-select {
    font-size: 0.9rem;
    padding: 9px 11px;
  }

  .reservasi-form .btn-danger {
    width: 100%;
    padding: 12px;
    font-size: 1.05rem;
  }
}

/* HP 481–576px */
@media (min-width: 481px) and (max-width: 576px) {
  .reservasi-form h3 {
    font-size: 1.35rem;
  }

  .reservasi-form .btn-danger {
    width: 100%;
    padding: 12px;
  }
}

/* TABLET PORTRAIT 577–768px */
@media (min-width: 577px) and (max-width: 768px) {
  .reservasi-form h3 {
    font-size: 1.5rem;
  }

  .reservasi-form .form-control,
  .reservasi-form .form-select {
    font-size: 0.95rem;
  }
}

/* TABLET LANDSCAPE 769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .reservasi-form .form-control,
  .reservasi-form .form-select {
    font-size: 1rem;
  }
}

/* DESKTOP ≥ 1366px */
@media (min-width: 1366px) {
  .reservasi-form .form-control,
  .reservasi-form .form-select {
    font-size: 1rem;
  }

  .reservasi-form h3 {
    font-size: 1.6rem;
  }
}

/* POPUP KONFIRMASI */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px 50px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: popIn 0.4s ease;
}

.popup-content i {
  font-size: 60px;
  color: #28a745;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================
   RESPONSIVE POPUP KONFIRMASI
   ============================ */

/* HP KECIL ≤ 360px */
@media (max-width: 360px) {
  .popup-content {
    width: 85%;
    padding: 25px 20px;
  }

  .popup-content i {
    font-size: 48px;
  }

  .popup-content h3 {
    font-size: 1.1rem;
  }

  .popup-content p {
    font-size: 0.85rem;
  }
}

/* HP 361–480px */
@media (min-width: 361px) and (max-width: 480px) {
  .popup-content {
    width: 80%;
    padding: 30px 25px;
  }

  .popup-content i {
    font-size: 55px;
  }

  .popup-content h3 {
    font-size: 1.2rem;
  }
}

/* HP 481–576px */
@media (min-width: 481px) and (max-width: 576px) {
  .popup-content {
    width: 75%;
  }
}

/* TABLET 577–768px */
@media (min-width: 577px) and (max-width: 768px) {
  .popup-content {
    width: 60%;
  }
}

/* TABLET LANDSCAPE & SMALL LAPTOP 769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .popup-content {
    width: 45%;
  }
}

/* DESKTOP ≥1366px */
@media (min-width: 1366px) {
  .popup-content {
    width: 35%;
  }
}

.popup {
  overflow-y: auto;
  padding: 20px;
}
