/* ─── Add Contact Sheet ─────────────────────────────────────────────────────── */

.acs-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  transition: background 0.3s ease;
  pointer-events: none;
}

.acs-backdrop.acs-open {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: all;
}

.acs-sheet {
  width: 100%;
  background: radial-gradient(ellipse at 50% 30%, #FAF7F2 0%, #F0EBE3 100%);
  border-radius: 28px 28px 0 0;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.acs-backdrop.acs-open .acs-sheet {
  transform: translateY(0);
}

/* ─── Handle ─────────────────────────────────────────────────────────────── */
.acs-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--kith-surface-2);
  margin: 0 auto 16px;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.acs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.acs-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--kith-text);
  margin: 0;
  line-height: 1.2;
}

.acs-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: var(--kith-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
  flex-shrink: 0;
}

.acs-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
}

/* ─── Form ───────────────────────────────────────────────────────────────── */
.acs-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.acs-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.acs-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.acs-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kith-text-dim);
}

.acs-input {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 400;
  color: var(--kith-text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(190, 178, 166, 0.6);
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.acs-input:focus {
  border-color: var(--kith-green);
  box-shadow: 0 0 0 3px rgba(41, 94, 44, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.acs-input::placeholder {
  color: var(--kith-text-dim);
  font-style: italic;
}

.acs-textarea {
  min-height: 80px;
  resize: none;
  line-height: 1.5;
}

/* ─── Actions ────────────────────────────────────────────────────────────── */
.acs-actions {
  display: flex;
  gap: 10px;
}

.acs-save-plain {
  flex: 1;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--kith-border);
  background: var(--kith-surface);
  box-shadow:
    0 2px 8px rgba(60, 34, 24, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--kith-text);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.acs-save-plain:hover {
  box-shadow:
    0 4px 14px rgba(60, 34, 24, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.acs-save-plain:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.acs-save-enrich {
  flex: 1.4;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #2D6A4F 0%, #295E2C 50%, #1E4A22 100%);
  box-shadow:
    0 4px 14px rgba(41, 94, 44, 0.45),
    0 1px 3px rgba(41, 94, 44, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--kith-on-accent);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, opacity 0.15s;
}

.acs-save-enrich:hover:not(:disabled) {
  box-shadow:
    0 6px 20px rgba(41, 94, 44, 0.55),
    0 2px 6px rgba(41, 94, 44, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.acs-save-enrich:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
