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

:root {
  --primary-color: #0d833b; /* Official Government Green */
  --primary-dark: #005622;
  --primary-light: #e6f4ea;
  --secondary: #ffffff;
  --accent: #1e3a8a; /* Deep Blue for accent */
  --text-dark: #333333;
  --text-light: #666666;
  --border-color: #e2e8f0;
  --bg-color: #f8fafc;
  --success: #16a34a;
  --danger: #dc2626;
  --font-main: 'Roboto', Arial, sans-serif;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header & Navigation */
.header {
  background-color: var(--primary-color);
  color: var(--secondary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

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

.logo-section img {
  height: 50px;
  width: auto;
  background: white;
  border-radius: 50%;
  padding: 2px;
}

.logo-title {
  display: flex;
  flex-direction: column;
}

.logo-title h1 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin: 0;
}

.logo-title span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.navbar {
  display: flex;
  gap: 20px;
}

.navbar a {
  color: var(--secondary);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background-color 0.3s ease;
}

.navbar a:hover, .navbar a.active {
  background-color: var(--primary-dark);
  color: var(--secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 86, 34, 0.8), rgba(0, 86, 34, 0.8)), url('https://images.unsplash.com/photo-1594511252781-d242a32ec4e3?auto=format&fit=crop&q=80') center/cover;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 6px rgba(13, 131, 59, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--primary-color);
}

.btn-white:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Content Sections */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Card */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  border-top: 4px solid var(--primary-color);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Form Styles */
.form-section {
  margin-bottom: 30px;
}

.form-section-title {
  font-size: 1.2rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group label span {
  color: var(--danger);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 131, 59, 0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.file-upload {
  border: 2px dashed var(--border-color);
  padding: 20px;
  text-align: center;
  border-radius: var(--radius);
  background: #fafafa;
  transition: all 0.3s ease;
}

.file-upload:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

/* Spinner */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: none;
  font-weight: 500;
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Lists */
.styled-list {
  list-style: none;
}

.styled-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.styled-list li:last-child {
  border-bottom: none;
}

.styled-list i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 3px;
}

/* Status Result */
.status-result {
  margin-top: 30px;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  display: none;
}

.status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 10px;
}

.status-approved {
  background-color: #dcfce7;
  color: #166534;
}

.status-review {
  background-color: #fef9c3;
  color: #854d0e;
}

.status-rejected {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #f3f4f6;
  margin-top: auto;
}

.footer-top {
  padding: 60px 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  border-bottom: 1px solid #374151;
}

.footer-col h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #d1d5db;
}

.footer-col a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #d1d5db;
}

.footer-contact i {
  color: var(--primary-color);
  margin-top: 4px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  padding: 40px 30px;
  position: relative;
  text-align: center;
  animation: modalScale 0.3s ease-out;
}

@keyframes modalScale {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.modal-icon.success { color: var(--success); }
.modal-icon.info { color: var(--accent); }

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.modal-body {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

.modal-footer {
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
  }

  .navbar.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
