body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f6f7fb; }
.container { max-width: 1000px; margin: 0 auto; padding: 16px; }
.header { background: #0b3d91; color: white; }
.header h1 { margin: 0; font-size: 18px; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.card { background: white; padding: 18px; border-radius: 10px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.btn { background: #0b3d91; color: white; border: 0; padding: 10px 14px; border-radius: 8px; text-decoration: none; display: inline-block; cursor: pointer; }
.btn-link { background: transparent; color: white; padding: 0; margin-left: 12px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=url], .field textarea, .field select {
  width: 100%; padding: 8px; border: 1px solid #d6d9e0; border-radius: 8px;
}
.field input[type=checkbox] { margin-right: 8px; }
.section { padding: 12px; border: 1px dashed #ccd3e6; border-radius: 10px; margin: 12px 0; background: #fbfcff; }
.hidden { display: none; }
.note { color: #4a5568; margin-top: 0; }
.help { color: #4a5568; font-size: 13px; }
.errors { background: #fff5f5; border: 1px solid #fed7d7; padding: 12px; border-radius: 8px; }
.messages { margin: 12px 0; }
.message { padding: 10px; border-radius: 8px; margin-bottom: 8px; }
.message.success { background: #e6fffa; border: 1px solid #b2f5ea; }
.message.error { background: #fff5f5; border: 1px solid #fed7d7; }
.muted { opacity: 0.85; font-size: 13px; }
*, *::before, *::after {
  box-sizing: border-box;
}
.field input[type=text],
.field input[type=email],
.field input[type=url],
.field textarea,
.field select {
  max-width: 100%;
    width:100%
}

.checkbox-row {
  margin: 12px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px; /* aligns checkbox with first line of text */
  flex-shrink: 0;
}

.checkbox-text {
  line-height: 1.4;
}

/* Make geo restriction select only as wide as its content */
.field select.fitted-select {
  width: max-content;
  padding-right: 32px;
  display: inline-block;
  min-width: fit-content;
  max-width: 100%;
}