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

:root {
  --primary-green: #375F27;
  --secondary-green: #E8F5E9;
  --light-green: #B2D8B2;
  --button-green: #294A1F;
  --text-dark: #333333;
  --text-gray: #666666;
  --bg-color: #F8F9FA;
  --border-color: #E0E0E0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
}

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

.logo-img {
  width: 50px;
  height: 50px;
  background-color: #A3C9A3;
}

.logo-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-text p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 5px;
  transition: all 0.3s;
}

.nav-links a.active {
  background-color: var(--secondary-green);
  color: var(--primary-green);
}

/* Hero Section */
.hero {
  position: relative;
  height: 350px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  padding: 0 50px;
  background-image: url('../assets/images/hero_plantation.png');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
  max-width: 600px;
}

.hero-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1.1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.hero-image-box {
  position: absolute;
  right: 100px;
  bottom: 0;
  width: 200px;
  height: 250px;
  background-color: #FFFFFF;
  border: 4px solid var(--primary-green);
  z-index: 1;
  border-bottom: none;
  overflow: hidden;
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Content */
.main-content {
  display: flex;
  justify-content: space-between;
  padding: 40px 50px;
  background-color: #FFFFFF;
  gap: 40px;
}

.job-section {
  flex: 2;
}

.job-section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.job-section-header h3 {
  font-size: 1.2rem;
}

.job-section-header select {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.job-cards {
  display: flex;
  gap: 15px;
}

.job-card {
  background-color: var(--light-green);
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.job-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.job-card p {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.job-card .location {
  font-size: 0.85rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.job-card .btn-lamar {
  margin-top: auto;
  background-color: var(--button-green);
  color: #FFFFFF;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.why-join {
  flex: 1;
  background-color: #FFFFFF;
}

.why-join h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.why-list {
  list-style: none;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  font-weight: 500;
}

.why-list i {
  color: var(--primary-green);
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background-color: var(--primary-green);
  color: #FFFFFF;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-contact-details p {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #FFFFFF;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  background-color: #294A1F;
  color: #FFFFFF;
  padding: 10px;
  font-size: 0.8rem;
}

/* Form Styles */
.form-container {
  max-width: 1000px;
  margin: 40px auto;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 30px;
}

.form-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

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

.form-logo img {
  height: 40px;
}

.form-logo-text h2 {
  font-size: 1.3rem;
  color: var(--text-dark);
}

.form-logo-text p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info .badge {
  background-color: var(--secondary-green);
  color: var(--primary-green);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.user-info .name {
  color: #007BFF;
  font-weight: 600;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 50px;
  background-color: var(--primary-green);
  color: #FFFFFF;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.top-bar a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  font-weight: 500;
}

.top-bar a:hover {
  color: #FFFFFF;
  opacity: 1;
}

.top-bar .btn-logout {
  background-color: #D32F2F;
  padding: 6px 15px;
  border-radius: 4px;
  color: white;
  font-weight: 600;
}

.top-bar .btn-logout:hover {
  background-color: #B71C1C;
  transform: translateY(-1px);
}

.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  background-color: #FFFFFF;
  padding: 0 5px;
}

.step.active {
  color: var(--text-dark);
  font-weight: 600;
}

.step-number {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #B0BEC5;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
}

.step.active .step-number {
  width: 26px;
  height: 26px;
  background-color: #4CAF50;
  color: #FFFFFF;
}

.form-section-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 20px;
  margin-top: 15px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  position: absolute;
  top: -8px;
  left: 10px;
  background-color: #FFFFFF;
  padding: 0 5px;
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 0;
  z-index: 1;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #B0BEC5;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: transparent;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-green);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-secondary {
  background-color: #E0E0E0;
  color: var(--text-dark);
}

.btn-primary {
  background-color: var(--primary-green);
  color: #FFFFFF;
}

/* RESPONSIVE DESIGN (MOBILE) */
@media (max-width: 768px) {
  /* Header */
  .header {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    background: #E8F5E9;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.95rem;
  }
  .job-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .job-section-header > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .job-section-header select {
    width: 100%;
  }

  /* Hero Section */
  .hero {
    padding: 0 20px;
    height: 250px;
  }
  .hero-content h2 {
    font-size: 1.5rem;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .hero-image-box {
    display: none; /* Hide box image on mobile */
  }

  /* Main Content */
  .main-content {
    flex-direction: column;
    padding: 20px;
  }
  .job-cards {
    flex-direction: column;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    text-align: center;
  }

  /* Top Bar Form */
  .top-bar {
    flex-direction: column;
    padding: 10px 15px;
    gap: 10px;
    text-align: center;
  }
  .top-bar-right {
    gap: 15px;
  }

  /* Form Container */
  .form-container {
    margin: 15px;
    padding: 15px;
  }
  .form-header-top {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  /* Stepper */
  .stepper {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
  }
  .stepper::before {
    display: none; /* Hide line on mobile to prevent mess */
  }
  .step span.step-text {
    display: none; /* Hide step text, only show circle/number */
  }

  /* Form Grid */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-group.full-width {
    grid-column: span 1;
  }

  /* Experience / Family tables on mobile */
  .family-table, .data-table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  

}
/* MOBILE APP FEEL (BPJS STYLE) */
@media (max-width: 768px) {
  /* Bottom Navigation Bar */
  body {
    padding-bottom: 70px; /* Space for bottom nav */
    background-color: #F0F2F5;
  }
  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }
  
  /* Form Container App Style */
  .form-container {
    margin: 10px;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  }
  
  /* Form Inputs App Style */
  .form-group input, .form-group select, .form-group textarea {
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    background-color: #FAFAFA;
    padding: 16px 14px;
    font-size: 1rem;
    transition: all 0.2s;
  }
  .form-group input:focus, .form-group select:focus {
    background-color: #FFFFFF;
    border-color: #375F27;
    box-shadow: 0 0 0 3px rgba(55, 95, 39, 0.1);
  }
  
  /* Sticky Bottom Action Buttons for Form */
  .form-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    padding: 15px 20px;
    margin-top: 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
    z-index: 999;
    justify-content: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
  .form-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 50px; /* Pill shape like BPJS */
  }
  
  /* Stepper App Style */
  .stepper {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    justify-content: center;
    gap: 15px;
  }
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}
