/* === RESET & BASE LAYOUT === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #000;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0px;
}

/* For landing page specifically, ensure proper flex layout */
body:has(.landing-navbar) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === TYPOGRAPHY === */
h2 {
  margin-top: 0;
  color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

label {
  font-weight: bold;
  margin-top: 10px;
}

/* === FORM ELEMENTS === */
input, textarea, select, button {
  margin-top: 5px;
  padding: 10px;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

button {
  background-color: black;
  color: gold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

button:hover {
  background-color: darkgoldenrod;
}

button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

/* === NAVIGATION & HEADERS === */
.navbar {
  background-color: black;
  color: gold;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar a {
  color: gold;
  text-decoration: none;
  margin: 0 10px;
}

.navbar a:hover {
  text-decoration: underline;
}

.navbar-right {
  text-align: right;
}

.topbar {
  background-color: black;
  color: gold;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 40px; /* Explicit height */
  box-sizing: border-box;
}

.logout {
  color: gold;
  font-weight: bold;
  text-decoration: none;
}

.header, header {
  background-color: black;
  color: gold;
  padding: 60px 0px 10px;
  text-align: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header h1, header h1 {
  margin: 0;
  font-size: 25px;
  padding: 0;
}

/* === LANDING PAGE SPECIFIC === */
.landing-navbar {
  background-color: black;
  color: gold;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1001;
  border-bottom: 1px solid #333;
  height: 70px;
  box-sizing: border-box;
}

.landing-navbar .logo {
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.landing-header {
  background-color: black;
  color: gold;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 70px;
  z-index: 1000;
  height: 50px;
  box-sizing: border-box;
}

.landing-header a {
  color: gold;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-size: 16px;
}

.landing-header a:hover {
  background-color: darkgoldenrod;
  text-decoration: none;
}

.hero {
  padding: 80px 20px;
  background: linear-gradient(rgba(240, 240, 240, 0.9), rgba(240, 240, 240, 0.9)), 
              url('https://images.unsplash.com/photo-1605192493030-11205f2710d8?fit=crop&w=1950&q=80') no-repeat center center/cover;
  color: black;
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0; /* Remove any top margin */
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  color: gold;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons a {
  background-color: black;
  color: gold;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.2s;
  min-width: 140px;
  text-align: center;
}

.cta-buttons a:hover {
  background-color: darkgoldenrod;
}

.landing-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.landing-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: black;
}

.landing-section p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-box {
  background: white;
  border: 2px solid black;
  border-radius: 10px;
  padding: 25px;
  transition: 0.3s;
  text-align: center;
}

.feature-box:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

.feature-box h3 {
  margin-top: 0;
  color: black;
  font-size: 18px;
}

.testimonial {
  background: white;
  border: 2px solid black;
  border-left: 6px solid gold;
  border-radius: 10px;
  padding: 25px;
  margin: 20px auto;
  max-width: 700px;
  font-style: italic;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* === HOW IT WORKS SECTION === */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step-card {
  background: white;
  border: 2px solid black;
  border-radius: 10px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s;
}

.step-card:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

.step-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.step-card h3 {
  color: black;
  margin-bottom: 15px;
  font-size: 20px;
}

.step-card p {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.5;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.trust-indicators {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 16px;
  color: #333;
}

.trust-indicators span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.testimonial-content {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.6;
}

.testimonial-author {
  text-align: right;
  font-size: 14px;
  color: #666;
}

.cta-section {
  background-color: #f5f5f5;
  padding: 60px 20px;
  margin: 40px 0 0 0;
  flex-grow: 1;
}

/* === LOGOS === */
.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.logo-img {
  height: 28px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.badge-logo {
  height: 20px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-logo-img {
  height: 24px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

/* === CONTENT & GRIDS === */
.content {
  flex: 1;
  padding: 20px 30px 60px;
  max-width: 1200px;
  margin: auto;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.grid-top, .grid {
  display: grid;
  gap: 20px;
}

.grid-top {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 30px;
}

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

/* === CARDS === */
.card {
  background: #fafafa;
  border: 2px solid black;
  border-radius: 10px;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: 0.3s;
  position: relative;
}

.card:hover {
  background: darkgoldenrod;
  transform: translateY(-5px);
}

.badge {
  background: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 5px 8px;
  position: absolute;
  top: 0;
  right: 0;
}

/* === BUTTONS === */
.view-details-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: black;
  color: gold;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.view-details-btn:hover {
  background-color: darkgoldenrod;
}

.disabled-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: grey;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  pointer-events: none;
  cursor: default;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

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

/* === FORMS & PROFILES === */
.form-section, .notification-form-section {
  max-width: none; /* Remove the 700px constraint */
  margin: auto;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.profile-card {
  /* Remove width constraints - let it fill container naturally like agency profile */
  display: flex;
  flex-wrap: wrap;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 30px;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 20px;
}

.profile-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.name-and-licenses {
  display: flex;
  flex-direction: column;
}

.officer-name {
  font-weight: bold;
  font-size: 18px;
}

.certifications {
  margin-top: 10px;
  color: #444;
}

.language-tags {
  text-align: right;
  font-size: 14px;
  font-weight: bold;
}

.stats, .stat-box {
  margin-top: 15px;
  font-size: 15px;
  background-color: rgba(255, 217, 0, 0.781);
  padding: 10px;
  border-radius: 8px;
  line-height: 1.6;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.05);
}

.stat-box {
  font-size: 20px;
}

.stats div {
  margin-bottom: 6px;
}

form {
  display: none;
  flex-direction: column;
  margin-top: 10px;
}

.form-active, .profile-form-active {
  display: flex !important;
}

.license-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.license-row input, .license-row select {
  flex: 0.5;
  font-size: 12px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 20px;
}

.checkbox-group label {
  background-color: #f1f1f1;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-group input[type="checkbox"] {
  transform: scale(1.1);
}

/* === JOB LISTINGS === */
ul {
  list-style: none;
  padding: 0;
}

li {
  background: white;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid black;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  position: relative;
}

li:hover {
  background-color: #f0f0f0;
}

.urgency-banner {
  font-weight: bold;
  padding: 6px 10px;
  color: white;
  border-radius: 6px;
  margin-bottom: 10px;
  display: inline-block;
}

.critical-fill { background-color: red; }
.urgent { background-color: orange; }
.standard { background-color: green; }

.job-detail {
  margin: 8px 0;
}

.bottom-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 14px;
}

.agency-link {
  text-decoration: none;
  color: darkgoldenrod;
  font-weight: bold;
}

.agency-link:hover {
  text-decoration: underline;
  cursor: pointer;
}

.pay-rate {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* === FILTERS === */
.filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.filter-section label {
  font-weight: bold;
}

.filter-section fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.filter-section legend {
  font-size: 14px;
  margin-bottom: 5px;
}

.filter-collapse summary {
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  font-size: 15px;
}

.sort-container {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
  border: none;
  padding: 0;
}

.checkbox-item {
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.checkbox-item:hover {
  background: #e0e0e0;
}

.checkbox-item input {
  flex-shrink: 0;
}

/* === MODALS & DIALOGS === */
dialog {
  border: none;
  border-radius: 10px;
  padding: 20px;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

dialog form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

dialog button {
  margin-top: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* === DROPDOWNS === */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: black;
  color: gold;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  padding: 10px;
  z-index: 1000;
}

.dropdown-content a {
  color: gold;
  padding: 5px 10px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: darkgoldenrod;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* === UTILITIES === */
.section-label, .profile-section-label {
  font-size: 20px;
  font-weight: bold;
  margin: 30px 0 10px;
}

.profile-section-label {
  margin: 20px 0 10px;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  top: -30px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 10;
}

.remove-account-link {
  float: right;
  font-size: 0.5em;
  color: red;
  text-decoration: underline;
  cursor: pointer;
  margin-top: -10px;
  margin-bottom: 75px;
}

.countdown {
  font-weight: bold;
  color: darkgoldenrod;
}

/* === ERROR PAGES === */
.error-container {
  max-width: 500px;
  padding: 40px;
  background: white;
  border: 2px solid black;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.error-icon {
  font-size: 64px;
  color: #ff6b6b;
  margin-bottom: 20px;
}

.error-container h1 {
  color: #000;
  margin-bottom: 15px;
}

.error-container p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* === FOOTER === */
.feedback-footer {
  text-align: right;
  margin: 10px 10px 0 0;
}

.feedback-footer a {
  text-decoration: none;
  color: darkgoldenrod;
  font-size: 14px;
}

footer, .landing-footer {
  background-color: black;
  color: gold;
  text-align: center;
  padding: 30px 20px;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  width: 100%;
}

/* Keep fixed footer for non-landing pages */
footer {
  border-top: 1px solid #ccc;
  padding: 5px 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 0;
}

/* === Agency Landing Page === */
.stats-section {
  background-color: black;
  color: gold;
  padding: 40px 20px;
  text-align: center;
  margin: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.stat-number {
  font-size: 28px;
  font-weight: bold;
  display: block;
  color: black;
}

.stat-label {
  font-size: 14px;
  margin-top: 5px;
  color: black;
}

.agency-hero {
  background: linear-gradient(rgba(240, 240, 240, 0.9), rgba(240, 240, 240, 0.9)), 
              url('https://images.unsplash.com/photo-1557804506-669a67965ba0?fit=crop&w=1950&q=80') no-repeat center center/cover;
}

.final-cta {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
  margin: 40px 0;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .landing-navbar {
    padding: 12px 15px;
    position: relative; /* Remove sticky on mobile */
    height: auto;
  }

  .landing-navbar .logo {
    font-size: 24px;
  }
  
  .landing-header {
    gap: 20px;
    padding: 12px 15px;
    flex-wrap: wrap;
    position: relative; /* Remove sticky on mobile */
    top: auto;
    height: auto;
  }
  
  .landing-header a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .hero {
    padding: 60px 15px;
    min-height: 350px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons a {
    width: 200px;
  }

  .landing-section {
    padding: 40px 15px;
  }

  .landing-section h2 {
    font-size: 24px;
  }

  .features-grid, .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .testimonial {
    margin: 15px;
    padding: 20px;
  }

  .logo-img {
    height: 24px;
  }

  .badge-logo {
    height: 18px;
  }

  .footer-logo-img {
    height: 20px;
  }

  .stat-number {
    font-size: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .trust-indicators {
    gap: 15px;
    font-size: 16px;
  }

  .step-card {
    padding: 20px 15px;
  }

  .step-icon {
    font-size: 36px;
  }

  .step-card h3 {
    font-size: 25px;
  }
}

@media (max-width: 500px) {
  .header h1, header h1 {
    font-size: 18px;
  }

  dialog {
    width: 90%;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
  }

  .name-and-licenses, .language-tags {
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .landing-section h2 {
    font-size: 22px;
  }

  .landing-navbar {
    height: auto;
    padding: 8px 10px;
    position: relative;
  }

  .landing-navbar .logo {
    font-size: 20px;
  }

  .landing-header {
    gap: 10px;
    padding: 8px 10px;
    top: auto;
    height: auto;
    position: relative;
  }

  .landing-header a {
    font-size: 12px;
    padding: 4px 6px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trust-indicators {
    flex-direction: row;
    gap: 20px;
  }

  .cta-section {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  .landing-navbar {
    padding: 8px;
    height: auto;
    position: relative;
  }

  .landing-navbar .logo {
    font-size: 18px;
  }
  
  .landing-header {
    top: auto;
    height: auto;
    padding: 6px 8px;
    gap: 8px;
    position: relative;
  }

  .landing-header a {
    font-size: 11px;
    padding: 3px 5px;
  }

  .hero {
    padding: 30px 8px;
    min-height: 300px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .landing-section {
    padding: 25px 8px;
  }

  .step-card, .feature-box, .testimonial {
    margin: 8px 0;
    padding: 12px;
  }

  .trust-indicators {
    font-size: 16px;
  }

  .cta-buttons a {
    padding: 12px 20px;
    font-size: 14px;
  }
}