/*
 * Compatibility layer: the original build styled shadcn/React components.
 * This restores the same look on plain HTML elements.
 */

/* `display: grid/flex` on a panel would otherwise defeat the hidden attribute. */
[hidden] {
  display: none !important;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid #7f766f;
  border-radius: 2px;
  background: #fff;
  appearance: none;
  cursor: pointer;
}

.consent-row input[type="checkbox"]:checked {
  border-color: #ff5500;
  background-color: #ff5500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0808' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px;
}

.consent-row input[type="checkbox"]:focus-visible {
  outline: 2px solid #ff5500;
  outline-offset: 2px;
}

.consent-row label {
  cursor: pointer;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}

.submit-button:disabled {
  cursor: progress;
  opacity: 0.75;
}

.submit-button.is-loading .icon-arrow {
  animation: webinar-spin 1s linear infinite;
}

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

.success-icon svg {
  width: 25px;
  height: 25px;
  color: #0a0808;
}

/* ---------- Admin ---------- */

.admin-page {
  font-family: var(--font-body);
}

.admin-table-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table-card th {
  border-bottom: 1px solid #ded7d0;
  padding: 10px 12px;
  color: #6b6360;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.admin-table-card td {
  border-bottom: 1px solid #efeae5;
  padding: 11px 12px;
  color: #241f1c;
  vertical-align: middle;
}

.admin-table-card tbody tr:hover {
  background: #faf8f6;
}

.admin-table-card .lead-email,
.admin-table-card .lead-phone {
  color: #6b6360;
  font-size: 0.78rem;
}

.admin-toolbar input,
.admin-toolbar select {
  height: 40px;
  border: 1px solid #c7beb6;
  border-radius: 2px;
  background: #fff;
  padding: 0 12px;
  color: #0a0808;
  font-family: inherit;
  font-size: 0.84rem;
}

.admin-toolbar input {
  flex: 1;
  min-width: 220px;
}

.admin-toolbar input:focus-visible,
.admin-toolbar select:focus-visible {
  border-color: #ff5500;
  outline: none;
}

.admin-export,
.admin-export-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 16px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-export-secondary {
  border-color: #c7beb6;
  background: #fff;
  color: #241f1c;
  font-weight: 800;
}

.admin-row-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-row-form select {
  height: 34px;
  border: 1px solid #c7beb6;
  border-radius: 2px;
  background: #fff;
  padding: 0 6px;
  font-family: inherit;
  font-size: 0.76rem;
}

.admin-row-form input[type="text"] {
  width: 160px;
  height: 34px;
  border: 1px solid #c7beb6;
  border-radius: 2px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 0.76rem;
}

.admin-row-form button {
  height: 34px;
  border: 0;
  border-radius: 2px;
  background: #241f1c;
  padding: 0 10px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-row-form button:hover {
  background: #ff5500;
  color: #0a0808;
}

.admin-flash {
  margin: 0 0 16px;
  border-left: 4px solid #2e7d53;
  padding: 10px 12px;
  background: #e8f5ec;
  color: #1f5c3c;
  font-size: 0.85rem;
}
