.agency75-form-card {
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius-xl);
  background: var(--lv-card);
  box-shadow: var(--lv-shadow-card);
  overflow: hidden;
}

.agency75-form-section-title {
  font-family: var(--lv-font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lv-fg);
}

.agency75-form-subtle {
  color: var(--lv-muted-fg);
  font-size: 0.875rem;
}

.agency75-field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lv-fg);
}

.agency75-field-hint {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--lv-muted-fg);
}

.agency75-input-prefix {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius-md);
  background: var(--lv-bg);
  padding: 0 0.75rem;
}

.agency75-input-prefix > span {
  color: var(--lv-muted-fg);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.agency75-input-prefix > input {
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.agency75-repeatable {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agency75-repeatable-row {
  position: relative;
  border: 1px solid var(--lv-border);
  border-radius: var(--lv-radius-md);
  background: color-mix(in srgb, var(--lv-muted) 30%, var(--lv-card) 70%);
  padding: 0.75rem;
}

.agency75-repeatable-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.agency75-repeatable-toolbar > button[data-repeatable-add] {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--lv-primary);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: none;
}

.agency75-repeatable-toolbar > button[data-repeatable-add]:hover {
  text-decoration: underline;
  background: transparent;
}

.agency75-repeatable-row > .flex:first-child {
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.agency75-repeatable-row > .flex:first-child > p {
  display: none;
}

.agency75-repeatable-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lv-muted-fg);
  box-shadow: none;
  font-size: 0;
}

.agency75-repeatable-remove:hover {
  background: var(--lv-bg);
  color: var(--lv-danger, #dc2626);
}

.agency75-form-actionbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--lv-border);
  background: var(--lv-muted);
  padding: 0.875rem 1rem;
}

.agency75-confirm-copy {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--lv-muted-fg);
}

.agency75-sticky-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--lv-surface, var(--lv-card));
  border-top: 1px solid var(--lv-border);
}

.agency75-sticky-bottom-bar .agency75-sticky-submit {
  flex: 1 1 auto;
}

/* ==================================================
   UI KIT OVERLAY AND POPOUT SURFACES
================================================== */

.agency75-overlay {
  background: rgba(15, 23, 42, 0.62) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.agency75-solid-surface,
.agency75-modal-panel,
.agency75-sidepanel,
.agency75-popover {
  background: var(--lv-card, var(--card, #fff)) !important;
  color: var(--lv-fg, var(--foreground, #1f1714)) !important;
  opacity: 1 !important;
}

html.a75crm-dark .agency75-solid-surface,
html.a75crm-dark .agency75-modal-panel,
html.a75crm-dark .agency75-sidepanel,
html.a75crm-dark .agency75-popover {
  background: var(--card-dark, var(--card, #17181d)) !important;
  color: var(--text-primary-dark, var(--foreground, #f8fafc)) !important;
}

@media (min-width: 768px) {
  .agency75-sticky-bottom-bar {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .agency75-form-actionbar {
    margin-bottom: 4.5rem;
  }

  .agency75-repeatable-row {
    padding: 0.75rem;
  }
}
