/* ZIP Widget styles */
.cmg-zip-widget {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.cmg-zip-headline {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
}
.cmg-zip-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.cmg-zip-input {
  flex: 1 1 160px;
  max-width: 200px;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 0.1em;
}
.cmg-zip-input:focus {
  border-color: #3fc1c9;
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 193, 201, 0.2);
}
.cmg-zip-btn {
  flex: 1 1 140px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.1s;
}
.cmg-zip-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.cmg-zip-btn:active {
  transform: translateY(0);
}
.cmg-zip-msg {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

/* ─── Backward-compat: styles for .medigap-zip-widget class (legacy shortcode HTML) ─── */
.medigap-zip-widget {
  width: 100%;
  max-width: 500px;
  min-width: 180px;
  margin: 0 auto;
  padding: 1.3em 0.7em;
  border-radius: 1.2em;
  box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.09);
  background: #3fc7d2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.medigap-zip-headline {
  font-size: clamp(1.05rem, 2vw, 1.7rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.8em;
  color: #fff;
}
.medigap-zip-input {
  font-size: clamp(0.97rem, 1.2vw, 1.2rem);
  padding: 0.5em 0.7em;
  width: 100%;
  max-width: 275px;
  margin-bottom: 0.8em;
  border-radius: 0.5em;
  border: 1px solid #ccc;
}
.medigap-zip-button {
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  padding: 0.5em 1em;
  border-radius: 0.8em;
  border: none;
  background: #fff;
  color: #3fc7d2;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  max-width: 210px;
  margin-bottom: 0.6em;
}
.medigap-zip-button:hover {
  background: #e0fbfc;
}
.medigap-zip-above-text,
.medigap-zip-below-text {
  font-size: clamp(0.8rem, 0.95vw, 1rem);
  text-align: center;
  margin: 0.2em 0;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}
.sidebar .medigap-zip-widget,
#secondary .medigap-zip-widget {
  max-width: 100%;
  font-size: 0.82em;
  padding: 0.7em 0.3em;
}
.sidebar .medigap-zip-headline,
#secondary .medigap-zip-headline {
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
}
.sidebar .medigap-zip-input,
#secondary .medigap-zip-input {
  font-size: clamp(0.8rem, 1vw, 1rem);
  max-width: 90%;
  padding: 0.4em 0.6em;
}
.sidebar .medigap-zip-button,
#secondary .medigap-zip-button {
  font-size: clamp(0.81rem, 1vw, 0.98rem);
  max-width: 90%;
  padding: 0.4em 0.6em;
}
.sidebar .medigap-zip-above-text,
.sidebar .medigap-zip-below-text,
#secondary .medigap-zip-above-text,
#secondary .medigap-zip-below-text {
  font-size: 0.78em;
}
@media (max-width: 480px) {
  .medigap-zip-widget {
    padding: 0.8em 0.2em;
  }
  .medigap-zip-headline {
    font-size: clamp(0.98rem, 3.5vw, 1.15rem);
  }
  .medigap-zip-input,
  .medigap-zip-button {
    font-size: clamp(0.88rem, 3vw, 1.05rem);
    max-width: 95vw;
  }
}
