/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("../images/background.jpg") no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

@media(max-width:768px) {
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

.btn {
  margin: 0 15px;
  padding: 12px 25px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover,
.btnfield:hover {
  background: #218838;
}

/* Features Section */
.features {
  padding: 50px 10%;
  background: #f9f9f9;
  text-align: center;
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #333;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 15px;
}

.card:hover {
  transform: translateY(-10px);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #28a745;
}

.card p {
  font-size: 1rem;
  color: #555;
}

.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(60%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Google Font */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #d4fc79, #96e6a1);
  margin: 0;
  padding: 0;
}

/* Navbar */
.navbar {
  background: #2e7d32;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar h1 {
  margin: 0;
  font-size: 26px;
}

.navbar nav a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #ffeb3b;
}

/* Form Page Layout */
.form-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

/* Form Card */
.form-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.form-card h2 {
  margin-bottom: 10px;
  color: #2e7d32;
}

.form-card .subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

/* Inputs & Select */
form label {
  display: block;
  text-align: left;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

form input,
form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
  transition: border 0.3s, box-shadow 0.3s;
}

form input:focus,
form select:focus {
  border: 1px solid #2e7d32;
  box-shadow: 0px 0px 6px rgba(46, 125, 50, 0.3);
}

/* Button */
.btn {
  width: 100%;
  padding: 12px;
  background: #2e7d32;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #1b5e20;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #2e7d32;
  color: white;
  text-align: center;
  padding: 12px;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
  .form-card {
    padding: 25px 20px;
  }

  .navbar {
    flex-direction: column;
    text-align: center;
  }

  .navbar nav {
    margin-top: 10px;
  }
}

.grid .card div div {
  gap: 1vw;
}

/* Fix overflowing & spacing for buttons in field/dashboard cards */
.grid .card .btnfield {
  width: 100%;
  /* use full width of card */
  max-width: 100%;
  padding: 12px 0;
  display: block;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  font-size: 0.9rem;
  margin-top: 15px;
  background: #28a745;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s;
}

@media (max-width: 600px) {
  .grid .card .btn {
    width: 48%;
    /* two buttons can sit side by side */
    display: inline-block;
    margin: 4px 1%;
    /* tighter spacing */
  }

  .grid .card .btnfield {
    font-size: 0.8rem;
    width: 100%;
    /* keep form buttons full width */
  }
}

.dashboard-container h2 {
  margin: 13px;
}

.advisory-container h2 {
  margin: 13px;
}

@media(min-width:768px) {
  .together {
    display: flex;
    margin-bottom: 14px;
    flex-wrap: nowrap;
  }

  .together .btn {
    flex: 1;
    width: auto;
    text-align: center;
  }

  #deletered {
    width: 15vw;
    position: absolute;
    top: 10px;
    right: 5vw;
  }
}

#toggleDeleteBtn {

  background: rgb(200, 0, 0);
  color: white;
}

#toggleDeleteBtn:hover {
  background: rgb(150, 0, 0);
}

.card div div {
  display: flex;
  margin-top: 8px;
}

.card div div .btnfield:hover {
  cursor: pointer;
  background: #218838;
}

#deletered {
  background: rgb(210, 0, 0);
  color: white;
}

#deletered:hover {
  cursor: pointer;
  background: rgb(170, 0, 0);
}

#getStartedBtn {
  width: 150px;
}