.xcrm-embed-form {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

.xcrm-ef-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px;
}

.xcrm-ef-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}

.xcrm-ef-desc {
  font-size: 14px;
  opacity: 0.7;
  margin: 0 0 24px;
}

.xcrm-ef-field {
  margin-bottom: 16px;
}

.xcrm-ef-field:last-child {
  margin-bottom: 0;
}

.xcrm-ef-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.xcrm-ef-input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.xcrm-ef-input:focus {
  border-color: #ad71e0;
}

textarea.xcrm-ef-input {
  resize: vertical;
  min-height: 60px;
}

select.xcrm-ef-input {
  appearance: auto;
}

.xcrm-ef-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.xcrm-ef-form {
  margin: 0;
}

.xcrm-ef-submit,
.xcrm-ef-reset {
  display: block;
  width: 100%;
  padding: 10px 20px;
  margin-top: 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.xcrm-ef-submit:hover,
.xcrm-ef-reset:hover {
  opacity: 0.9;
}

.xcrm-ef-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.xcrm-ef-reset {
  margin-top: 8px;
}

.xcrm-ef-footer {
  font-size: 12px;
  text-align: center;
  opacity: 0.5;
  margin: 20px 0 0;
}

.xcrm-ef-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.xcrm-ef-message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.xcrm-ef-message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.xcrm-ef-recaptcha {
  margin-bottom: 16px;
}

.xcrm-ef--flashing-cursor .xcrm-ef-input {
  caret-color: currentColor;
}

@keyframes xcrm-blink-cursor {
  0%, 100% { border-left-color: currentColor; }
  50% { border-left-color: transparent; }
}

.xcrm-ef--flashing-cursor .xcrm-ef-input:focus {
  border-left-width: 2px;
  border-left-style: solid;
  animation: xcrm-blink-cursor 1s step-end infinite;
}
