* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #f5f5f5;
  padding: 24px;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #000;
}

h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: #000;
}

.form-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.billing-type-group {
  margin-bottom: 20px;
}

.billing-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.billing-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #333;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.duration-fields {
  grid-template-columns: 80px 120px 1fr 140px;
}

.down-payment-check {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.down-payment-check input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.line-item {
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid #eee;
}

.line-item .form-group {
  margin-bottom: 12px;
}

.line-item .form-group:last-child {
  margin-bottom: 0;
}

.btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-primary:disabled {
  background: #999;
  cursor: not-allowed;
}

.btn-secondary {
  background: #eee;
  color: #333;
}

.btn-secondary:hover {
  background: #ddd;
}

.form-actions {
  margin-top: 24px;
}

.error-message {
  margin-top: 16px;
  padding: 12px;
  background: #fee;
  color: #c00;
  border-radius: 4px;
  font-size: 13px;
}

.error-message[hidden] {
  display: none;
}

.logo-upload input[type="file"] {
  padding: 8px 0;
}

.logo-preview {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-preview img {
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
}

.logo-preview[hidden] {
  display: none !important;
}

.remove-logo {
  padding: 6px 12px;
  font-size: 12px;
}

.down-payment-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Company display section - looks like content, not form fields */
.company-display-section .company-display {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.company-logo-display {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
}

.company-logo-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-info-display {
  flex: 1;
  min-width: 0;
}

.display-field {
  margin-bottom: 4px;
}

.display-field:last-child {
  margin-bottom: 0;
}

.display-input {
  width: 100%;
  padding: 2px 0;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #333;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.display-input:hover {
  background: rgba(0, 0, 0, 0.02);
}

.display-input:focus {
  outline: none;
  border-bottom-color: #ddd;
  background: rgba(0, 0, 0, 0.02);
}

.display-input::placeholder {
  color: #999;
}
