:root {
  --mmg-primary: #197176;
  --mmg-radius: 12px;
}

/* Form Layout */
.mmg-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .mmg-form {
    grid-template-columns: 1fr 1fr;
  }
}

.mmg-row {
  display: flex;
  flex-direction: column;
}

.mmg-row--full {
  grid-column: 1 / -1;
}

/* Labels and Errors */
.mmg-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mmg-help,
.mmg-error {
  font-size: 0.825rem;
  margin-top: 0.25rem;
}

.mmg-error {
  color: #b00020;
}

/* Form Inputs */
.mmg-form input,
.mmg-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8d8d8;
  border-radius: var(--mmg-radius);
  background: #fff;
  outline: none;
}

.mmg-form input:focus,
.mmg-form select:focus {
  border-color: var(--mmg-primary);
  box-shadow: 0 0 0 3px rgba(25, 113, 118, 0.15);
}

/* Button */
.mmg-btn {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: var(--mmg-radius);
  background: var(--mmg-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mmg-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.mmg-btn:active {
  transform: translateY(0);
}

/* Consent Checkbox */
.mmg-form label[for="mmg-consent"] {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  line-height: 1.5;
}

.mmg-form input[type="checkbox"] {
  width: auto !important;
  height: 18px;
  width: 18px;
  min-width: 18px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  accent-color: var(--mmg-primary);
}

.mmg-form input[type="checkbox"]:focus {
  outline: 2px solid var(--mmg-primary);
  outline-offset: 2px;
}

/* Modal */
.mmg-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.mmg-modal-inner {
  background: #fff;
  padding: 2rem;
  border-radius: var(--mmg-radius);
  width: min(640px, 92vw);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mmg-modal-inner h3 {
  margin-top: 0;
}

/* Progress Bar */
.mmg-progress {
  height: 12px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}

.mmg-bar {
  height: 100%;
  width: 0;
  background: var(--mmg-primary);
  transition: width 0.1s linear;
}

/* Rotator Messages */
.mmg-rotator {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.25rem 0 0;
  color: #333;
}

.mmg-rotator li {
  display: none;
}

.mmg-rotator li.on {
  display: list-item;
}

/* Utility Classes */
.mmg-hidden {
  display: none !important;
}

.mmg-micro {
  font-size: 0.75rem;
  color: #666;
  margin-top: 1rem;
}

.mmg-small {
  font-size: 0.8rem;
  color: #555;
}

.mmg-modal[aria-hidden="true"] {
  display: none;
}

html.mmg-locked,
body.mmg-locked {
  overflow: hidden;
}

/* Thank You Page */
#mmg-thanks {
  max-width: 680px;
  margin: 0 auto;
}

.mmg-download {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--mmg-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.mmg-download h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Funnel Wrapper */
.mmg-funnel-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.mmg-funnel-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1a202c;
}
