.form-card {
  width: 100%;
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid #e3e9f3;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  box-shadow: 0 18px 40px rgba(28, 47, 77, 0.08) !important;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-sections {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  padding: 0;
}

.form-left,
.form-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-left > div,
.form-right > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.form-left > div > button,
.form-right > div > button,
.form-left > div > a.btnAction,
.form-right > div > a.btnAction {
  align-self: flex-start;
  min-width: max-content;
}

.form-left > div.checkbox-group,
.form-right > div.checkbox-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border: 1px solid #d5dceb;
  border-radius: 12px;
  background: #fff;
}

.form-left > div.checkbox-group > label,
.form-right > div.checkbox-group > label {
  margin: 0;
}

.form-left > div.checkbox-group > input[type="checkbox"],
.form-right > div.checkbox-group > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.picker-field {
  width: 100%;
}

.picker-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.picker-input-group input {
  min-width: 0;
  width: 100%;
}

.attachment-btn {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.form-card label {
  width: auto;
  font-weight: 700;
  color: var(--primary-color);
  white-space: normal;
  line-height: 1.4;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  border: 1px solid #d5dceb;
  border-radius: 12px;
  background: #fff;
  color: #1f2a3d;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #bfc1c4;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: #8fb2d1;
  box-shadow: 0 0 0 4px rgba(47, 98, 135, 0.12);
}

.form-card input.input-error,
.form-card select.input-error,
.form-card textarea.input-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12);
}

.field-error-message {
  display: block;
  color: #dc3545;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.form-card .form-hint {
  color: #6b8194;
  font-size: 0.85rem;
  font-weight: 500;
}

.address-autocomplete-list {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.35rem;
  padding: 0.35rem;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 54, 75, 0.14);
  z-index: 20;
}

.address-autocomplete-list[hidden] {
  display: none;
}

.address-autocomplete-item {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #263746;
  font: inherit;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.address-autocomplete-item:hover,
.address-autocomplete-item:focus {
  outline: none;
  background: #eef5fb;
}

.form-card textarea {
  min-height: 50px;
  resize: vertical;
}

.form-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0;
}

@media screen and (max-width: 1200px) {
  .form-sections {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .form-left,
  .form-right {
    width: 100%;
  }
}

@media screen and (max-width: 960px) {
  .form-card {
    padding: 1.5rem;
  }

  .form-footer {
    flex-direction: column;
  }

  .form-footer button,
  .form-footer .btnAction {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .form-card {
    padding: 1.25rem;
  }

  .form-left > div.checkbox-group,
  .form-right > div.checkbox-group {
    grid-template-columns: 1fr;
  }
}
