/* Outer wrapper with resize & drag support */
.acc-form-wrapper {
  width: 520px;
  margin: 40px auto;
  border: 1px solid #ccc;
  background-color: whitesmoke; 
  resize: both;
  overflow: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Title bar */
.acc-form-header {
  background-color: #007bff;
  color: white;
  padding: 10px;
  cursor: move;
  font-weight: bold;
  user-select: none;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* Inner form styling */
.acc-form {
  padding: 15px;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Label + input inline */
.form-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group label {
  width: 120px;
  font-weight: 600;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Hover and focus styling */
.acc-form input:hover,
.acc-form input:focus,
.acc-form select:hover,
.acc-form select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 10px rgba(11, 148, 228, 0.3);
}

/* Checkbox layout */
.checkbox-group {
  display: flex;
  align-items: center;
  margin-left: 120px; /* aligns with input start */
}

.checkbox-group input {
  margin-right: 8px;
}

/* Submit button aligned right */
.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}

button, input[type="submit"] {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

button:hover, input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Error message */
.error {
  color: red;
  font-size: 12px;
  margin-left: 120px;
}

.form-group input[type="checkbox"] {
  transform: scale(1.2); /* optional: makes it easier to tap */
  margin-left: 0;        /* aligns with inputs */
}