.customer-page {
  min-height: calc(100vh - 88px);
  padding: 0 14px 28px;
  background:
    radial-gradient(circle at top left, rgba(243, 220, 255, 0.85), transparent 24%),
    radial-gradient(circle at top right, rgba(245, 214, 230, 0.8), transparent 30%),
    linear-gradient(180deg, #f6f0fb 0%, #fbf7ff 100%);
}

.customer-shell {
  max-width: 840px;
  margin: 0 auto;
}

.customer-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 14px 8px;
}

.customer-kicker {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 131, 167, 0.18);
  color: #ff4d82;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.customer-title {
  margin: 12px 0 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-style: normal;
  font-size: clamp(40px, 3.3vw, 56px);
  line-height: 0.92;
  color: #241137;
  font-weight: 700;
  letter-spacing: -0.7px;
}

.customer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #5a2a90;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(50, 19, 88, 0.08);
}

.customer-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4d2aa0;
}

.customer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 4px 20px;
}

.customer-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 34px;
  padding: 18px 18px 20px;
  box-shadow: 0 22px 50px rgba(75, 31, 108, 0.10);
}

.customer-card--single {
  padding-bottom: 22px;
}

.customer-stack {
  display: grid;
  gap: 16px;
}

.customer-divider {
  height: 1px;
  margin: 4px 0 2px;
  background: rgba(110, 72, 159, 0.10);
}

.customer-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.customer-address-full {
  grid-column: 1 / -1;
}

.customer-address-cell {
  min-width: 0;
}

.customer-address-cell .customer-field,
.customer-address-full .customer-field {
  width: 100% !important;
}

.customer-card > .mud-grid {
  margin-top: 0;
}

.customer-page .mud-grid {
  align-items: stretch;
}

.customer-page .mud-item {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.customer-card--summary {
  display: grid;
  gap: 14px;
}

.customer-card__tag {
  color: #ff6d62;
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 800;
  text-transform: uppercase;
}

.customer-card__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  color: #1f1030;
  margin-bottom: 6px;
}

.customer-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #2a1541;
  padding: 10px 0;
  border-bottom: 1px solid rgba(110, 72, 159, 0.08);
}

.customer-summary__row span {
  color: #79717e;
}

.customer-preview {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

.customer-preview__img img,
.customer-image-grid img {
  width: 160px;
  height: 214px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(110, 72, 159, 0.12);
}

.customer-preview__note,
.customer-image-caption {
  color: #8d8795;
}

.customer-label {
  display: block;
  margin: 0 0 8px;
  color: #5d5a72;
  font-size: 15px;
}

.customer-field .mud-input-outlined,
.customer-field .mud-input-control,
.customer-field .mud-select,
.customer-field .mud-input-root {
  border-radius: 999px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.customer-page .mud-text-field,
.customer-page .mud-autocomplete,
.customer-page .mud-select {
  width: 100% !important;
  min-width: 0 !important;
}

.customer-page .mud-text-field .mud-input-control,
.customer-page .mud-autocomplete .mud-input-control,
.customer-page .mud-select .mud-input-control {
  width: 100% !important;
}

.customer-field .mud-input-outlined-border {
  border-radius: 999px !important;
  border-color: rgba(110, 72, 159, 0.12) !important;
}

.customer-field .mud-input-slot,
.customer-field .mud-input-root,
.customer-field .mud-select .mud-input-slot,
.customer-field .mud-select .mud-input-root {
  background: #fff !important;
}

.customer-field .mud-input-input,
.customer-field .mud-select-input {
  padding-left: 16px !important;
  padding-right: 16px !important;
  min-height: 46px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.customer-field .mud-input-root,
.customer-field .mud-select .mud-input-root {
  min-height: 46px !important;
}

.customer-field .mud-input-slot,
.customer-field .mud-select .mud-input-slot {
  min-height: 46px !important;
  align-items: center !important;
  width: 100% !important;
}

.customer-field--textarea .mud-input-outlined,
.customer-field--textarea .mud-input-control,
.customer-field--textarea .mud-input-root {
  border-radius: 22px !important;
}

.customer-field--textarea .mud-input-input {
  min-height: 140px !important;
}

.customer-copy {
  padding-top: 20px;
}

.customer-card--actions {
  display: grid;
  gap: 18px;
}

.customer-image-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.customer-upload-btn,
.customer-submit {
  height: 50px;
  border-radius: 999px !important;
  text-transform: none !important;
  font-weight: 800 !important;
}

.customer-submit {
  background: #3E1268 !important;
  color: #fff !important;
  box-shadow: 0 4px 7.1px 0 rgba(255, 255, 255, 0.50) inset !important;
  border: none !important;
}

.customer-submit.mud-button-filled {
  background: #3E1268 !important;
  color: #fff !important;
}

.customer-submit:hover {
  background: #5A1E96 !important;
  box-shadow: none !important;
}

.customer-submit.mud-button-filled:hover {
  background: #5A1E96 !important;
}

.customer-card .mud-button-root {
  text-transform: none !important;
}

.customer-card .mud-button-filled {
  box-shadow: 0 14px 28px rgba(75, 31, 108, 0.18) !important;
}

.customer-image-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

.customer-footer {
  display: flex;
  justify-content: flex-end;
}

.customer-footer--split {
  justify-content: flex-end;
  gap: 14px;
  margin-top: 8px;
}

.customer-submit {
  min-width: 164px;
}

.customer-cancel {
  height: 50px;
  background: #fff !important;
  color: #3E1268 !important;
  border: 1.5px solid #3E1268 !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  text-transform: none !important;
  font-weight: 800 !important;
  min-width: 108px;
}

.customer-cancel.mud-button-outlined {
  background: #fff !important;
  color: #3E1268 !important;
  border-color: #3E1268 !important;
}

.customer-cancel:hover,
.customer-cancel.mud-button-outlined:hover {
  background: #f5effd !important;
  color: #3E1268 !important;
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .customer-hero {
    flex-direction: column;
    padding: 14px 14px 8px;
  }

  .customer-grid {
    padding: 0 14px 18px;
  }

  .customer-card {
    padding: 16px;
    border-radius: 26px;
  }

  .customer-preview,
  .customer-image-grid {
    grid-template-columns: 1fr;
  }

  .customer-footer--split {
    justify-content: stretch;
    flex-direction: column;
  }

  .customer-submit,
  .customer-cancel {
    min-width: 0;
    width: 100%;
  }
}

.customer-page .mud-text-field,
.customer-page .mud-autocomplete,
.customer-page .mud-select {
  margin-top: 0;
}

.customer-page .mud-input-label {
  color: #5d5a72 !important;
  font-weight: 500 !important;
}

.customer-page .mud-input-helper-text {
  display: none;
}

@media (max-width: 640px) {
  .customer-page {
    padding: 0 8px 18px;
  }

  .customer-title {
    font-size: 36px;
  }
}
