/* Northstar form: Company section = bordered fields; Location section = borderless (placeholder-only) */
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 1rem;
  background: #f5f5f5;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Header: logo left, title/version right; then headings below */
.form-header {
  margin-bottom: 1.5rem;
}
.form-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-header-brand {
  flex-shrink: 0;
}
.form-header-logo-img {
  display: block;
  max-height: 80px;
  width: auto;
}
.form-header-title-block {
  text-align: right;
}
.form-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #000;
}
.form-version {
  margin: 0;
  font-size: 0.9rem;
  font-weight: normal;
  color: #000;
}
.form-heading {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
}
.form-subheading {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: bold;
  color: #000;
}

.form-note {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #555;
}
.form-contact {
  margin: 0.5rem 0 1.5rem 0;
  font-size: 0.9rem;
  text-align: center;
}
.form-contact a {
  color: #1a73e8;
  text-decoration: underline;
}

.form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
}
.form-section:last-of-type {
  border-bottom: none;
}

.field-row {
  margin-bottom: 1rem;
}
.field-row.remit {
  margin-top: 0.5rem;
}
.field-row label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #333;
}

/* Bordered inputs: Company section (Image 1) - keep distinct field borders */
.company-section input,
.company-section select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #333;
  border-radius: 0;
  font-size: 1rem;
  background: #fff;
}
.company-section .inline-group input {
  width: auto;
  min-width: 120px;
  flex: 1;
}
.inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.inline-group .inline-label {
  font-size: 0.9rem;
  color: #333;
  margin-right: 0.25rem;
}
.company-section input::placeholder,
.company-section select option[value=""] {
  color: #999;
}

/* Location & Location contact: bordered input fields */
.location-section .field-row.borderless input,
.location-contact-section .inline-group.borderless input,
.location-section .inline-group.borderless input {
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 0.5rem;
  font-size: 1rem;
  background: #fff;
  width: 100%;
}
.location-section .inline-group.borderless input {
  min-width: 80px;
  flex: 1;
}
.location-section .field-row.borderless input:focus,
.location-contact-section .inline-group.borderless input:focus {
  outline: none;
  border-color: #1a73e8;
}
.location-section .field-row.borderless label,
.location-contact-section label {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.2rem;
}
.location-section input::placeholder,
.location-contact-section input::placeholder {
  color: #999;
}

.location-intro {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  text-align: center;
}
.location-heading {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}
.location-card {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.location-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.location-card-title {
  margin: 0;
  font-size: 1rem;
}
.btn-remove-location {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  background: #fff;
  color: #c5221f;
  border: 1px solid #c5221f;
  border-radius: 4px;
  cursor: pointer;
}
.btn-remove-location:hover {
  background: #fce8e6;
}

.payment-options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.payment-methods,
.payment-currency {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.checkbox-label,
.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: normal;
  cursor: pointer;
  margin-bottom: 0;
}
.checkbox-label input,
.radio-label input {
  margin: 0;
  width: auto;
}
.payment-currency .inline-label {
  margin-right: 0.5rem;
}

#add-location {
  margin-top: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.btn {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: #1a73e8;
  color: #fff;
}
.btn-primary:hover {
  background: #1557b0;
}
.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.btn-secondary {
  background: #fff;
  color: #1a73e8;
  border-color: #1a73e8;
}
.btn-secondary:hover {
  background: #f0f7ff;
}
.btn-test {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #e6b84d;
  margin-bottom: 1rem;
}
.btn-test:hover {
  background: #fce8b2;
}

/* Success message panel (shown after successful submit) */
.success-message-panel {
  text-align: left;
  padding: 3rem 2rem;
  max-width: 480px;
  margin: 2rem auto;
  background: transparent;
}
.success-message-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #4a5568;
}
.success-message-text {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
  color: #4a5568;
}

.form-message {
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 4px;
  min-height: 1.5rem;
}
.form-message.success {
  background: #e6f4ea;
  color: #1e8e3e;
}
.form-message.error {
  background: #fce8e6;
  color: #c5221f;
}
.form-message.info {
  background: #e8f0fe;
  color: #1967d2;
}
#submit-btn {
  margin-top: 0.5rem;
}
