@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ================================
   GLOBAL STYLE
=================================*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f9f9f9;
  color: #222;
}

/* ================================
   NAVBAR
=================================*/
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center; /* Ensures vertical centering */
  padding: 20px 50px; /* Increased vertical padding */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  height: 80px; /* Fixed height for consistency */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo span {
  color: #0d2c6c;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

/* Nav Links Container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 15px; /* Consistent spacing with gap */
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
  line-height: normal; /* Reset line-height */
  padding: 5px 15px; /* Add click area */
  margin: 0; /* Remove margin, use gap instead */
}

nav a:hover,
nav a.active {
  color: #0d6efd;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #0d6efd;
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.btn-daftar {
  background: linear-gradient(135deg, #0d6efd, #004aad);
  color: #fff !important;
  border: none;
  padding: 10px 24px; /* Adjusted padding */
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  margin-left: 10px; /* Slight extra separation */
  line-height: normal;
}

.btn-daftar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-daftar::after {
  display: none; /* remove underline for button */
}

/* ================================
   HERO BANNER
=================================*/
.banner {
  background: linear-gradient(120deg, #f0f4ff 0%, #ffffff 100%);
  text-align: center;
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.banner-content h1 {
  font-size: 56px;
  font-weight: 800;
  color: #0d2c6c;
  margin-bottom: 20px;
  line-height: 1.2;
}

.banner-content h1 span {
  color: #0d6efd;
  background: -webkit-linear-gradient(45deg, #0d6efd, #00c6ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner-content p {
  color: #666;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-explore {
  display: inline-block;
  background: #fff;
  color: #0d6efd;
  border: 2px solid #0d6efd;
  padding: 12px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-explore:hover {
  background: #0d6efd;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

/* ================================
   GRID UKM
=================================*/
.ukm-section {
  padding: 80px 60px;
  background: #fff;
}

.ukm-section h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0d2c6c;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.ukm-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #0d6efd;
  margin: 10px auto 0;
  border-radius: 2px;
}

.ukm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.ukm-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 320px;
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.02);
}

.ukm-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
  border-color: rgba(13, 110, 253, 0.1);
}

.ukm-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: none;
  transition: transform 0.5s ease;
}

.ukm-card:hover .ukm-image {
  transform: scale(1.1);
}

.ukm-card button {
  background: #fff;
  color: #333;
  border: none;
  padding: 20px;
  width: 100%;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ukm-card:hover button {
  color: #0d6efd;
}

/* ================================
   FORM SECTION
=================================*/
/* ================================
   FORM SECTION
=================================*/
.form-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-section h2 {
  text-align: center;
  font-weight: 700;
  color: #0d2c6c;
  margin-bottom: 35px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
}

label span {
  color: red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
  background: #fdfdfd;
  color: #333;
  height: 48px; /* Force consistent height */
  appearance: none; /* Normalize native UI */
  -webkit-appearance: none;
  -moz-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px; /* Space for arrow */
}

input:focus,
select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
  background-color: #fff;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

.radio-group label {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.radio-group label:hover {
  border-color: #0d6efd;
  color: #0d6efd;
}

.radio-group input {
  margin-right: 8px;
  width: auto; /* Reset width for radio */
  height: auto; /* Reset height for radio */
  accent-color: #0d6efd;
}

/* ================================
   FORM BUTTONS
=================================*/
.btn-container {
  text-align: right;
  margin-top: 30px;
}

.btn-next,
.btn-back {
  border: none;
  padding: 14px 45px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-next {
  background: linear-gradient(135deg, #0d6efd, #004aad);
  color: #fff;
}

.btn-next:hover {
  background: linear-gradient(135deg, #0b5ed7, #003a8c);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(13, 110, 253, 0.25);
}

.btn-back {
  background: #f1f3f5;
  color: #495057;
  margin-right: 15px;
}

.btn-back:hover {
  background: #e9ecef;
  transform: translateY(-2px);
  color: #212529;
}

/* ================================
   STEP INDICATOR
=================================*/
.step-container {
  margin: 40px auto 20px;
  max-width: 600px;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step p {
  font-size: 14px;
  margin-top: 10px;
  color: #888;
  font-weight: 500;
  transition: color 0.3s;
}

.step.active p {
  color: #0d6efd;
  font-weight: 700;
}

.circle {
  width: 32px;
  height: 32px;
  line-height: 28px;
  border: 2px solid #e0e0e0;
  background: #fff;
  border-radius: 50%;
  margin: 0 auto;
  font-weight: 700;
  color: #e0e0e0;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step.active .circle {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.line {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

/* ================================
   UPLOAD BOX
=================================*/
.upload-group {
  margin-top: 20px;
}

.upload-box {
  border: 2px dashed #0d6efd;
  border-radius: 10px;
  text-align: center;
  padding: 30px;
  background: #f8fbff;
  position: relative;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-box:hover {
  background: #eef5ff;
  border-color: #0a58ca;
}

.upload-box img {
  width: 50px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.upload-box p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.upload-box input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  cursor: pointer;
}

/* Upload preview */
#preview {
  margin-top: 15px;
  text-align: center;
}

#preview img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #0d6efd;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: block;
  margin: 15px auto 0;
}

/* ================================
   FOOTER
=================================*/
footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 13px;
  margin-top: 60px;
}

/* ================================
   FORM PAGE DISPLAY CONTROL
=================================*/
.form-page {
  display: none;
}
.form-page.active {
  display: block;
}

/* ================================
   ANIMATION
=================================*/
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   RESPONSIVE DESIGN
=================================*/
@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
    flex-wrap: wrap;
    height: auto; /* Allow height to grow for menu */
    min-height: 80px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: 15px;
    border-top: 1px solid #eee;
    gap: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin: 5px 0;
    display: block;
    width: 100%;
    padding: 10px;
  }

  .btn-daftar {
    margin-left: 0;
    margin-top: 10px;
    display: inline-block;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #003366;
    border-radius: 2px;
  }

  .banner {
    padding: 60px 20px;
  }

  .banner-content h1 {
    font-size: 32px;
  }

  .ukm-section {
    padding: 40px 20px;
  }

  .ukm-grid {
    grid-template-columns: 1fr;
  }
  
  .ukm-card {
    width: 100%;
    max-width: 100%; /* Full width on mobile */
  }

  .form-section {
     padding: 25px 20px;
     margin: 20px auto;
     width: 90%;
  }
  
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Compact Horizontal Steps for Mobile */
  .step-container {
    margin: 30px auto;
    width: 90%;
  }

  .steps {
    flex-direction: row; /* Keep horizontal but smaller */
    justify-content: space-around;
    gap: 10px;
    padding-left: 0;
  }

  .line {
    display: block; /* Show line again */
    top: 14px; /* Adjust vertical pos */
    width: 70%; /* Shorten slightly */
  }

  .step p {
    font-size: 11px; /* Smaller text */
    margin-top: 5px;
  }

  .circle {
    width: 28px; /* Smaller circle */
    height: 28px;
    line-height: 24px;
    font-size: 12px;
  }
  
  /* Mobile Buttons */
  .btn-container {
    text-align: center;
    display: flex;
    flex-direction: column-reverse; /* Back button below Next */
    gap: 15px;
  }

  .btn-next,
  .btn-back {
    width: 100%; /* Full width buttons */
    margin-right: 0;
    padding: 14px 0;
  }
}

@media (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }
  
  .nav-links {
    display: flex !important;
  }
}
