/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea, #764ba2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.header {
  text-align: center;
  color: white;
  padding: 25px 15px 10px;
}

.header h1 {
  font-size: 26px;
}

.header p {
  font-size: 13px;
}

/* WRAPPER */
.wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* CONTAINER */
.container {
  display: flex;
  width: 900px;
  max-width: 100%;
  min-height: 450px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* LEFT */
.left {
  width: 50%;
  background: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644")
    center/cover;
  position: relative;
}

.left::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* .left-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
} */
.left-text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  width: 100%;
}

.left-text h2 {
  font-size: 20px;
}

/* RIGHT */
.right {
  width: 50%;
  background: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 0 25px 25px;
}

.right h2 {
  margin-bottom: 10px;
}

.right p {
  font-size: 13px;
  margin-bottom: 15px;
}

/* FORM */
input {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

button {
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #667eea;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #333;
}

/* COUNTDOWN */
#countdown {
  margin-top: 15px;
  font-size: 13px;
  color: #555;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 15px;
  color: white;
  font-size: 13px;
}

/* ========================= */
/* 📱 RESPONSIVE MOBILE */
/* ========================= */

@media (max-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .container {
    flex-direction: column;
    width: 100%;
    max-width: 400px; /* biar ga kepanjangan */
    margin: auto;
  }

  .left {
    width: 100%;
    height: 180px;
  }

  .right {
    width: 100%;
    text-align: center; /* ini biar isi tengah */
  }

  .right form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  input,
  button {
    width: 100%;
    max-width: 280px;
  }

  #countdown {
    text-align: center;
  }
}
@media (max-width: 480px) {
  input,
  button {
    font-size: 14px;
  }

  .right {
    padding: 20px;
  }
}
.countdown-box {
  margin-top: 15px;
  text-align: center;
}

.countdown-box h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

button:disabled {
  background: #999 !important;
  cursor: not-allowed;
}
