#offerkit-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: inherit;
}

#offerkit-form {
  background: #fff;
  border: 1px solid #EEEEEE;
  border-radius: 16px;
  padding: 40px;
}

.ok-section { margin-bottom: 0; }
.ok-mt { margin-top: 20px; }

.ok-divider {
  border: none;
  border-top: 1px solid #EEEEEE;
  margin: 28px 0;
}

.ok-field { display: flex; flex-direction: column; }

.ok-field label,
.ok-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #1A2B3B;
  margin-bottom: 8px;
  display: block;
}

.ok-req { color: #2FA084; }
.ok-optional { font-weight: 400; color: #9AABB8; font-size: 12px; }

.ok-field input[type="text"],
.ok-field input[type="email"],
.ok-field input[type="number"],
.ok-field select,
.ok-field textarea {
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  background: #F7FAFA;
  padding: 12px 16px;
  font-size: 14px;
  color: #1A2B3B;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.ok-field input:focus,
.ok-field select:focus,
.ok-field textarea:focus {
  outline: none;
  border-color: #2FA084;
  box-shadow: 0 0 0 3px rgba(47, 160, 132, 0.12);
  background: #fff;
}

.ok-field input.ok-invalid {
  border-color: #e05454;
  box-shadow: 0 0 0 3px rgba(224, 84, 84, 0.1);
}

.ok-field textarea { resize: vertical; min-height: 90px; }

.ok-row { display: flex; gap: 24px; }
.ok-two-col > * { flex: 1; }
.ok-three-col > * { flex: 1; }

/* Upload */
.ok-upload-wrap { position: relative; }
.ok-file-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ok-upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed #CCCCCC;
  border-radius: 8px;
  background: #F7FAFA;
  padding: 12px 16px;
  font-size: 14px;
  color: #9AABB8;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ok-upload-label:hover { border-color: #2FA084; background: #fff; color: #2FA084; }
.ok-file-name {
  display: block;
  font-size: 12px;
  color: #2FA084;
  margin-top: 6px;
}

/* Line items */
.ok-items-header {
  display: grid;
  grid-template-columns: 1fr 110px 130px 32px;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 4px;
}
.ok-items-header span {
  font-size: 12px;
  font-weight: 600;
  color: #9AABB8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ok-item-row {
  display: grid;
  grid-template-columns: 1fr 110px 130px 32px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.ok-item-row input {
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  background: #F7FAFA;
  padding: 10px 12px;
  font-size: 14px;
  color: #1A2B3B;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ok-item-row input:focus {
  outline: none;
  border-color: #2FA084;
  box-shadow: 0 0 0 3px rgba(47, 160, 132, 0.12);
  background: #fff;
}

.ok-del-item {
  background: none;
  border: none;
  color: #9AABB8;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
  line-height: 1;
}
.ok-del-item:hover { color: #e05454; }

.ok-add-btn {
  background: none;
  border: none;
  color: #2FA084;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 4px;
  display: inline-block;
}
.ok-add-btn:hover { text-decoration: underline; }

/* Totals */
.ok-totals { padding-top: 0; }
.ok-total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: #5A6B7B;
}
.ok-total-final {
  font-size: 18px;
  font-weight: 700;
  color: #1A2B3B;
  border-top: 2px solid #EEEEEE;
  margin-top: 8px;
  padding-top: 14px;
}
.ok-total-final span:last-child { color: #1F6F5F; }

/* Error */
.ok-error {
  background: #fef3f3;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #b91c1c;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 16px;
}

/* Submit */
.ok-submit-btn {
  width: 100%;
  margin-top: 24px;
  background: #2FA084;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}
.ok-submit-btn:hover { background: #268a72; }
.ok-submit-btn:active { transform: scale(0.99); }
.ok-submit-btn:disabled { background: #9AABB8; cursor: not-allowed; }

/* PDF Preview */
#ok-preview {
  max-width: 680px;
  margin: 32px auto 0;
  display: none;
}

.ok-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ok-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #1A2B3B;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ok-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1F6F5F;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.15s;
}
.ok-download-btn:hover { background: #175a4d; color: #fff; }
.ok-download-btn::before { content: "↓ "; }

#ok-preview-frame {
  width: 100%;
  height: 800px;
  border: 1px solid #EEEEEE;
  border-radius: 12px;
  background: #f7fafa;
}

.ok-save-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 43, 59, 0.42);
  backdrop-filter: blur(4px);
}

.ok-save-modal.is-open { display: flex; }

.ok-save-card {
  position: relative;
  width: min(100%, 460px);
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(26, 43, 59, 0.22);
}

.ok-save-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #9AABB8;
  font-size: 14px;
  cursor: pointer;
}

.ok-save-card h2 {
  margin: 0 0 8px;
  color: #1A2B3B;
  font-size: 24px;
}

.ok-save-copy {
  margin: 0 0 18px;
  color: #5A6B7B;
  line-height: 1.5;
}

#ok-save-form label {
  display: block;
  margin-bottom: 8px;
  color: #1A2B3B;
  font-size: 13px;
  font-weight: 600;
}

#ok-save-email {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  background: #F7FAFA;
  padding: 12px 14px;
  color: #1A2B3B;
  font-size: 14px;
}

#ok-save-email:focus {
  outline: none;
  border-color: #2FA084;
  box-shadow: 0 0 0 3px rgba(47, 160, 132, 0.12);
  background: #fff;
}

.ok-save-benefits {
  margin: 18px 0;
  padding-left: 20px;
  color: #5A6B7B;
  line-height: 1.7;
}

.ok-save-error {
  margin: 0 0 12px;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: #fef3f3;
  color: #b91c1c;
  padding: 10px 12px;
  font-size: 13px;
}

#ok-save-submit {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #2FA084;
  color: #fff;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

#ok-save-submit:disabled {
  background: #9AABB8;
  cursor: not-allowed;
}

.ok-download-once {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: transparent;
  color: #5A6B7B;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.ok-save-nudge {
  max-width: 680px;
  margin: 20px auto 0;
  border: 1px solid #d8eee8;
  border-radius: 8px;
  background: #f7fafa;
  color: #1A2B3B;
  padding: 14px 16px;
  font-size: 14px;
}

.ok-save-nudge a,
.ok-nudge-open {
  color: #1F6F5F;
  font-weight: 700;
}

.ok-nudge-open {
  border: 0;
  background: transparent;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 600px) {
  #ok-preview-frame { height: 500px; }

  #offerkit-form { padding: 24px 20px; }
  .ok-row { flex-direction: column; gap: 0; }
  .ok-two-col > * + *, .ok-three-col > * + * { margin-top: 20px; }
  .ok-items-header { display: none; }
  .ok-item-row { grid-template-columns: 1fr 80px 100px 28px; gap: 6px; }
}
