.offer-entry {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.offer-trigger,
.offer-submit {
  align-items: center;
  background: var(--brand, #065f46);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  padding: 12px 18px;
}

.offer-modal {
  align-items: center;
  background: rgba(20, 18, 16, .72);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 20000;
}

.offer-modal.is-open {
  display: flex;
}

.offer-modal-card {
  background: var(--surface, #fff);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
  overflow: hidden;
  width: min(100%, 720px);
}

.offer-modal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--border, #ddd);
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 24px;
}

.offer-modal-header h2,
.offer-modal-header p {
  margin: 0;
}

.offer-modal-header p {
  color: var(--muted, #666);
  margin-top: 7px;
}

.offer-modal-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: 6px;
}

.offer-modal-body {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  padding: 24px;
}

.offer-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-field {
  display: grid;
  gap: 7px;
}

.offer-field.full {
  grid-column: 1 / -1;
}

.offer-field label,
.offer-field .offer-label {
  font-weight: 700;
}

.offer-field input,
.offer-field select,
.offer-field textarea {
  background: #fff;
  border: 1px solid var(--border, #d6d3d1);
  border-radius: 13px;
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

.offer-field textarea {
  min-height: 120px;
  resize: vertical;
}

.offer-price-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 110px 1fr;
}

.offer-file-help,
.offer-legal,
.offer-privacy-note {
  color: var(--muted, #666);
  font-size: .88rem;
  line-height: 1.55;
  margin: 0;
}

.offer-legal {
  background: var(--surface-soft, #faf7f2);
  border: 1px solid var(--border, #d6d3d1);
  border-radius: 14px;
  color: var(--text, #292524);
  padding: 14px;
}

.offer-confirm {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.offer-confirm input {
  flex: 0 0 auto;
  margin-top: 4px;
  width: auto;
}

.offer-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
}

.offer-status {
  border-radius: 12px;
  display: none;
  font-weight: 700;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.offer-status.is-error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

.offer-status.is-success {
  background: #dcfce7;
  color: #166534;
  display: block;
}

.offer-honeypot {
  left: -9999px !important;
  position: absolute !important;
}

body.offer-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .offer-modal {
    align-items: stretch;
    padding: 0;
  }

  .offer-modal-card {
    border-radius: 0;
    max-height: 100vh;
    width: 100%;
  }

  .offer-form-grid {
    grid-template-columns: 1fr;
  }

  .offer-field.full {
    grid-column: auto;
  }
}

.offer-submit-group {
  align-items: flex-start;
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 10px;
}

.offer-submit-group .offer-status {
  margin: 0;
  width: 100%;
}