html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

header nav a {
  padding: 0.5rem 1.2rem;
  border: 2px solid #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s ease;
}

header nav a:hover {
  background: #fff; 
  color: #009879;
  border-color: #fff;
}

header nav a.filled {
  background: #fff;
  color: #009879;
}
header nav a.filled:hover {
  background: #00795f;
  color: #fff;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links a {
  margin-left: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.9);
  position: absolute;
  top: 60px;
  right: 5%;
  padding: 1rem;
  border-radius: 8px;
}
.mobile-nav a {
  color: #fff;
  padding: 0.5rem 0;
  text-align: right;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-nav.show { display: flex; }

  .hero .buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 320px;
  }
  .hero .buttons a {
    width: 100%;
    text-align: center;
  }
}

/* Hero Section */
.hero {
  background: url('images/walpaper-3.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 2vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero .buttons a {
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.hero .buttons .btn-daftar {
  background: #fff;
  color: #009879;
}
.hero .buttons .btn-daftar:hover {
  background: #00795f;
  color: #fff;
}
.hero .buttons .btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.hero .buttons .btn-outline:hover {
  background: #fff;
  color: #009879;
}

/* === FORM AREA === */
.form-area {
  width: 100%;
  max-width: 1000px;
  margin: 6rem auto 8rem auto;
  margin-bottom: 20rem;
}
#form-section {
  scroll-margin-top: 90px;
}
.form-titlewrap {
  text-align: center;
  margin-bottom: 3rem;
}
.form-title {
  color: #009879;
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem);
  margin-bottom: 0.35rem;
}
.form-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 6rem;
}

/* Card */
.form-card {
  position: relative;
  background: #fff;
  padding: 3rem 3rem 3rem 25rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  height: 360px;
}
.form-image {
  position: absolute;
  left: 0px;
  top: 34%;
  transform: translateY(-50%);
  z-index: 2;
}
.form-image img {
  width: 360px;
  height: auto;
  border-radius: 15px;
  content: url("images/Hand-Card-prolanis.png"); /* desktop default */
}

/* Inputs */
.form-card form {
  flex: 1;
  position: relative;
  z-index: 1;
}
.form-group {
  margin-bottom: 1rem;
  position: relative;
}
.form-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #009879;
  font-size: 1rem;
}
.form-group input {
  width: 100%;
  padding: 0.8rem 0.8rem 0.8rem 2.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 0.95rem;
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-row .form-group { flex: 1; }

.form-card button {
  width: 100%;
  padding: 0.9rem;
  border: none;
  background: #009879;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 0.5rem;
}
.form-card button:hover {
  background: #00795f;
}

/* Footer */
footer {
  background:url('images/Footer-Image.jpg');
  color: #fff;
  padding: 2rem 4rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 60%;
}
.footer-left p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .form-card {
    flex-direction: column;
  height: 560px;

    padding: 2rem;
  }

  .form-image {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .form-image img {
    width: 400px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    content: url("images/phone-mobile.png"); 
  }
  .form-row {
    flex-direction: column;
  }
}
