:root {
  --hcl-color-primary: #43b02a;
  --hcl-color-secondary: #00a3e0;
  --hcl-color-button_border: #dedede;
  --hcl-color-card_border: #dedede;
  --hcl-light-secondary-bg: #e2f7ff;
  --bg: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7a;
  --border: #d8e0ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  width: 100%;
  padding: 8px 0;
  text-align: center;
}

.header-logo {
  height: 70px;
  margin: 0 auto;
  display: block;
}

.sdk-container {
  position: relative;
  width: 100vw;
  height: calc(100vh - 86px);
  flex: 1;
}

.hcl-sdk-host {
  --hcl-color-primary: #43b02a;
  --hcl-color-secondary: #00a3e0;
  --hcl-color-button_border: #dedede;
  --hcl-color-card_border: #dedede;
  display: block;
  width: 100%;
  height: 100%;
}

.consent-slot {
  width: 100%;
}

.consent-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  background: #f5fbff;
  border: 1px solid var(--hcl-color-secondary);
  border-radius: 5px;
  margin: 0 auto;
  padding: 15px;
}

.consent-title {
  margin: 0;
  padding: 0;
  font-weight: 900;
  color: var(--hcl-color-secondary);
  font-size: 1rem;
}

.consent-lead {
  margin: 10px 0 0;
  padding: 0;
  font-weight: 600;
  font-size: 0.875rem;
}

.consent-form {
  width: 100%;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

.consent-email-wrap {
  width: 20rem;
  max-width: 100%;
}

.consent-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #00a3e0;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 1rem;
}

.consent-input.invalid {
  border-color: #dc2626;
}

.consent-button {
  min-height: 40px;
  background: var(--hcl-color-secondary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hcl-color-button_border);
  border-radius: 5px;
  cursor: pointer;
  padding: 5px 60px;
  font-weight: 700;
}

.consent-button:disabled {
  background: #dedede;
  color: #000000;
  cursor: not-allowed;
}

.checkbox-wrapper {
  display: flex;
  margin-top: 10px;
  font-size: 14px;
  align-items: flex-start;
  cursor: pointer;
  max-width: 400px;
  position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  top: 19px;
  left: 7px;
  opacity: 0;
}

.checkbox-style {
  display: inline-block;
  width: 15px;
  min-width: 15px;
  height: 15px;
  min-height: 15px;
  border-radius: 2px;
  border: 1px solid var(--hcl-color-button_border);
  position: relative;
  margin-right: 5px;
  margin-top: 2px;
}

input[type="checkbox"]:checked + .checkbox-style::after {
  content: "\2713";
  display: inline-block;
  color: #43b02a;
  padding: 0 6px 0 0;
  font-size: 15px;
  top: -5px;
  position: absolute;
}

.field-error {
  margin: 6px 0 0;
  color: #dc2626;
  font-size: 0.85rem;
}

.spinner {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.thank-you-card {
  display: block;
}

.footer {
  padding: 12px 1rem 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .consent-row {
    flex-direction: column;
  }

  .consent-email-wrap {
    width: 100%;
  }

  .consent-button {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
