/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Bar */
.navbar {
  background-color: #2f4f4f;
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
}

.navbar .nav-menu {
  list-style: none;
  display: flex;
}

.navbar .nav-menu li {
  margin-left: 20px;
}

.navbar .nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.navbar .hamburger {
  display: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%), url('image3.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 32, 65, 0.7);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0;
}

.hero-content {
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  margin-bottom: 30px;
}

.hero-title-main {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title-sub {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  color: #e8f1ff;
  letter-spacing: 1px;
}

.hero-description {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #e8f1ff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
  color: white;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(183, 28, 28, 0.3);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 28, 28, 0.4);
  background: linear-gradient(135deg, #d32f2f 0%, #e53935 100%);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid white;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: white;
  color: #1e3c72;
  transform: translateY(-2px);
}

/* Features Section */
.features {
  padding: 100px 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1e3c72 0%, #b71c1c 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card.featured {
  border: 2px solid #1e3c72;
  transform: scale(1.05);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: rotateY(360deg);
}

.feature-icon-wrapper i {
  font-size: 36px;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #6c757d;
  margin-bottom: 20px;
}

.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.highlight-item {
  font-size: 0.9rem;
  color: #1e3c72;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.highlight-item i {
  color: #4caf50;
  font-size: 0.8rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 50px;
}

.cta-text {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 20px;
}

.btn-cta {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

/* Statistics Section */
.stats-section {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-item i {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Referrals Table */
.referrals-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.referrals-table th,
.referrals-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.referrals-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.referrals-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.referrals-table tr:hover {
  background-color: #f1f1f1;
}

.table-responsive {
  overflow-x: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  cursor: pointer;
  border: none;
}

.btn-small {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-primary {
  background-color: #007BFF;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: #6c757d;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

/* Status Labels */
.status-completed {
  color: green;
  font-weight: bold;
}

.status-pending {
  color: orange;
  font-weight: bold;
}

/* Forms inside table cells */
table form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

table form label {
  margin-right: 5px;
}

table form select {
  flex: 1;
  min-width: 120px;
}

table form .btn {
  flex-shrink: 0;
  margin-left: 0;
}

/* Footer */
footer {
  background-color: #2f4f4f;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

footer p {
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .feature-item {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .navbar .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #2f4f4f;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    border-top: 1px solid #fff;
  }

  .navbar .nav-menu.active {
    display: flex;
  }

  .navbar .nav-menu li {
    margin: 15px 0;
  }

  .navbar .hamburger {
    display: block;
  }

  .feature-item {
    width: 100%;
  }

  /* New responsive styles for updated features */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card.featured {
    transform: scale(1);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title-main {
    font-size: 2.5rem;
  }

  .hero-title-sub {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  /* Adjust forms inside table cells for mobile */
  table form {
    flex-direction: column;
    align-items: flex-start;
  }

  table form label,
  table form select,
  table form .btn {
    width: 100%;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .hero-title-main {
    font-size: 2rem;
  }

  .hero-title-sub {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
    padding: 0 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 300px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, -30px);
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 100px auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px; /* Could be more or less, depending on screen size */
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Adjust form styles within the modal */
.modal .login-form {
    max-width: 100%;
    margin: 0;
}

.modal .login-form .form-group {
    margin-bottom: 15px;
}

.modal .login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal .login-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal .login-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.error-message {
    color: red;
    margin-bottom: 15px;
    text-align: center;
}

/* Registration Form Styles */
.register-form {
  max-width: 400px;
  margin: 0 auto;
  /* ... similar styles as login-form ... */
}

/* Referral Form Styles */
.referral-form-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.referral-form-section h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}

.referral-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.referral-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.referral-form input,
.referral-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.referral-form textarea {
  resize: vertical;
}

.referral-form input:focus,
.referral-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.referral-form .btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

.referral-form .btn-primary {
  background-color: #007bff;
  color: #ffffff;
}

.referral-form .btn-primary:hover {
  background-color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .referral-form {
      padding: 0 20px;
  }
}

/* Thank You Section Styles */
.thank-you-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("thank_you.png") center/cover no-repeat;
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.thank-you-section h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 64px;
  margin-bottom: 20px;
  animation: fadeInDown 1s;
}

.thank-you-message {
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-message img {
  width: 200px;
  margin-bottom: 30px;
  animation: zoomIn 1s;
}

.thank-you-message p {
  font-size: 24px;
  line-height: 1.6;
  margin-bottom: 20px;
  animation: fadeIn 1s;
}

.thank-you-message .btn {
  margin-top: 30px;
  animation: fadeInUp 1s;
}

@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-50px);
  } to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  } to {
      opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(50px);
  } to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
      opacity: 0;
      transform: scale(0.5);
  } to {
      opacity: 1;
      transform: scale(1);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .thank-you-section {
      padding: 60px 20px;
  }

  .thank-you-section h1 {
      font-size: 48px;
  }

  .thank-you-message p {
      font-size: 20px;
  }
}

/* ... existing styles ... */

/* Main Content Styles */
main.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

main h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  color: #333;
}

/* Evaluation Form Styles */
.evaluation-form {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.evaluation-form .form-section {
  margin-bottom: 40px;
}

.evaluation-form h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #0056b3;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 10px;
}

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

.evaluation-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.evaluation-form input[type="text"],
.evaluation-form input[type="date"],
.evaluation-form input[type="number"],
.evaluation-form input[type="email"],
.evaluation-form input[type="tel"],
.evaluation-form select,
.evaluation-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
}

.evaluation-form input[type="file"] {
  padding: 5px 0;
}

.evaluation-form input:focus,
.evaluation-form textarea:focus,
.evaluation-form select:focus {
  border-color: #0056b3;
  outline: none;
}

/* Checkbox and Radio Button Styles */
.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
}

.checkbox-item,
.radio-item {
  margin-right: 20px;
  margin-bottom: 10px;
}

.checkbox-item input,
.radio-item input {
  margin-right: 8px;
}

.checkbox-item label,
.radio-item label {
  font-weight: normal;
}

/* Submit Button */
.evaluation-form .btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  background-color: #0056b3;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.evaluation-form .btn:hover {
  background-color: #003d80;
}

/* Responsive Styles */
@media (max-width: 768px) {
  main h1 {
      font-size: 28px;
  }

  .evaluation-form h2 {
      font-size: 24px;
  }

  .evaluation-form .btn {
      font-size: 16px;
  }
}

.pdf-icon {
  color: #ff0000;
  font-size: 1.2em;
  margin-left: 5px;
  vertical-align: middle;
  align-items: center;
}

/* Container for the custom select */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Style the select element */
.custom-select-wrapper select {
  appearance: none; /* Remove default styling */
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
  cursor: pointer;
}

/* Add a custom arrow icon */
.custom-select-wrapper::after {
  content: '\25BC'; /* Unicode for down arrow */
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none; /* Allow clicks to pass through */
  font-size: 12px;
  color: #333;
}

.custom-select-wrapper select {
  -webkit-appearance: none; /* Safari and Chrome */
  -moz-appearance: none;    /* Firefox */
  appearance: none;
}

.custom-select-wrapper {
  width: 100%;
}

.custom-select-wrapper select {
  width: 100%;
}

/* Dropdown wrapper */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* Style the dropdown */
.custom-select-wrapper select {
  appearance: none;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
}

/* Add a custom arrow */
.custom-select-wrapper::after {
  content: '\25BC'; /* Unicode for down arrow */
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none; /* Make it non-clickable */
  font-size: 14px;
  color: #333;
}

/* Hover effect for dropdown */
.custom-select-wrapper select:hover {
  border-color: #007bff;
}

/* Focus effect for dropdown */
.custom-select-wrapper select:focus {
  border-color: #0056b3;
  outline: none;
}
/* Assigned Inspector Display */
.assigned-inspector {
  font-size: 14px;
  color: #007bff;
  margin-bottom: 8px;
}

.assigned-inspector .inspector-name {
  font-weight: bold;
  color: #333;
}

/* Improved Referrals Page Layout */

/* Page Titles */
.page-title {
  font-size: 2rem;
  margin: 2rem 0 1rem 0;
  text-align: center;
  color: #2f4f4f;
}

/* Section Layout Wrappers */
.referrals-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.admin-referrals,
.inspector-referrals {
  margin-bottom: 3rem;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.5rem;
  color: #2f4f4f;
  margin: 0;
}

/* Register Button */
.register-button {
  margin: 0;
  align-self: flex-end;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: bold;
  margin-right: 5px;
}

.status-badge.pending {
  background-color: #ffcc80; /* Light Orange */
  color: #333;
}

.status-badge.completed {
  background-color: #c8e6c9; /* Light Green */
  color: #2e7d32;
}

.status-badge.assigned {
  background-color: #bbdefb; /* Light Blue */
  color: #0d47a1;
}

.status-badge.in-progress {
  background-color: #fff59d; /* Light Yellow */
  color: #f57f17;
}
