:root {
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --secondary: #134e4a;
  --accent: #5eead4;
  --bg: #111827;
  --text: #f3f4f6;
  --card-bg: #1f2937;
  --border: #374151;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: 70px;
  padding-bottom: 60px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}
.btn:hover {
  background: var(--primary-light);
}
.btn-secondary {
  background: var(--secondary);
}
.btn-secondary:hover {
  background: #244426;
}

.btn-danger {
  background: #dc3545;
}
.btn-danger:hover {
  background: #c82333;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

.form-row {
  margin-bottom: 1rem;
}
.form-row label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--text);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.form-row textarea {
  font-family: inherit;
  font-size: inherit;
  resize: vertical;
  min-height: 4.5rem;
}
.form-row input:disabled {
  color: lightgrey;
  background: var(--card-bg);
}
.form-row input[type=password] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg) !important;
  color: var(--text) !important;
  box-sizing: border-box;
}
.form-row input:-webkit-autofill,
.form-row input:-webkit-autofill:hover,
.form-row input:-webkit-autofill:focus,
.form-row input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

.form-row-two-col {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-row-two-col > div {
  flex: 1;
}
.form-row-two-col label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--text);
}
.form-row-two-col input, .form-row-two-col select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.card-bg {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
}

.message {
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
.message.error {
  background: #fee;
  color: #c00;
}
.message.success {
  background: #efe;
  color: #060;
}

.field-error {
  color: #c00;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.25rem;
}

.field-hint {
  color: #966400;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.field-hint:empty {
  display: none;
}
.field-hint:not(:empty) {
  display: block;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.checkbox-group label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  cursor: pointer;
}
.checkbox-group input[type=checkbox] {
  width: auto !important;
  height: auto !important;
  margin: 0;
  cursor: pointer;
}

.form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.form-modal-content {
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}
.form-modal-content h2 {
  margin-top: 0;
  color: var(--accent);
}

.urgent-badge {
  background: #ff6b6b;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  margin: 1rem 0;
  text-align: center;
}

header {
  background: var(--card-bg);
  color: white;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
}
header a {
  color: white;
  text-decoration: none;
  margin: 0 0.5rem;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

@media (max-width: 640px) {
  header {
    padding: 0.5rem 0.75rem;
  }
  .logo span {
    font-size: 1.1rem;
  }
  .logo img {
    height: 36px;
  }
  .nav-right {
    gap: 0.5rem;
  }
  #nav-donate {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 400px) {
  .logo span {
    display: none;
  }
}
#nav-donate {
  background-color: #ff6b6b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s;
}
#nav-donate:hover {
  background-color: #ee5a5a;
}

.user-menu {
  position: relative;
  margin-left: 0.5rem;
}
.user-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 999;
}
.user-menu:hover .user-dropdown {
  display: block;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: white;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.user-dropdown img {
  filter: brightness(0) invert(1);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: rgba(57, 59, 57, 0.9215686275);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  margin-top: 0;
  overflow: hidden;
  border: grey solid 1px;
  z-index: 1000;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 0;
  width: 100%;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
}
.user-dropdown a svg, .user-dropdown a .emoji-icon, .user-dropdown a .user-dropdown img, .user-dropdown a nav img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  font-size: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  filter: brightness(0) invert(1);
}
.user-dropdown a span:first-child {
  text-align: right;
}
.user-dropdown a:hover {
  background: #2e7d32;
  color: white;
}
.user-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}
.user-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
}
.user-dropdown a[href="/logout"] {
  color: #f44336;
  font-weight: bold;
}
.user-dropdown a[href="/logout"]:hover {
  background: #f44336;
  border-radius: 0 0 8px 8px;
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 44px;
  flex-shrink: 0;
  white-space: nowrap;
  margin: 0;
}
.logo img {
  width: auto;
  height: 100%;
}
.logo span {
  font-size: 1.5rem;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
}
footer a {
  color: var(--accent);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer span {
  color: var(--text);
}

.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}
.lang-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 999;
}
.lang-dropdown .lang-dropbtn {
  background: transparent;
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
}
.lang-dropdown .lang-dropbtn:hover {
  opacity: 0.8;
}
.lang-dropdown .lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: var(--secondary);
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 4px;
  top: calc(100% + 4px);
}
.lang-dropdown .lang-dropdown-content .lang-option {
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.lang-dropdown .lang-dropdown-content .lang-option:hover {
  background: var(--primary);
}
.lang-dropdown .lang-dropdown-content .lang-option.active {
  background: var(--primary-light);
  font-weight: bold;
}
.lang-dropdown:hover .lang-dropdown-content {
  display: block;
}

.resources-dropdown {
  position: relative;
  display: inline-block;
}
.resources-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 999;
}
.resources-dropdown .resources-dropbtn {
  background: transparent;
  color: white;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  text-decoration: none;
}
.resources-dropdown .resources-dropbtn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.resources-dropdown .resources-dropbtn span {
  margin-right: 0.25rem;
}
.resources-dropdown .resources-dropdown-content {
  display: none;
  position: absolute;
  background: var(--secondary);
  width: max-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  z-index: 1000;
  overflow: visible;
  top: calc(100% + 4px);
  right: 0;
  margin-top: 0;
}
.resources-dropdown .resources-dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
  transition: background 0.2s;
}
.resources-dropdown .resources-dropdown-content a span:first-child {
  flex: 1;
}
.resources-dropdown .resources-dropdown-content a .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.resources-dropdown .resources-dropdown-content a svg, .resources-dropdown .resources-dropdown-content a img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}
.resources-dropdown .resources-dropdown-content a:hover {
  background: var(--primary);
}
.resources-dropdown:hover .resources-dropdown-content {
  display: block;
}

.location-search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
.location-search-form > .location-search-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted, #888);
  font-style: italic;
}
.location-search-form .location-search-country {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.location-search-form .location-search-country label {
  margin: 0;
  font-size: 0.9rem;
}
.location-search-form .location-search-country select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.location-search-form .location-search-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}
.location-search-form .location-search-filters .location-search-hint {
  width: 100%;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #888);
  font-style: italic;
}
.location-search-form .location-search-filters .location-search-filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 200px;
}
.location-search-form .location-search-filters .location-search-filter label {
  margin: 0;
  font-size: 0.9rem;
}
.location-search-form .location-search-filters .location-search-filter input {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
.location-search-form .location-search-filters .location-search-filter:has(input[id=search-zip]) {
  flex: 0 0 7rem;
}
@media (max-width: 800px) {
  .location-search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .location-search-form .location-search-country select,
.location-search-form .location-search-filters {
    width: 100%;
  }
  .location-search-form .location-search-filters {
    flex-direction: column;
    gap: 1rem;
  }
  .location-search-form .location-search-filters input {
    width: 100%;
  }
  .location-search-form .location-search-filters .location-search-filter:has(input[id=search-zip]) {
    flex: auto;
  }
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 8px;
  color: var(--text);
}
.policy-content h1 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.policy-content h2 {
  color: var(--primary-light);
  margin-top: 2rem;
}
.policy-content p {
  line-height: 1.6;
}

/*# sourceMappingURL=policy.css.map */
