/* Add these variables if they aren't already global in your theme */
:root {
  --cypress: #06534f;
  --bright-pine: #03a171;
  --sapling: #bcdc9f;
  --riverglass: #75d1f4;
  --cypress-dark: #043b38;
  --white: #fff;
}

/* Container Styling */
.resource-search-tree-page-form {
  width: 100%;
  background-color: var(--cypress-dark);
  padding: 32px 10% 0;
  display: flex; /* Fallback for older browsers if needed, though we use flex/grid below */
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.resource-search-tree-page-form h2 {
  color: var(--white);
  font-size: 2.2rem; /* Responsive equivalent to vw usually, but rem is safer for blocks */
  margin-bottom: 0.5em;
}
.resource-search-tree-page-form #result-message {
  margin-top: 20px;
}

.resource-search-tree-page-form h3 {
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1.5em;
}

/* Input Wrapper Layout */
.resource-search-tree-page-input-wrapper {
  display: flex;
  width: 100%;
  max-width: 600px; /* Constrain width so it doesn't stretch too wide */
  gap: 0;
  margin: 0 auto 20px;
}

/* The Zip Input Field */
.resource-search-input-tree-page-form {
  background: var(--white);
  border-radius: 8px;
  padding: 12px 15px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  border: 2px solid var(--cypress);
  color: #333;
  font-size: 16px;
}

/* The Check Button */
#zip-submit-btn {
  /*background: var(--bright-pine);*/
  background: #056146;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 12px 24px;
  cursor: pointer;
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  transition: background 250ms ease, color 250ms ease;
  border-radius: 15px;
}

#zip-submit-btn:hover {
  background: var(--cypress);
  color: var(--riverglass);
}

/* Zone Pills Area */
.zone-matched-verbiage {
  font-size: 1.3rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  color: var(--white);
}

.zone-pills-verbiage {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--white);
  font-weight: bold;
}

.zone-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Individual Pill Styling */
.zone-pill {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

/* Active Pill (The "Light Up" State) */
.zone-pill.active {
  background: var(--bright-pine);
  color: var(--white);
  border-color: var(--bright-pine);
  font-weight: bold;
}