.cmg-form input,
.cmg-form select {
  width: 100%;
  padding: 0.7rem;
  margin: 0.35rem 0;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}
.cmg-btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 0.75rem;
  background: #197176;
  color: #fff;
  border: 0;
  cursor: pointer;
}
.cmg-small {
  font-size: 0.8rem;
  color: #555;
}
.cmg-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.cmg-modal-inner {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  width: min(560px, 92vw);
}
.cmg-progress {
  height: 10px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}
.cmg-bar {
  height: 100%;
  width: 0;
  background: #197176;
  transition: width 0.1s linear;
}
.cmg-rotator {
  list-style: none;
  padding-left: 1rem;
  margin: 0.25rem 0 0;
}
.cmg-rotator li {
  display: none;
}
.cmg-rotator li.on {
  display: list-item;
}
.cmg-hidden {
  display: none;
}
.cmg-micro {
  font-size: 0.75rem;
  color: #666;
  margin-top: 1rem;
}

:root {
  --cmg-primary: #197176;
  --cmg-radius: 12px;
}

.cmg-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cmg-form {
    grid-template-columns: 1fr 1fr;
  }
}
.cmg-row {
  display: flex;
  flex-direction: column;
}
.cmg-row--full {
  grid-column: 1 / -1;
}

.cmg-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.cmg-help,
.cmg-error {
  font-size: 0.825rem;
  margin-top: 0.25rem;
}
.cmg-error {
  color: #b00020;
}

.cmg-form input,
.cmg-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8d8d8;
  border-radius: var(--cmg-radius);
  background: #fff;
  outline: none;
}
.cmg-form input:focus,
.cmg-form select:focus {
  border-color: var(--cmg-primary);
  box-shadow: 0 0 0 3px rgba(25, 113, 118, 0.15);
}

.cmg-btn {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: var(--cmg-radius);
  background: var(--cmg-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.cmg-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.cmg-btn:active {
  transform: translateY(0);
}

/* Consent Checkbox Styling */
.cmg-form label[for="cmg-consent"] {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}

.cmg-form input[type="checkbox"] {
  width: auto !important;
  height: 18px;
  width: 18px;
  min-width: 18px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  accent-color: var(--cmg-primary);
}

.cmg-form input[type="checkbox"]:focus {
  outline: 2px solid var(--cmg-primary);
  outline-offset: 2px;
}

.cmg-small {
  font-size: 0.8rem;
  color: #555;
}

.cmg-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.cmg-modal-inner {
  background: #fff;
  padding: 2rem;
  border-radius: var(--cmg-radius);
  width: min(640px, 92vw);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.cmg-progress {
  height: 12px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}
.cmg-bar {
  height: 100%;
  width: 0;
  background: var(--cmg-primary);
  transition: width 0.1s linear;
}

.cmg-rotator {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.25rem 0 0;
  color: #333;
}
.cmg-rotator li {
  display: none;
}
.cmg-rotator li.on {
  display: list-item;
}

.cmg-hidden {
  display: none !important;
}
.cmg-micro {
  font-size: 0.75rem;
  color: #666;
  margin-top: 1rem;
}

.cmg-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cmg-modal[aria-hidden="true"] {
  display: none;
}
html.cmg-locked,
body.cmg-locked {
  overflow: hidden;
} /* keep this for when it’s open */
