.invoice-section {
  padding: 56px 0 80px;
  background: #f7fafc;
}

.inv-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 36px;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(20, 40, 60, .06);
}

.inv-title {
  margin: 0 0 28px;
  color: #16222e;
  font-size: 26px;
  letter-spacing: -.4px;
  text-align: center;
}

.inv-notice {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid #cce8f8;
  border-radius: 8px;
  background: #f1f9fe;
  color: #375a6e;
  font-size: 13px;
  line-height: 1.6;
}

.inv-notice strong {
  flex: 0 0 auto;
  color: #076da8;
}

.inv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.inv-group {
  min-width: 0;
  margin-bottom: 20px;
}

.inv-label {
  display: block;
  margin-bottom: 6px;
  color: #16222e;
  font-size: 15px;
  font-weight: 600;
}

.inv-req {
  margin-left: 2px;
  color: #e53e3e;
}

.inv-input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  box-sizing: border-box;
  border: 1.5px solid #d8e1e8;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #16222e;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  transition: border-color .2s, box-shadow .2s;
}

select.inv-input {
  padding-right: 44px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b7b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.inv-input::placeholder {
  color: #a0aec0;
}

.inv-input:focus {
  border-color: #009bf7;
  box-shadow: 0 0 0 3px rgba(0, 155, 247, .12);
}

.inv-input.invalid {
  border-color: #dc4545;
  box-shadow: 0 0 0 3px rgba(220, 69, 69, .1);
}

.inv-textarea {
  min-height: 104px;
  resize: vertical;
}

.inv-hint {
  margin: 5px 0 0;
  color: #5b6b7b;
  font-size: 13px;
  line-height: 1.5;
}

.inv-submit {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 30px;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  background: #009bf7;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background .2s, opacity .2s;
}

.inv-submit:hover {
  background: #0084d4;
}

.inv-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.inv-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #425a67;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.inv-status.success {
  color: #147348;
}

.inv-status.error {
  color: #bd2e2e;
}

.invoice-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

#company-fields[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .invoice-section {
    padding: 36px 0 52px;
  }

  .inv-card {
    padding: 28px 20px;
    border-radius: 10px;
  }

  .inv-title {
    font-size: 22px;
  }

  .inv-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .inv-notice {
    display: block;
  }

  .inv-notice strong {
    display: block;
    margin-bottom: 3px;
  }
}
